Giter Club home page Giter Club logo

Comments (5)

meyer9 avatar meyer9 commented on August 22, 2024

Make sure you run it on Python 3.6+.

from ethdasm.

pirapira avatar pirapira commented on August 22, 2024

Thanks.

from ethdasm.

pirapira avatar pirapira commented on August 22, 2024

I'm seeing

$ python3.6 ethdasm.py test.hex
Traceback (most recent call last):
  File "ethdasm.py", line 40, in <module>
    print(output)
NameError: name 'output' is not defined
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>
    import apt
  File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
    import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'

Original exception was:
Traceback (most recent call last):
  File "ethdasm.py", line 40, in <module>
    print(output)
NameError: name 'output' is not defined

but I guess this is due to https://bugs.launchpad.net/ubuntu/+source/python3.6/+bug/1685596

from ethdasm.

meyer9 avatar meyer9 commented on August 22, 2024

Hmm, so it looks like you didn't pass in --decompile or --disassemble. There should probably be a default. I'll reopen this so I remember to add that.

python3.6 ethdasm.py --disassemble test.hex

from ethdasm.

meyer9 avatar meyer9 commented on August 22, 2024

Made the default command disassemble.

from ethdasm.

Related Issues (3)

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.