-
Notifications
You must be signed in to change notification settings - Fork 31
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
importing pyxdameraulevenshtein crashes python kernel #11
Comments
How did you install it? Did the pip install succeed? I haven't actually tried installing this on Windows 10 except for within the bash subsystem (which does work). |
I have installed it vie pip as the dependency of textdistance package (i opened an issue there but they forwarded me here). So i just did this:
to install. And it succeded. |
Can you try installing |
Same crash on import after pip install pyxdameraulevenshtein on clean venv. |
Would you mind creating a fresh virtual environment and installing with the following command?:
Please paste the contents of that output here so that I can get a little more insight into what's going on. |
@gfairchild i created fresh venv and installed with --verbose. Got this suspicious error: --- Logging error --- But afterall "Successfully installed numpy-1.14.2 pyxdameraulevenshtein-1.5". |
Is that the complete output of Ok, so from what I can tell right now, it looks like the error is in the installation, not the use, of pyxdameraulevenshtein. We need to figure out how to be able to get you to install this on Windows. As indicated on the readme, you need to be able to compile C code. On Linux/Macs, this is easy. Using the Bash subsystem on Windows (which I'd highly recommend checking out if you haven't already), this is easy. I've never tried it on native Windows, though. Additionally, it looks like you're using Anaconda, which I've also never used, so I'm not sure how that affects things. https://wiki.python.org/moin/WindowsCompilers#Microsoft_Visual_C.2B-.2B-_14.0_standalone:_Build_Tools_for_Visual_Studio_2017_.28x86.2C_x64.2C_ARM.2C_ARM64.29 may be a good place to start. So, as those instructions say, try this:
Let me know if that solves your problem. |
After i cloned the repo and installed from source (python setup.py install) i now get all the things work good. Also there is no crash on So maybe the bug is somewhere in pypi version difference? |
That's certainly interesting. The PyPI version is identical to master right now. Nothing has changed. So after trying what I just suggested, you still can't install from PyPI? |
New scenario appeared:
So if my cached numpy was broken i dont get why installing pyxdameraulevenshtein from source didnt cause the issue. |
Very interesting. NumPy should automatically be installed, but that's clearly not the case. In fact, I just tried it on an empty virtual environment on my PC (using the Ubuntu subsystem on Windows 10), and I can replicate what you're referring to. I need to fix |
I just modified |
1.5.2 was just released, which further addresses the NumPy dependency issue. I think this should solve your problem. I'm going to go ahead and close this issue, but please let me know if you're still experiencing this problem with 1.5.2. |
Windows 10, Python 3.5, pyxdameraulevenshtein v1.5
I get "Kernel died, restarting" anytime i execute this line (in separate venv):
import pyxdameraulevenshtein
Seems like OS issue.
The text was updated successfully, but these errors were encountered: