-
Notifications
You must be signed in to change notification settings - Fork 14
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
Install fails in [email protected] with Anaconda environment. #29
Comments
Just looking up the error "generated with LTO version 6.0 instead of the expected 8.1" seems to be somewhat common. Seems like possibly an outdated gcc version? |
It do seems to be a problem with gcc versions. Aparently, the python version used within the conda environment has been compiled with gcc version 7.3 wheras the default gcc version on Ubuntu 20.04 is 9.3. Unfortunately, 7.3 version is not available anymore on Ubuntu 20.04. Therefore, I am still unable to use pynode and the conda environment at the same time. I have avoided this problem by using the "native" (non-conda) python version which is compiled using gcc-v9.3. In this case, I can install and use Pynode without any issues. |
I just succeeded in using PyNode with Miniconda on Ubuntu 18.04. Just to share how I finally make it: TL; DR
DetailsAt first, I encountered the
I believe this is because the python installed and currently used on Conda is built by outdated GCC version as @fridgerator has mentioned. Then I installed another python environment in Conda with a newer version:
Then you might find an error that
This is because the python executable installed by conda is built by a static library like
There is no such thing as Fortunately, (1) conda still provides the dynamic library, and (2) there is a python package
Then let
Thus I installed PyNode successfully. However node.js still failed to find the shared library when it executing the PyNode addon, and we will get:
We need to add a
, which means actually we need to install PyNode like:
And thus pynode would work well:
If you got an error like |
@milliele Thanks for the write up! May I know the content of |
I didn't make any changes to the files. It's just this file in the repo: https://github.com/fridgerator/PyNode/blob/master/build_ldflags.py. |
I'm trying to install PyNode 0.5.1 (last version available in npm) in my system using my usual anaconda environment to execute the python code. The versions currently used in my system are as follows:
However, I am facing an error while compiling the package. It seems that some packages are expected to be built with a different toolchain version (see attached log). Do you have any idea on how to solve this issue?
Thanks!
The text was updated successfully, but these errors were encountered: