Open Debasish-Mahapatra opened 5 months ago
I think that @kobebryant432 is right that this has something to do with the R script. Could you run this code in a python environment:
import pyfa_tool as pyfa
from pyfa.IO import _get_rbin
print(_get_rbin())
This will print out the location of your Rbin's. Could you make a small Rscript with this content:
library(meteogrid)
library(Rfa)
library(data.table)
library(jsonlite)
Run it in Rstudio (or similar). See if any errors are appearing.
And at last, in your terminal, execute this file with the commando:
output_of_rbin_function Rscript filepath_of_your_test_R_script
If you could paste here the outcome of these steps, we can help troubleshoot. (This issue can be causing #59, so lets solve this first)
The output to the first test just gives the error "No module named 'pyfa'". Which is strange to me as the import command works!!!
(PS: Take a look at the Screenshot)
And the R script exited without any errors.
Maybe try
pyfa_tool.IO import _get_rbin
#or
print(pyfa.IO._get_rbin())
Using an alias (pyfa) does not work when importing functions or models.
I encountered a FileNotFoundError: [Errno 2] while running the script on MacOS 14.2.1 Sonoma using the Zsh shell.
The error was triggered by the following line of code:
_fafile = pyfa.FaFile(fafile=fa_filepath)
The system was unable to locate the file at the following path:
_~/Notebooks/tmpfajsonUY0L/fields.json