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

RuntimeError: code type passed for version 3.10.5 but we are running version None #97

Closed
ImInTheICU opened this issue Oct 28, 2022 · 0 comments

Comments

@ImInTheICU
Copy link

from xdis import marsh

script = """
a=10
b=20
print ('addition =',a+b)
"""
code = compile(script, "script", "exec")
x=marsh.dumps(code)
print(x)

exec(marsh.loads(x))

Returns

RuntimeError: code type passed for version 3.10.5 but we are running version None
@rocky rocky closed this as completed in 31ddfad Oct 28, 2022
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