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

报个bug,没仔细测,在我电脑上稳定复现。其他机器上不确定。 #5

Open
wuneiii opened this issue Jun 12, 2024 · 9 comments

Comments

@wuneiii
Copy link

wuneiii commented Jun 12, 2024

包里的文件名太长,在win11下pip 安装失败,报错如下。
手动修改了注册表下边这个键之后,安装成成功了。

\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem路径下的变量 LongPathsEnabled, 将其置为 1即可.

我的系统是:

版本	Windows 11 家庭版
版本号	23H2
安装日期	‎2023/‎2/‎1
操作系统版本	22631.3672
体验	Windows Feature Experience Pack 1000.22700.1009.0
```


报错如下:
```
telink\models
      copying build\lib\volcenginesdkprivatelink\models\modify_vpc_gateway_endpoint_attributes_request.py -> build\bdist.win-amd64\wheel\.\volcenginesdkprivatelink\models
      copying build\lib\volcenginesdkprivatelink\models\modify_vpc_gateway_endpoint_attributes_response.py -> build\bdist.win-amd64\wheel\.\volcenginesdkprivatelink\models
      copying build\lib\volcenginesdkprivatelink\models\permission_for_describe_vpc_endpoint_service_permissions_output.py -> build\bdist.win-amd64\wheel\.\volcenginesdkprivatelink\models
      copying build\lib\volcenginesdkprivatelink\models\private_dns_name_configuration_for_describe_vpc_endpoint_services_by_end_user_output.py -> build\bdist.win-amd64\wheel\.\volcenginesdkprivatelink\models
      error: could not create 'build\bdist.win-amd64\wheel\.\volcenginesdkprivatelink\models\private_dns_name_configuration_for_describe_vpc_endpoint_services_by_end_user_output.py': No such file or directory
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for volcengine-python-sdk
  Running setup.py clean for volcengine-python-sdk
Failed to build volcengine-python-sdk
ERROR: Could not build wheels for volcengine-python-sdk, which is required to install pyproject.toml-based projects
```
@zzdgit
Copy link

zzdgit commented Jun 14, 2024

我也出现这个问题了

  copying build\lib\volcenginesdkdirectconnect\models\describe_direct_connect_virtual_interface_attributes_request.py -> build\bdist.win-amd64\wheel\.\volcenginesdkdirectconnect\models
  copying build\lib\volcenginesdkdirectconnect\models\describe_direct_connect_virtual_interface_attributes_response.py -> build\bdist.win-amd64\wheel\.\volcenginesdkdirectconnect\models
  copying build\lib\volcenginesdkdirectconnect\models\direct_connect_access_point_for_describe_direct_connect_access_points_output.py -> build\bdist.win-amd64\wheel\.\volcenginesdkdirectconnect\models
  error: could not create 'build\bdist.win-amd64\wheel\.\volcenginesdkdirectconnect\models\direct_connect_access_point_for_describe_direct_connect_access_points_output.py': No such file or directory
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for volcengine-python-sdk
Running setup.py clean for volcengine-python-sdk
Failed to build volcengine-python-sdk
ERROR: Could not build wheels for volcengine-python-sdk, which is required to install pyproject.toml-based projects

@zzdgit
Copy link

zzdgit commented Jun 14, 2024

我之前用minconda 装的python, 就有这个问题, 后来我换成官网python包安装就可以

@PiggyCh
Copy link

PiggyCh commented Jul 8, 2024

这么长时间都没修,windows环境会出这个问题

@honeytidy
Copy link

确实解决了,不过字节这么大的厂,又是这么重要的赛道,不应该有这么低级错误。

@jackjyq
Copy link

jackjyq commented Jul 29, 2024

联想电脑预装软件会自动重置 LongPathsEnabled,需要在设备管理器中删除 Universal Device Client Service

参考:
https://serverfault.com/a/1153387

@wzxazs
Copy link

wzxazs commented Aug 1, 2024

包里的文件名太长,在win11下pip 安装失败,报错如下。 手动修改了注册表下边这个键之后,安装成成功了。

\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem路径下的变量 LongPathsEnabled, 将其置为 1即可.

我的系统是:

版本	Windows 11 家庭版
版本号	23H2
安装日期	‎2023/‎2/‎1
操作系统版本	22631.3672
体验	Windows Feature Experience Pack 1000.22700.1009.0

报错如下:

telink\models
      copying build\lib\volcenginesdkprivatelink\models\modify_vpc_gateway_endpoint_attributes_request.py -> build\bdist.win-amd64\wheel\.\volcenginesdkprivatelink\models
      copying build\lib\volcenginesdkprivatelink\models\modify_vpc_gateway_endpoint_attributes_response.py -> build\bdist.win-amd64\wheel\.\volcenginesdkprivatelink\models
      copying build\lib\volcenginesdkprivatelink\models\permission_for_describe_vpc_endpoint_service_permissions_output.py -> build\bdist.win-amd64\wheel\.\volcenginesdkprivatelink\models
      copying build\lib\volcenginesdkprivatelink\models\private_dns_name_configuration_for_describe_vpc_endpoint_services_by_end_user_output.py -> build\bdist.win-amd64\wheel\.\volcenginesdkprivatelink\models
      error: could not create 'build\bdist.win-amd64\wheel\.\volcenginesdkprivatelink\models\private_dns_name_configuration_for_describe_vpc_endpoint_services_by_end_user_output.py': No such file or directory
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for volcengine-python-sdk
  Running setup.py clean for volcengine-python-sdk
Failed to build volcengine-python-sdk
ERROR: Could not build wheels for volcengine-python-sdk, which is required to install pyproject.toml-based projects

已解决,感谢

@stellarkey
Copy link

已解决,感谢

1 similar comment
@peanutldw
Copy link

已解决,感谢

@mike4b
Copy link

mike4b commented Dec 6, 2024

我也出现了,改了注册表就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants