Comments (4)
We've removed --no-binary from the args, so this issue should not happen with 0.9.1+.
Please reopen this if the problem recurs.
from wagon.
@geokala this happens if I try running wagon.exe
directly from the Scripts folder. If I try to run it like this: python -m wagon
I get this error:
File "C:\Users\us58577\AppData\Local\Continuum\anaconda3\envs\py38\lib\site-packages\wagon.py", line 47, in <module>
from distro import linux_distribution
ModuleNotFoundError: No module named 'distro'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\me\AppData\Local\Continuum\anaconda3\envs\py38\lib\runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\me\AppData\Local\Continuum\anaconda3\envs\py38\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\me\AppData\Local\Continuum\anaconda3\envs\py38\lib\site-packages\wagon.py", line 49, in <module>
from platform import linux_distribution
ImportError: cannot import name 'linux_distribution' from 'platform' (C:\Users\me\AppData\Local\Continuum\anaconda3\envs\py38\lib\platform.py)
Obviously, I'm using this on Windows and on version 0.9.1.
from wagon.
@rosenjcb please install wagon[dist]
; it's still an open question whether we want to make distro be automatically installed on 3.8+, and I'm not sure :/
this is because platform.linux_distribution
was deprecated in 3.5 and removed in 3.8; wagon will use distro's impl. If available, and distro is installed optionally, but not automatically (yet).
You're right that this just breaks wagon at import-time on 3.8+; linux_distribution
is however only called for creating, not for installing wagons (for putting the build distro name in the metadata file)
the same issue was present in wagon 0.7, and we didn't fix it yet for 0.9/1.0, but it's of course unrelated to --no-binary
and wheel args
from wagon.
@rosenjcb I've pushed #135 and published wagon 0.9.2, which now should not require distro/platform at import time. You will still need it for creating/repairing (not installing) wagons, and there is a message telling you to install distro if you don't have it.
Still open as to whether we want distro be a hard requirement; I'm iffy on that because I like how currently wagon has no requirements.
(i guess it has wheel)
from wagon.
Related Issues (20)
- Why not use plain "mega" wheels? HOT 4
- Change subcommand names to be consistent with `wheel` HOT 1
- Specifying conditional dependencies HOT 1
- Support source URL type git+https HOT 2
- Won't create wagon without virtualenv... while in a virtualenv HOT 1
- `wagon install` leaves a temporary directory behind HOT 4
- Wagon fails to validate correct wagons HOT 2
- Pip command not found with locally installed pip HOT 2
- pip 10.0.0 breaks wagon HOT 3
- Generated archive_name in package.json doesn't contain build_tag HOT 1
- Wagon release 0.8.0 with pip >= 10 compatibility? HOT 2
- wagon's invocation of `pip install` still tries to contact PyPI HOT 2
- how to set support platform to linux_x86_64? HOT 1
- Create a mega-wheel from existing .whl files that can be uploaded to PyPI
- Print help message if no arguments provided HOT 1
- Wagon should generate a zip archive by default
- Allow to pass arbitrary flags to pip in a nicer manner
- Test Wagon on py33, py36, pypy and test flake on py3 as well
- Redo tests with pytest
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 wagon.