Problem with pysr.julia_helpers (because PyCall got messed up) #368
Replies: 1 comment 2 replies
-
Hi @unary-code, Thanks for the report. Could you edit your post to surround code with three back quotes ``` so that it is formatted correctly? Otherwise it is hard to read. Regarding the issue, the latest PySR uploaded today has some functionality to self-repair PyCall installs. Could you try upgrading your PySR and retrying? Thanks, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'll share my full code "Use_the_PySR_Package" here.
Actually, interestingly I was able to successfully run these lines of code (including the last
jl = pysr.julia_helpers.init_julia(julia_kwargs={"threads": 8, "optimize": 3})
line of code) in a separate smaller new ipynb file called Use_just_the_PySR_Julia_Helper.ipynb .
I must have run some other command in this one Use_the_PySR_Package ipynb file that messed up this one file permanently, because even when I re-started the Jupyter Notebook, I still got a error when running
jl = pysr.julia_helpers.init_julia(julia_kwargs={"threads": 8, "optimize": 3})
.========================
In the Use_the_PySR_Package ipynb file,
I ran
which tells me that Julia is installed in this system
then
I ran
which tells me a bunch of "requirement already satisfied"'s, including "Requirement already satisfied: pysr in /opt/anaconda3/envs/pysr_env/lib/python3.10/site-packages (0.14.3)"
then I ran
then I ran
then I ran
which gives me this error message:
Any idea why?
My version of Julia is 1.9.1
My version of Python is 3.10.4
Notably, this error did not happen to me before. A few days ago, I was able to create the julia object
and I was able to do
for example.
The only difference I can think of between a few days ago and today is that today, I imported the Roots and ForwardDiff package
But I have a feeling there is some other reason for this, as I do not understand why doing that would cause a problem with using PyCall.
Use_the_PySR_Package.pdf
Use_just_the_PySR_Julia_Helper.pdf
Beta Was this translation helpful? Give feedback.
All reactions