Giter Site home page Giter Site logo

Comments (7)

superbonaci avatar superbonaci commented on August 19, 2024 1

With pip3:

pip3 install intelhex
Collecting intelhex
  Using cached https://files.pythonhosted.org/packages/bf/77/bf670318b3db325c71e2ac6a90b7bcfdf9fc739b7cf6aebb31715721623e/intelhex-2.2.1-py2.py3-none-any.whl
Installing collected packages: intelhex
Successfully installed intelhex-2.2.1

from intelhex.

benfre avatar benfre commented on August 19, 2024

What is in the first line of these to files?
To use with python3, you need install intelhex with pip3.

from intelhex.

superbonaci avatar superbonaci commented on August 19, 2024

Those files are images from block devices.

from intelhex.

The-42 avatar The-42 commented on August 19, 2024

Python 2.7 has reached end-of-life, please try to reproduce this with Python 3 (see above)

from intelhex.

superbonaci avatar superbonaci commented on August 19, 2024

Still fails:

python3 --version
Python 3.7.5
python3 hexdiff.py device1.raw device2.raw
Traceback (most recent call last):
  File "hexdiff.py", line 90, in <module>
    sys.exit(main())
  File "hexdiff.py", line 84, in main
    ih1 = IntelHex(fname1)
  File "/home/adams/.local/lib/python3.7/site-packages/intelhex/__init__.py", line 90, in __init__
    self.loadhex(source)
  File "/home/adams/.local/lib/python3.7/site-packages/intelhex/__init__.py", line 212, in loadhex
    decode(s, line)
  File "/home/adams/.local/lib/python3.7/site-packages/intelhex/__init__.py", line 123, in _decode_record
    raise HexRecordError(line=line)
intelhex.HexRecordError: Hex file contains invalid record at line 1

from intelhex.

bialix avatar bialix commented on August 19, 2024

from intelhex.

superbonaci avatar superbonaci commented on August 19, 2024

No, my files are not IntelHex files. I thought the script was general purpose. Thanks for clarification.

from intelhex.

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.