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

TypeError: "an integer is required" with Python 3.8 #31

Open
mcorne opened this issue May 20, 2020 · 5 comments
Open

TypeError: "an integer is required" with Python 3.8 #31

mcorne opened this issue May 20, 2020 · 5 comments

Comments

@mcorne
Copy link

mcorne commented May 20, 2020

The following snippet produces "TypeError: an integer is required (got type bytes)" with Python 3.8.

Code snippet

from goto import with_goto
@with_goto
def main():
    label .label_rst

Error trace

TypeError: an integer is required (got type bytes)
File "env/lib/python3.8/site-packages/goto.py", line 184, in with_goto
  _patch_code(func_or_code.__code__),
File "env/lib/python3.8/site-packages/goto.py", line 175, in _patch_code
  return _make_code(code, buf.tostring())
File "env/lib/python3.8/site-packages/goto.py", line 53, in _make_code
  return types.CodeType(*args)
@itzB2
Copy link

itzB2 commented Sep 27, 2020

tell me what should i do

@mcorne
Copy link
Author

mcorne commented Oct 2, 2020

Wait until there is a fix for 3.8 or run with 3.6.

@dlpigpen
Copy link

I got the same issue on Python 3.8.6

@TabulateJarl8
Copy link

I fixed this in #34

@ibrahemesam
Copy link

I got the same error on Python 3.8.4

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

5 participants