Comments (13)
Could you provide the entire stack trace for the error?
from stickytape.
Looks like an encoding issue when the modules get written out. I've just uploaded 0.2.1, which hopefully fixes the issue.
from stickytape.
Are you sure you're using the latest version of stickytape? The stack trace you posted before showed an encoding error when writing the contents of the module, but the contents of the module should now be byte strings (and therefore encoding shouldn't be a concern). Could you post the output generated by stickytape?
from stickytape.
If the stack trace is exactly the same, then I don't think you've generated the output file using the latest version of stickytape, since the contents
argument should be a byte string, whereas the stack trace shows the argument being a (Unicode) string.
from stickytape.
From the docs for pip install:
Note that
pip install
prefers to leave the installed version as-is unless--upgrade
is specified.
So if you already have stickytape installed, you'll need to pass --upgrade
to install the latest version.
from stickytape.
I'm glad you got it working.
from stickytape.
I could not redirect the python output in cmd.exe for some strange reason. This is from PowerShell instead. I think it is the same. (2>&1)
from stickytape.
Thanks, but I still get the same error. As before it works in the Ubuntu subsystem, but when testing the same output file in Windows cmd shell I still get the UnicodeEncodeError.
The traceback in cmd shell is exactly the same as before.
from stickytape.
I was just going to say I am not sure about that. I might have made some mistake when upgrading since I am not used to python. However I can't find any version info (except from "pip install stickytape").
I normally expect version info from something like "stickytape --version". And I also expect it in the stickytape output file.
Could you perhaps add such info?
from stickytape.
Thanks, yes I know that. And I have the latest version installed. However I do not know exactly how old versions are handled. Maybe they are still around?
Hm, I just checked with "sudo python -m pip list" vs "python -m pip list". The old version is still there in the second case. (It should be very good if I could get the version directly from stickytape.)
from stickytape.
Ah, the output file (produced in Ubuntu subsystem) works in cmd shell!
(I did "python -m pip uninstall stickytape". And exited the Ubuntu subsystem and entered it again.)
from stickytape.
It also works now to do everything in Windows 10 cmd shell.
from stickytape.
And the output file made in cmd shell works in the Ubuntu subsystem.
Many thanks for fixing this.
from stickytape.
Related Issues (20)
- Library to script conversion possible? HOT 4
- Dynamic imports don't work if the python path is a level up from their location HOT 2
- PermissionError: [WinError 5] Access is denied Error in Windows environment HOT 3
- How to "make" HOT 2
- Holding of the __init__.py during 'make_package' cause failure on exit (Windows + IronPython)
- Using sticky tape to pass code to external engine HOT 1
- Output file still want to import files HOT 20
- from __future__ import unicode_literals HOT 12
- Relative imports matching stdlib modules are incorrectly ignored HOT 1
- Improve list of stdlib modules
- Handle relative imports from parent packages HOT 1
- Relative import still doesn't work? HOT 4
- SyntaxError: Non-UTF-8 code starting with '\xff' HOT 1
- How to include Python standard library HOT 1
- Renaming of modules HOT 4
- Explicitly add modules inline HOT 1
- Move future statements at the top HOT 2
- how to convert many py files to a py file without make tempfile HOT 1
- when i exec a cmpiled file in a cmpiled file ,raise NameError: global name '__stickytape_working_dir' is not defined HOT 4
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 stickytape.