-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 issue when installing with poetry #3362
Comments
Thanks for reporting. This must be some new development, installations have been working for a decade… Are you able to check what changed? And if it's fix-able, open a PR?? Many thanks. |
Yeah no idea, I have it failing on 3 colleague's M1 mbps also. Seems other projects have used a workaround like: def finalize_options(self):
_build_ext.finalize_options(self)
# Prevent numpy from thinking it is still in its setup process:
try:
__builtins__.__NUMPY_SETUP__ = False
except:
try:
# For python 3
import builtins
builtins.__NUMPY_SETUP__ = False
except:
warn("Skipping numpy hack; if installation fails, try installing numpy first")
import numpy I could open a quick PR with this if u like? |
Also related to #3225 |
I also have the same problem with poetry with the 3.8.3 version, with latest python 3.9 |
Upgrading to latest (4.2.0) did fix the problem. The migration guide was really helpfull : https://github.com/RaRe-Technologies/gensim/wiki/Migrating-from-Gensim-3.x-to-4 |
Hi, I don't think this has to do with gensim version. I encounter the same issue with gensim 4.2.0. After a bit of investigation, it appears to be the I could reproduce the behaviour (crash with and the installation works without |
Just adding a few more remarks over @Jebq comments:
It seems like the solution would be generating a |
More information about new package metadata declaration can be found on PEP-621: https://peps.python.org/pep-0621/ |
* Closes #3362: Install issue poetry * get rid of redundant exception handling this code can never raise an exception, so we shouldn't be expecting them Co-authored-by: Michael Penkov <[email protected]>
poetry add gensim
https://github.com/RaRe-Technologies/gensim/blob/ded78776284ad7b55b6626191eaa8dcea0dd3db0/setup.py#L107
getting
AttributeError: 'dict' object has no attribute '__NUMPY_SETUP__'
when trying to install gensim with poetry.Seems to work on intel Macs, fails on M1
The text was updated successfully, but these errors were encountered: