Git Product home page Git Product logo

Comments (3)

licy183 avatar licy183 commented on August 19, 2024

Are you using Python 2 on Ubuntu 20.04? I have the same problem. You can add this version string in the variable op_imports in the file /usr/local/lib/python2.7/dist-packages/xdis/op_imports.py. Just like this

...
2.7     : opcode_27,
'2.7.18candidate1' : opcode_27,
'3.0'   : opcode_30,
...

And add the version string in the file /usr/local/lib/python2.7/dist-packages/xdis/magic.py at line 358

# "2.7.17rc1 2.7.17candidate1 2.7.17 2.7.18",
"2.7.17rc1 2.7.17candidate1 2.7.17 2.7.18 2.7.18candidate1",

from python-xdis.

rocky avatar rocky commented on August 19, 2024

@licy183 If you putt in a PR all add this.

Normally I don't add release candidates, but if Ubuntu 20.04 has this in its default Python, I suppose we'll add it.

from python-xdis.

ahmedmoselhi avatar ahmedmoselhi commented on August 19, 2024

Are you using Python 2 on Ubuntu 20.04? I have the same problem. You can add this version string in the variable op_imports in the file /usr/local/lib/python2.7/dist-packages/xdis/op_imports.py. Just like this

...
2.7     : opcode_27,
'2.7.18candidate1' : opcode_27,
'3.0'   : opcode_30,
...

And add the version string in the file /usr/local/lib/python2.7/dist-packages/xdis/magic.py at line 358

# "2.7.17rc1 2.7.17candidate1 2.7.17 2.7.18",
"2.7.17rc1 2.7.17candidate1 2.7.17 2.7.18 2.7.18candidate1",

yes this fixed it .. thnx

from python-xdis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.