Giter VIP home page Giter VIP logo

Comments (4)

devinacker avatar devinacker commented on August 16, 2024

Is this also with the python3 branch, or master?

(the former is a work-in-progress attempt at making the package compatible with both python 2 and 3, which I've been kind of neglecting; I had wanted to eventually merge the branch back into master once it was stable. Thanks for giving it a bit more testing - I'll look at both issues soon)

from omgifol.

JPLeBreton avatar JPLeBreton commented on August 16, 2024

Ah yes, I should have specified that this is with the master branch and Python2.

from omgifol.

devinacker avatar devinacker commented on August 16, 2024

OK, found the issue - python on your system treats longs as 8 bytes rather than 4, which is the size that omg.Graphic.to_raw expects it to be when decoding the lump.

Rather than fixing this specific case just yet, I'd like to go through and make sure every call to struct.unpack is sufficiently strict about size/endianness, but in the meantime you can change the format string on L151 of lump.py to '<%il' which should be enough to fix exporting images.

from omgifol.

devinacker avatar devinacker commented on August 16, 2024

Should be better in 301ca31, give it a try.

from omgifol.

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.