Replies: 2 comments 4 replies
-
Let's try this the old-fashioned way first: can you pull the actual legacy sources and build the library and the wrapper from scratch?
Provided that there are no errors, this should leave you with the legacy phoebe library installed system-wide. Next, you should install the wrapper in your virtual environment. Activate it and issue:
Again, assuming no errors, this should leave you with a working wrapper. To test:
If you run into any issues, paste the error here and we'll troubleshoot further. |
Beta Was this translation helpful? Give feedback.
-
Someone with (more? any?) anaconda experience might help better here; I never used anaconda, I only ever use venv, so I'm really not sure how anaconda links a system library, or how an external library (such as phoebe) can be installed into the anaconda system. But I would try to figure out one of those two; if all else failed, I'd try to symlink a system-wide phoebe library to wherever anaconda expects to find its libraries. That might cause compiler/build system version conflicts but it also might work. |
Beta Was this translation helpful? Give feedback.
-
Although I somehow managed to do it before I am currently having a lot of trouble installing the Phoebe Legacy backend as an importable python module. Originally I was able to download the stripped version and easily install it with the following.
python setup_static.py build
python setup_static.py install
Everything still does appear to compile, and the library is added to my anaconda distribution, but when I try to import phoebe_legacy I get an undefined symbol error. From what I read online this usually means that something went wrong during the compilation step. I can see that distutils is deprecated and so I think maybe that is the reason I could install some years back with an earlier version of python but not now.
Because I am not too familiar with compiling c programs I wanted to ask what do I need to change in the setup_static.py file to make sure things compiled properly?
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Python 3.9.13
Beta Was this translation helpful? Give feedback.
All reactions