Skip to content
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

Pip install sometimes fails on windows systems with 260 character path limit #535

Closed
rcxdude opened this issue Aug 2, 2020 · 3 comments · Fixed by #542
Closed

Pip install sometimes fails on windows systems with 260 character path limit #535

rcxdude opened this issue Aug 2, 2020 · 3 comments · Fixed by #542
Labels
type: docs update documentation change not affecting the code

Comments

@rcxdude
Copy link

rcxdude commented Aug 2, 2020

Issue Summary

pip install will sometimes fail on windows due to long paths, if the path limit is not disabled. Due to a combination of long paths in a CI build or long paths for e.g. the Windows store version of python and long paths in the package, the installer may attempt create files with a path over 260 characters and fail. I think this was one of the issues encountered by the reporter in #510

Steps to Reproduce

Installing on windows 10, python 3.6, pip 20.2, 6.44.1 without character path limit disabled.

pip install twilio

Code Snippet

# paste code here

Exception/Log

byte-compiling c:\users\administrator\desktop\builds\ercp-8uu\0\xxxxxxxxxxxxxxxxxxx\yyyyyyyyyyyyyyyyy\env\Lib\site-packages\twilio\rest\api\v2010\account\sip\domain\auth_types\auth_registrations_mapping\auth_registrations_credential_list_mapping.py to auth_registrations_credential_list_mapping.cpython-36.pyc
    error: [Errno 2] No such file or directory: 'c:\\users\\administrator\\desktop\\builds\\ercp-8uu\\0\\xxxxxxxxxxxxxxxxxxx\\yyyyyyyyyyyyyyyyy\\env\\Lib\\site-packages\\twilio\\rest\\api\\v2010\\account\\sip\\domain\\auth_types\\auth_registrations_mapping\\__pycache__\\auth_registrations_credential_list_mapping.cpython-36.pyc.50728064'

Technical details:

  • twilio-python version:
  • python version:

Workaround

Disabling the path limit in Windows or using an install location in a shorter path resolves the issue, however, it would be at least worth a better error message in this case.

@childish-sambino
Copy link
Contributor

I think this is a good candidate to add to the install docs.

This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.

@childish-sambino childish-sambino added status: help wanted requesting help from the community type: docs update documentation change not affecting the code labels Aug 3, 2020
@hack3r-0m
Copy link
Contributor

can I work on it?

@childish-sambino childish-sambino removed the status: help wanted requesting help from the community label Oct 1, 2020
@Jediguy
Copy link

Jediguy commented Jul 6, 2021

I just ran into this issue. For those looking for a fix here's what I did.

1.In Registry Editor navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

  1. Find - LongPathsEnabled dword

  2. Change Value to 1
    1 = Enable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: docs update documentation change not affecting the code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants