-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Customize PySR #804
Comments
Oh it means you are missing the packages JSON and PythonCall in your custom version. To add them do this: julia --project="/home/drivesim/Documents/SR/SymbolicRegression.jl" -e 'using Pkg; pkg"add JSON PythonCall"' |
I run the above code
Traceback (most recent call last): SymbolicRegression Failed to precompile SymbolicRegression [8254be44-1295-4e6a-a16d-46603ac705cb] to "/home/drivesim/.julia/compiled/v1.11/SymbolicRegression/jl_fNC00b".
|
This is my Project.toml, it seems that PythonCall and JSON have been added to the deps. name = "SymbolicRegression" [deps] [weakdeps] [extensions] [compat] [extras] |
That's good! Maybe try deleting the local python environment and re-installing PySR with the custom juliapkg.json that points to your SymbolicRegression? Worst case you could just directly use Just run the |
Speaking of which, maybe just try using that directly to edit the juliapkg.json? I wonder if it's just not being stored correctly. The full signature is
so you can tag SymbolicRegression and put Again, do this before importing PySR. |
I am still working on this problem and I want to check when adding "JSON" and "PythonCall", should them be added to the project in "SymbolicRegression.jl" or "PySR" or both. Currently I only added them in the project.toml and manifest in "SymbolicRegression.jl" and tried to use them in the "population.jl" file in "SymbolicRegression.jl". |
Make sure to instantiate the environment of SymbolicRegression.jl with |
What happened?
I am trying to customize PySR, I have revised the juliapkg.json file following the instructions as :
and it works.
Then I try to adding additional functions and package ("JSON" and "PythonCall") in the Population.jl file. I have written them in the project.toml and Manifest.toml in SymbolicRegression.jl. and adding the packages in the Population.jl as follows:
However, when I try to run the code, I got the error like:
Version
1.3.0
Operating System
Linux
Package Manager
pip
Interface
Script (i.e.,
python my_script.py
)Relevant log output
Extra Info
No response
The text was updated successfully, but these errors were encountered: