Closed gdalle closed 1 year ago
this one is about sympy (python package) not being there. essentially you need to make sure julia talks to python (SymPy.jl relies on PyCall.jl and Conda.jl) and has sympy installed in the python environment linked to julia. In a previous version I tried to automatise this with CondaPkg but it had no effect in my case. I will try again with the latest version.
essentially you need to make sure julia talks to python (SymPy.jl relies on PyCall.jl and Conda.jl) and has sympy installed in the python environment linked to julia.
I figured as much, but I tried installing it the naive way by just following the instructions in the README, which didn't mention anything about setting up Python :)
In a previous version I tried to automatise this with CondaPkg but it had no effect in my case. I will try again with the latest version.
The main advantage of CondaPkg is that it dispenses the user from having to fight with Python themselves. I've used it successfully several times, happy to help if needed
I added CondaPkg and sympy as a python dependency. it worked on the Julia linux docker image out of the box. thx for the hint.
This seems trickier than i thought. SymPy.jl relies on PyCall->Conda I understand this setup does not guarantee automatic installation of the sympy python package but using PythonCall->CondaPkg would. let me check whether importing it using pythoncall ensures the same functionality as SymPy.jl
I got it to work with PythonCall as a backend and tested it in a separate branch. The issue is I don't get PythonCall to work with PrecompileTools. Do you have any experience with this?
It would be a petty sacrificing some speed for convenience.
On the PythonCall website it says during precompilation you must not interact with python...
and I got that fixed now as well. I'm not relying on python during recompilation after all.
have a look at the latest version. it should run out of the box. it does in the CI runs at least.
and thanks for the suggestion to use PythonCall that should make it easier for many users to get this up and running
Awesome! I'll check it out and finish my review next week
https://github.com/jverzani/SymPyCall.jl
Might be interesting
Yeah, I implemented an adapted version of their code in the latest version of MacroModelling. It works with CondaPkg now and the installation should work out of the box. I asked the SymPyCall authors to register their package so that I can use that instead my hacky way.
Should have known it was not a coincidence 😎
Installation is working
Hi there, congrats on the package! I'm reviewing your JOSS submission, so expect more issues from me as I make my way through the checklist :)
https://github.com/openjournals/joss-reviews/issues/5598
When I try to install MacroModelling.jl, some Python compatibility issues pop up. I strongly suggest you use PythonCall.jl + CondaPkg.jl to manage your Python dependencies. As the following bug suggests, PyCall is less reliable and reproducible.