Comments (4)
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.
- 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.
#116 is also to do with the bootstrap not working when a particular module is present
from esky.
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)
- Unable to get admin rights HOT 5
- Import error with pythonnet HOT 12
- cxfreeze windows digest not euqal HOT 1
- continous integration appveyor HOT 4
- Esky falls over using 64bit python on windows HOT 1
- Esky falls over using 64bit linux HOT 1
- py2exe on windows HOT 1
- py2app on mac HOT 1
- OSX: unorderable types: str() > NoneType() while creating patch HOT 5
- py2exe py2.7, failing on py3k_master branch
- Esky differential patches not working HOT 6
- extract overwritting case sensitive files
- Error for running the tutorial esky-master\tutorial\stage0\ on my Windows10 HOT 2
- Error for running python setup.py bdist_esky HOT 9
- Windows system error with auto update HOT 3
- esky in windows enviornment HOT 6
- Error running bootstrap executable created by py2exe with Python 3.4 HOT 2
- tutorials fail HOT 1
- locale.getdefaultlocale() returns None HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esky.