-
-
Notifications
You must be signed in to change notification settings - Fork 117
Description
I get this erro from PyCharme debug and it is not importing the libray.
I have no clue about it.
I get the same error launching python3 -m cpppo.server.enip
I think something is wrong in my installation, somebody could help me?
thanks
My environment is Mac PowerBook with Catalina and python 3.8 with PyCharme
Thanks a lot for your help
this is the terminal response to python3 -m cpppo.server.enip
traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 184, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 110, in _get_module_details
import(pkg_name)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/cpppo/init.py", line 29, in
from .automata import *
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/cpppo/automata.py", line 33, in
from . import misc
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/cpppo/misc.py", line 204, in
change_function( __normal, co_filename=logging._srcfile )
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/cpppo/misc.py", line 163, in change_function
modi_code = types.CodeType( *modi_args )
TypeError: an integer is required (got type bytes)
modi_code = types.CodeType( *modi_args )
TypeError: an integer is required (got type bytes)