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

19 views
Skip to first unread message

Kareem Amr

unread,
Oct 19, 2023, 10:23:51 AM10/19/23
to Py4J Support and Comments
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
```Exception ignored in: <function ScoringCodeModel.__del__ at 0x0000013D0114A820>
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?
Reply all
Reply to author
Forward
0 new messages