question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Platform restrictions on sub-dependencies are ignored

See original GitHub issue
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

I am trying to add the responder dependency on Windows. Notice that their setup.py specifies that the uvloop dependency should not be included on Windows, as it is incompatible. However, it seems that Poetry is attempting to install it anyways:

PS Z:\sudiamanj\playground> poetry add responder
Using version ^1.1 for responder

Updating dependencies
Resolving dependencies... (0.3s)


Package operations: 19 installs, 0 updates, 0 removals

  - Installing uvloop (0.11.3)

[EnvCommandError]
Command ['C:\\Users\\sudiamanj\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\playground-py3.6\\Scripts\\pip.exe', 'install', '--no-deps', 'uvloop==0.11.3'] errored with the following output:
Collecting uvloop==0.11.3
  Using cached https://files.pythonhosted.org/packages/46/60/8e46188acba22369848d5e9bcbee3ca04b68a12d0598bd625c1a3994f5df/uvloop-0.11.3.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\SUDIAM~1\AppData\Local\Temp\pip-install-93rqsrxx\uvloop\setup.py", line 15, in <module>
        raise RuntimeError('uvloop does not support Windows at the moment')
    RuntimeError: uvloop does not support Windows at the moment

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\SUDIAM~1\AppData\Local\Temp\pip-install-93rqsrxx\uvloop\

add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] <name> (<name>)...

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sdispatercommented, Dec 10, 2018

There is definitely something wrong here. I will investigate and get back to you.

0reactions
vlcinskycommented, Feb 25, 2019

Resolved in uvicorn v 0.4.6 by PR https://github.com/encode/uvicorn/pull/309

Uvicorn 0.5.* is likely to use extras (see https://github.com/encode/uvicorn/issues/219) to cover this issue so things can break or change again in some situations (hopefully get finally resolved).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Platform restrictions on sub-dependencies are ignored #700
I am trying to add the responder dependency on Windows. Notice that their setup.py specifies that the uvloop dependency should not be included ......
Read more >
Gradle manage transitive dependencies - Stack Overflow
I'm trying to remove junit 4.12 from the classpath using the following methods, but to no avail (find the results next to each):...
Read more >
Apache Maven Enforcer Built-In Rules – Banned Dependencies
Banned Dependencies. This rule checks the dependencies and fails if any of the matching excludes are found.
Read more >
dealing with problematic dependencies in a restricted network ...
As a quick first attempt, you can ignore lifecycle scripts when installing packages via npm install {pkg-name} --ignore-scripts . Unfortunately, ...
Read more >
Gradle ignores transitive dependencies when specifying a ...
I am working on a multi platform Java EE product/framework project. ... Gradle ignores transitive dependencies - in contrast to Maven.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found