-
Notifications
You must be signed in to change notification settings - Fork 255
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
Installation for PyJNIus - PermissionError: [WinError 5] Acess denied #504
Comments
Hm, do you have javac/ant on the machine? i suspect it's just unable to run a program that is missing (and i've seen windows report that as a permission error in the past, instead of a file not found error). We'll have to add a python3.8 target to the release, so it'l lbe easier to install there. |
Hi.... I'm working with Python 3.7 (32-bit) on Windows 10 and I'm seeing the same error after running "pip install pyjnius" in the CMD window. After searching the web, the suggestions that popped up most were about file permissions and executing the command as Administrator. Both of which didn't work. I also tried the following and it has been to no avail: 1.) Uninstall Python, reinstall Python 3.7.7 (32-bit), then "pip install pyjnius" 2.) Download the actual gz file from https://github.com/kivy/pyjnius/releases/download/1.3.0/pyjnius-1.3.0.tar.gz. 3.) Attempted to install from its git repo. Any help would be appreciated... The error is as follows:
|
this error can also be reported when the program we try to run is not found, here the setup.py tries to run ant/javac to build some java code, so i think it fails for not finding it in the path, can you check that you have both? But i wonder why you are using a 32 bit python? we only provide a wheel for the 64bit version, maybe we could provide one for the 32 bit version, but it's a bit of work, and at this point it really feels like people should have moved from that, can't yo install the 64 bit release of python? If you do that, pyjnius should install without needing any compilation. |
Hi Gabriel, Thanks for the feedback. I'll look into installing the 64-bit version of Python, then pyjnius. If all works fine, I'll drop a note here. |
Did it help? |
Hi @tshirtman I went ahead and installed the 64-bit Python version and installed the pyjnius module with no issues. I did ask myself, "Why are you using the 32-bit version?" and I couldn't really come up with a good answer. So, I did an inventory and installed the modules that I have in 32-bit, into the 64-bit and after updating the PATH, each of my .py files are executing fine. Thanks and I appreciate the follow-up... :) |
great! I started to have a look at building for windows 32 bit btw (#536), and it seems we have a couple things to fix, so maybe that'll come, but i don't know when, so good thing you could move on :D. |
Hello, Not sure how useful/useless this is. |
I ran into this issue today. I was initially using Python 3.8 32-bit (no idea why I had 32-bit installed instead of 64-bit) and then saw this issue and upgraded to python 3.9 64-bit. After upgrading, I still ran into the same issue when compiling. Tried with elevated command prompt, going to the actual install directory for python and running the command as mentioned in the previous comment, but I still could not get it to work. I then took a look at pypi and saw that wheels are provided for python 3.8 64-bit so I switched to that version and got pyjnius to install. It would be nice if this could be made clearer in the documentation so that the installation process is easier for new users. Especially since it doesn't seem like pyjnius can be installed with python 3.9 on Windows yet. |
So is it the case that you have a JRE rather than a JDK? |
I have OpenJDK 11 (jdk-11.0.8.10-hotspot) installed and yes, |
So 3.9 is now on the Continuous Deployment github action script (as of 4 days ago) - see https://github.com/kivy/pyjnius/blob/master/.github/workflows/create.yml#L13 - so I think that the next release will have a binary distribution for Python 3.9 64bit on Windows. |
That's good to hear! Any idea why there are issues when installing through pip and no pre-built packages are available? I took a quick look at the setup.py script as well as the env.py script to see how paths are determined and AFAICT there should have been no permission errors (or file not found errors) since the path to javac should have been resolved correctly. |
I rewrote |
I have the same problem but I could install it using Anaconda Anaconda on Ubuntu App in windows 10 >> because Anaconda itself is not easy to deal with |
I have tried the following measures, but error still pops up
Run the cmd in administrator role
Set myself as pycham and python files in administrator role
Used pip install --user PyJNIus
Used python -m pip install --user PyJNIus
Closed Pycham, and run cmd in administrator role
I am already having the highest access right for all files
Can anyone help me out?
The text was updated successfully, but these errors were encountered: