-
Notifications
You must be signed in to change notification settings - Fork 28
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
TypeError: expected str, bytes or os.PathLike object, not NoneType #4
Comments
Same error here, someone resolved this? |
on window platform same error as is, but install successful on macos platform |
@alexzhu0592 Could you share how you resolved it on macOS? |
no errors on macos, just install by normal way like pip install pemja |
Maybe you can check your jdk version or python version which doc suggests |
What's the os and hardware? m1 chip? |
Seems to be an issue with how environment variable JAVA_HOME is set on some machines (i.e. I'm using a M1 chip + Linux). The below command worked for me: |
Okay so i did alot of testing with @jamesalford and it seems this is an error because of python 3.10. If you install with python3.9 pemja installs fine. it has nothing to do with java_home being set or not, but its a python issue Python3.10 works if you set a JAVA_HOME to a working java, otherwise it crashes with NoneType |
well,I met the issue in Python3.7,and because the source code of pemja set to find 'JAVA_HOME', so I set 'JAVA_HOME' to solve the problem. Then install pemja successfully. |
Unable to install pemja on raspberry pi, tried with python 3.7 and 3.9
Steps to reproduce:
The text was updated successfully, but these errors were encountered: