Coder Social home page Coder Social logo

Comments (4)

timeyyy avatar timeyyy commented on July 29, 2024

Originally posted by @rfk

Over in #104, we figured out a minimal set of modules that must be available to python during its startup sequence. I think this is a new requirement for python3, related to bootstrapping the io module and sys.stdin and similar. The list is:

_weakrefset.pyc abc.pyc     codecs.pyc  encodings   io.pyc

So, we need to find a way to make these available to the py2exe bootstrap exe. This probably means creating a library.zip or similar in the top-level bootstrap env, or perhaps appending them to the bootstrap executable itself. Unfortunately I don't have access to a windows box at the moment, but if anyone's feeling adventurous, I can give you some pointers on how move ahead with this.

In fact, there's a comment in f_py2exe that says "There's no need to copy library.zip into the bootstrap env...". One way to see if this will help fix the problem, would be to copy the library.zip from the version subfolder into the bootstrap env, and see if that lets things run.

from esky.

timeyyy avatar timeyyy commented on July 29, 2024

@rfk

  • how did you skip the encoding error and get to the subsequent error in issue #104 ?
  • No combination of unzipping the encoding files or sitting the library.zip next to the bootstrap.exe managed to work.

Any other ideas and what could be causing this?

Two interesting pieces of info:

  • cxfreeze works like a charm on py3.4 without any mods, it's also the only freezer that is using the compile_to_bytecode function you mentioned (dunno if that's related)
  • If i make the app update itself ( by bypassing the bootsrap and selecting the version manually), it creates some folders and does its magic, after that the bootstrap works..., pointing to the new version and everything

just as a reference in case you want to see how the structure of esky is

https://github.com/cloudmatrix/esky/wiki/How-Esky-Works

before an initial update though it looks a bit different,
the appdata doesn't exist and our app version resides in a folder someapp-0.1.win-32

from esky.

timeyyy avatar timeyyy commented on July 29, 2024

#116 is also to do with the bootstrap not working when a particular module is present

from esky.

rfk avatar rfk commented on July 29, 2024

Unfortunately this project is no longer actively maintained, so I'm going to move it into archive mode:

https://rfk.id.au/blog/entry/archiving-open-source-projects/

from esky.

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.