-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install package on Windows: "EnvironmentError: No such file or directory" when a node_modules exists in a subdirectory #6279
Comments
This issue is no longer of interest to me as I found a satisfactory workaround (removing the files as a step in our CI). Still surprised that no one has seen this before though. |
Hi @ErikBjare , I met the same problem, how do you fix it now? Removing the files or change the pip version? Thanks |
@demianzhang I removed the files before running pip. You could downgrade pip to 9.0.3 but I wouldn't recommend it. |
Thanks for your reply. |
This keeps happening to me, really annoying. |
This looks like a case of the files exceeding the 260 character max path limit and is probably not related to
I checked and it looks like the long path support also works for the dynamically-created entrypoints (e.g. |
I hope the above helped. I'll close this now since it seems like it isn't an issue with pip, per se. Please let us know if you're still experiencing any issues. Thanks! |
Environment
You can see the issue being raised at the end of this Travis build: https://travis-ci.org/ActivityWatch/activitywatch/jobs/495639762#L493
Description
I'm working on trying to get my Python project aw-server (a component of ActivityWatch) to build on Windows using Travis. In doing so, I stumbled upon an old issue we've had before when building on Windows using Appveyor which required us to downgrade pip to 9.0.3 (see this old issue: ActivityWatch/activitywatch#195).
I'm basically trying to install a Python package that has a subfolder (git submodule) containing a
node_modules
directory, which seems to contain some files that make pip blow up when trying to install. The previous workaround we used (when using Appveyor) was a simple pip downgrade (also mentioned in ActivityWatch/activitywatch#195). Now I'd rather not downgrade pip any longer and have been unable to find anyone else having a similar issue, so I'm asking if anybody here knows what could be going wrong.The PR with the changes, for those interested, can be found here: ActivityWatch/activitywatch#274
Expected behavior
I expected the package to install correctly, as it does when using pip 9.0.3.
How to Reproduce
Try to install aw-server on Windows (with the aw-webui files built underneath) following the same process as when Travis CI tries to build aw-server.
Output
Copied from the Travis CI build linked above. Formatted for readability.
Additional comments
I'd be happy to find a workaround other than downgrading pip, maybe there is a way to tell pip to ignore the problematic files?
The text was updated successfully, but these errors were encountered: