volcengine / volcengine-python-sdk

Apache License 2.0
68 stars 8 forks source link

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

Open wuneiii opened 4 months ago

wuneiii commented 4 months ago

包里的文件名太长,在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 commented 4 months ago

我也出现这个问题了

  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 commented 4 months ago

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

PiggyCh commented 4 months ago

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

honeytidy commented 3 months ago

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

jackjyq commented 3 months ago

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

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

wzxazs commented 3 months ago

包里的文件名太长,在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 commented 1 week ago

已解决,感谢

peanutldw commented 4 days ago

已解决,感谢