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

Getting TypeError: 'NoneType' object is not callable in java_gateway.py #531

Open
kareemamrr opened this issue Oct 19, 2023 · 0 comments
Open

Comments

@kareemamrr
Copy link

I am using this lib which is a wrapper for some Java code and in turn uses py4j. For some reason when I run a specific line of code in a jupyter notebook everything works, when I try to run the same thing in a script I am faced with this error

Traceback (most recent call last):
  File "C:\Users\ammagdy\AppData\Roaming\Python\Python39\site-packages\datarobot_predict\scoring_code.py", line 201, in __del__
  File "C:\Users\ammagdy\AppData\Roaming\Python\Python39\site-packages\py4j\java_gateway.py", line 1991, in shutdown
  File "C:\ProgramData\Anaconda3\lib\logging\__init__.py", line 1445, in info
  File "C:\ProgramData\Anaconda3\lib\logging\__init__.py", line 1699, in isEnabledFor
TypeError: 'NoneType' object is not callable```
I am running version py4j 0.10.9.7, Python 3.9.10, Java 8 on Windows 10. Does anyone have a solution?
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

1 participant