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

setup.py dependency issues on Windows #24

Open
ryanstover opened this issue Oct 5, 2021 · 2 comments
Open

setup.py dependency issues on Windows #24

ryanstover opened this issue Oct 5, 2021 · 2 comments

Comments

@ryanstover
Copy link

Running setup.py using Windows 10, Anaconda 3, and Python 3.7 returns either a ModuleNotFound error or an error stating that MS Visual C++ 14.0 or higher is required, even though Visual Studio and required packages are already installed. If each required module is installed individually, the Visual Studio required error is still returned. As a side note, running setup.py still installs missing modules (in my case, sklearn and jpype1 v0.6.3). Details in screenshot.

Screenshot (1140)

@edecarlo-swri
Copy link
Collaborator

edecarlo-swri commented Oct 6, 2021

I attempted to recreate the error and looking through the console output, I see that one difference is that my system "Found native jni.h" (3rd from the bottom line). This has to do with having a Java distribution installed or at least in the path, which makes sense because jpype is a Java wrapper for Python. My guess is that you may not have a Java distribution installed, and if you do, it is not on your path. I will update the setup.py script to check this before installing jpype and is really only needed here if NATS or GNATS is being used (which could be checked by seeing if NATS_HOME or GNATS_HOME environment variables are set).

image

You can check if you have Java on your path by running where java in the Anaconda prompt. If you do not have a Java distribution, you can install the open source Amazon Corretto 8.

@ryanstover
Copy link
Author

I installed Amazon Corretto 8, put the file location into the path system variable (and followed the rest of the install instructions on the website), reran python ...setup.py develop after running conda install -c conda-forge jpype=0.6.3 numpy pandas bokeh matplotlib pyclipper sklearn where sklearn and jpype1 didn't install, got the line Found native jni.h, but still received the same MS Visual not found error. Anaconda does seem to realize that Java is on the path. The screenshot provides the rest of the details.

As a side note, I installed sklearn separately and am now running this on a different computer.

Screenshot (28)

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