-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
ERROR TYPE modi_code= types.CodeType( *modi_args ) #85
Comments
I got the same error on Python 3.8. It works fine on Python 2.7, and I imagine it also works fine on 3.7.
|
Got the same error and managed to solve it by adding changing line 143. Seems types.CodeType got a new attribute (at least in a 3.8.x release). Was:
Now:
First time posting and not so proficient with Github, so please have mercy. |
Awesome, that fixed it indeed. For those looking: Line 143 in 272327c
|
Python 3.7/3.8 compatibility is now complete in version 4.0.5; pushed to pypi |
I'm still getting an error on the same line: TypeError: code() argument 13 must be str, not int |
Possibly already solved here by @crmaxj It seems the arguments of type.codetype have changed again. The ones you need to use depend on your version of Python. If you don't know where your cpppo library is stored, you could run a python script with the following lines: import cpppo
print(cpppo.__file__) If you need further assistance, please let me know which version of python you are running. |
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)
The text was updated successfully, but these errors were encountered: