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

Installation error on Windows #5773

Open
skriand opened this issue Nov 28, 2023 · 5 comments
Open

Installation error on Windows #5773

skriand opened this issue Nov 28, 2023 · 5 comments

Comments

@skriand
Copy link

skriand commented Nov 28, 2023

Bug Report

Is the issue related to model conversion?

Not

Describe the bug

Can not install onnx package on Windows

System information

  • Windows 11
  • Python version: 3.10, 3.11 (from Microsoft Store)

Reproduction instructions

C:\Users\andre>pip install onnx
Collecting onnx
Downloading onnx-1.15.0-cp311-cp311-win_amd64.whl.metadata (15 kB)
Requirement already satisfied: numpy in c:\users\andre\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from onnx) (1.26.2)
Requirement already satisfied: protobuf>=3.20.2 in c:\users\andre\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from onnx) (4.25.1)
Downloading onnx-1.15.0-cp311-cp311-win_amd64.whl (14.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.3/14.3 MB 10.9 MB/s eta 0:00:00
Installing collected packages: onnx
ERROR: Could not install packages due to an OSError: [WinError 3] The system cannot find the path specified: 'C:\Users\andre\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\onnx\backend\test\data\node\test_averagepool_3d_dilations_large_count_include_pad_is_0_ceil_mode_is_False\test_data_set_0'

Expected behavior

Installed onnx

@skriand skriand added the bug label Nov 28, 2023
@liqunfu
Copy link
Contributor

liqunfu commented Nov 28, 2023

It must be the path length. Are you about to reduce this "PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0" to a mimnal? I understand that this file name is too long: test_averagepool_3d_dilations_large_count_include_pad_is_0_ceil_mode_is_False as well.

@ElieTaillard
Copy link

ElieTaillard commented Jan 23, 2024

I have the same issue when I try to install onnx==1.14.0 with python 3.10 (from Microsoft Store)

This is the workaround I found:
https://stackoverflow.com/a/76452218/14338640

@justinchuby justinchuby removed the bug label Jan 23, 2024
@greg-is-kub
Copy link

greg-is-kub commented May 6, 2024

Thank you @ElieTaillard !

However is this necessary to bring all the tests files in the packages ? Its making it heavier and those are not conventionnally used in a package.
Could this issue be sorted by a small modification of the MANIFEST.in ? @justinchuby

@andife
Copy link
Member

andife commented May 6, 2024

@greg-is-kub: There is work on a pr to remove the testdata from the package: #5970

@greg-is-kub
Copy link

@greg-is-kub: There is work on a pr to remove the testdata from the package: #5970

Superb ! Thanks for the notification @andife, I'll watch this issue then.
Have a good day !

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

6 participants