Giter VIP home page Giter VIP logo

Comments (4)

geokala avatar geokala commented on July 23, 2024

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.

rosenjcb avatar rosenjcb commented on July 23, 2024

@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.

tehasdf avatar tehasdf commented on July 23, 2024

@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.

tehasdf avatar tehasdf commented on July 23, 2024

@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)

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.