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

Unable to install msgraph-sdk: path too long #338

Open
alegrigoriev opened this issue Sep 17, 2023 · 7 comments
Open

Unable to install msgraph-sdk: path too long #338

alegrigoriev opened this issue Sep 17, 2023 · 7 comments
Labels
type:bug A broken experience

Comments

@alegrigoriev
Copy link

alegrigoriev commented Sep 17, 2023

Environment

  • Python Version: Python 3.10
  • msgraph-core version:
  • OS: Windows 10

Describe the bug

msgraph-sdk install fails because path is too long.

To Reproduce

pip install msgraph-sdk

Expected behavior

Installation must succeed

Screenshots

User-local installation fails:

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\agrigoriev\\AppData\\Roaming\\Python\\Python310\\site-packages\\msgraph\\generated\\communications\\call_records\\microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time\\get_direct_routing_calls_with_from_date_time_with_to_date_time_response.py' HINT: This error might have occurred since this system does not have Windows Long Path support enabled. You can find information on how to enable this at https://pip.pypa.io/warnings/enable-long-paths

Global installation also fails:

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Python310\\Lib\\site-packages\\msgraph\\generated\\communications\\call_records\\microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time\\microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time_request_builder.py'

Additional context

Consider compacting the generated names. Enabling Windows Long Path may not always be feasible.

@alegrigoriev alegrigoriev added the bug Something isn't working label Sep 17, 2023
@alegrigoriev alegrigoriev changed the title Unable to install msgraph-sdk --user: path too long Unable to install msgraph-sdk: path too long Sep 17, 2023
@samvv
Copy link

samvv commented Feb 5, 2024

This is biting me, too. Is there any workaround? I'm trying to get this to run on Windows Server 2008 and Python 3.8.

@Galleleo
Copy link

Same problem here. Win 10, no admin rights so it's impossible to edit the registry. Please change the name of the "microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time_request_builder.py" file

@petrhollayms petrhollayms added type:bug A broken experience and removed bug Something isn't working labels Jun 4, 2024
@nateGeorge
Copy link

Same problem here as well, tried using subst to shorten the path but it's still not enough. Also tried installing all the older versions to no avail.

@averenix
Copy link

This affects Azure Automation - trying to install msgraph-sdk as a python module for a Python v3.8 environment returns this error.

Works fine with a Python v3.10 Azure Automation environment. Python v3.10 is in preview though and not recommended by Microsoft.

@thaDude
Copy link

thaDude commented Dec 2, 2024

Mildly annoying bug, especially since the workaround with enabling long file paths is awkward to automate since none of the widely used package management tools allow to hook into the pre-install phase where potential issues could be detected.

@budaesandrei
Copy link

this still isn't fixed...can you guys just not use long paths?

@samvv
Copy link

samvv commented Jan 16, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

8 participants