Coder Social home page Coder Social logo

Broken libraries about renpy-build HOT 4 CLOSED

renpy avatar renpy commented on May 22, 2024
Broken libraries

from renpy-build.

Comments (4)

mal avatar mal commented on May 22, 2024

The magic number from renpy-8.2.0.23121103+nightly-sdk-ci/lib/python3.9/jnius/env.pyc is 61 0d 0d 0a.
The magic number from the python3.9 binary that ships with the same Ren'Py SDK matches:

>>> print(*('{:02x}'.format(x) for x in importlib.util.MAGIC_NUMBER))
61 0d 0d 0a

The a7 0d 0d 0a magic number (aka b'\xa7\r\r\n' from OP) is the magic number of py3.11.

Given the above, it seems unlikely that this behaviour was observed by building from a nightly SDK (if I'm incorrect in this, please provide the exact version). If resulting from your own builds, is it possible that you built the web version prior to building the android version?

from renpy-build.

qTich avatar qTich commented on May 22, 2024

The magic number from renpy-8.2.0.23121103+nightly-sdk-ci/lib/python3.9/jnius/env.pyc is 61 0d 0d 0a. The magic number from the python3.9 binary that ships with the same Ren'Py SDK matches:

>>> print(*('{:02x}'.format(x) for x in importlib.util.MAGIC_NUMBER))
61 0d 0d 0a

The a7 0d 0d 0a magic number (aka b'\xa7\r\r\n' from OP) is the magic number of py3.11.

Given the above, it seems unlikely that this behaviour was observed by building from a nightly SDK (if I'm incorrect in this, please provide the exact version). If resulting from your own builds, is it possible that you built the web version prior to building the android version?

I think it's enough to build The Question on one of the last two nightly builds to see the problem.

from renpy-build.

qTich avatar qTich commented on May 22, 2024

Broken .pyc:

'/lib/python3.9/steamapi.pyc': b'\xa7\r\r\n',
'/lib/python3.9/jnius/signatures.pyc': b'\xa7\r\r\n',
'/lib/python3.9/jnius/reflect.pyc': b'\xa7\r\r\n'

from renpy-build.

mal avatar mal commented on May 22, 2024

Bytecode generated for the web version was leaking (pseudo-randomly due to glob order), a more targeted filter should ensure we always get the correct files.

from renpy-build.

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.