-
Notifications
You must be signed in to change notification settings - Fork 17
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
nltk download crashes #21
Comments
Interesting: The initial error looks similar to the one described here: #18 |
Hey,
|
Which numpy Version are you using? I think only |
You're absolutely right, it had slipped my mind. Thanks ! |
Hi, I'm currently using Numpy 1.13.3 under windows (JyNI alpha 5) and a stand alone of Jython 2.7.1 i'm trying to call Numpy with this Test.py:
But got an error:
I don't get it, it works with Python but not with Jython/JyNI Could you help me please? |
Jython most likely locates a version of numpy < 1.12 as the error you observe is typical for that. Where did you obtain NumPy? Only PIP-installed numpy was tested, i.e. no binaries from anaconda or canopy. Or did you build it yourself?
If you like I can share a complete standalone folder with Jython/JyNI/NumPy even including JRE. I occasionally use it for demonstrations. It's about 200MB; I would share it via google drive, contact me by email if you're intersted. It would be a starting point to fix configuration. |
Hi, path.remove is a fail (brain fuck it was not when testing) the numpy is the 1.13.3 (installed with pip install numpy). So i tried Honestly, i'm not used with Python and CPython, never used before. Oh and about the JyNI-Demo, on my computer only JyNIDateTimeTest.py and JyNITkinterTest.py work So, please, could you share ur folder ? Have a nice day :) |
Hey, I tried ur folder and it works! But i don't get it What is Thank you for ur help, i appreciate , i will try to integrate it in my java app if u allow it Have a nice night? |
pathswin configures the sys.path properly. You can try to assess from it what might be missing in your original configuration. I wouldn't recommend that setup for building an app on top. At least you should reduce it to the essential parts. Currently it includes whole cpython dist and a jre. This might be problematic for further distribution also license wise. Not yet speaking of packaging. |
Yeah finally i'm just using this:
With what i understand i only need the DLLs, and it work with just that Thanks U so much ! |
All this configuration stuff is not yet well thought out for Jython as it traditionally didn't support C-extensions. Currently the best procedure is to install stuff for CPython and configure JyNI so it finds it in CPython's environment. This will need a proper solution in the future - but now it's what it is: Bleeding edge technology. Good luck with your stuff! Regarding dlls, I think it only needs |
Yeah i just need to adjust my sys.path to point the good folders right? |
Right. |
Dear Stewori, I'm currently working with ur JyNI and Jython to integrate Numpy in a Java App as i said. Is it me or JyNI works only if the jar is nammed JyNI.jar. So the problem is: So maybe u know it and found a solution? |
I'm afraid Jython does not support Android as of this writing. For more details on this topic refer directly to the Jython project (maybe open an issue or bounty). Regarding the issue with the jar name: Naming JyNI.jar differently should work if you fix the classpath and launch command accordingly. However I did not test renaming the jar. Finally, let me point out that this would be better suited as a separate issue/thread as it is unrelated to problems with nltk. |
To import nltk I need to import numpy first, otherwise I get:
The tk download dialog works fine, but it crashes the JVM when I select something and hit "download":
The text was updated successfully, but these errors were encountered: