Skip to content
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]: Conda installation broken. #8

Open
astrogewgaw opened this issue Feb 2, 2022 · 3 comments
Open

[BUG]: Conda installation broken. #8

astrogewgaw opened this issue Feb 2, 2022 · 3 comments

Comments

@astrogewgaw
Copy link
Contributor

There is an open bug (as of 2/2/2022) in pybind11 that breaks numbits when installed into a conda environment. I came to know of this recently when I tried installing one of my own packages (priwo) which has numbits as a dependency. I am not sure if there is anything any of us can do to avoid this until the bug is fixed upstream. I have not yet tried installing numbits into a virtual environment, as suggested by some users in the original pybind11 issue above. If that works for anyone, or if anyone gets more information on this bug, feel free to update this issue as required 👍🏾 .

@telegraphic
Copy link
Owner

Interesting -- does it work if installed from pip install git+https://github.com/telegraphic/numbits by any chance? (Wondering if it's an issue with pypi wheels)

@astrogewgaw
Copy link
Contributor Author

Nope. That doesn't work either. The package does get installed both ways (that is, via pip install numbits or pip install git+https://github.com/telegraphic/numbits) but it always runs into an ImportError when I do import numbits anywhere. This is the error I keep getting (which is specified in the upstream bug as well):

In [1]: import numbits
----------------------------------------------------------------------
ImportError                          Traceback (most recent call last)
Input In [1], in <module>
----> 1 import numbits

ImportError: /home/neo/conda/lib/python3.9/site-packages/numbits.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZNSt15__exception_ptr13exception_ptr10_M_releaseEv

The error is exactly the same for either case.

@astrogewgaw
Copy link
Contributor Author

Just an update: I just tested out numbits in my conda environment, and it just worked 😁 . This despite the fact that the bug on pybind11's side is still open (as of 29/9/22). I don't really not what happened 🤷🏾 , but it would be nice if more people who have conda environments could test this out, just in case. If it works, then we can just close this issue I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants