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

[Build] Can't build python package #23054

Closed
jspkay opened this issue Dec 9, 2024 · 3 comments
Closed

[Build] Can't build python package #23054

jspkay opened this issue Dec 9, 2024 · 3 comments
Labels
build build issues; typically submitted using template

Comments

@jspkay
Copy link

jspkay commented Dec 9, 2024

Describe the issue

I was unable to build the project as it is.
I followed the documentation I exectude pip instal -e .
I managed to build the shared library, but not the python package.

Here's the log:

Urgency

No response

Target platform

Linux x64

Build script

I used the python pip build system.

Error / output

Obtaining file:///home/spappalardo%40inl34.ec-lyon.fr/builds/onnxruntime
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build editable did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      running egg_info
      writing onnxruntime.egg-info/PKG-INFO
      writing dependency_links to onnxruntime.egg-info/dependency_links.txt
      writing entry points to onnxruntime.egg-info/entry_points.txt
      writing requirements to onnxruntime.egg-info/requires.txt
      writing top-level names to onnxruntime.egg-info/top_level.txt
      error: package directory 'onnxruntime/backend' does not exist
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.```

### Visual Studio Version

_No response_

### GCC / Compiler Version

_No response_
@jspkay jspkay added the build build issues; typically submitted using template label Dec 9, 2024
@tianleiwu
Copy link
Contributor

See https://onnxruntime.ai/docs/build/ for documentation.

@jspkay
Copy link
Author

jspkay commented Dec 10, 2024

Thank you so much! I manage to solve the building problem!

But then I have another question: can I install the wheel in a debug mode ? As far as I know, it's impossible to do it with a .whl file

@tianleiwu
Copy link
Contributor

tianleiwu commented Dec 10, 2024

But then I have another question: can I install the wheel in a debug mode ? As far as I know, it's impossible to do it with a .whl file

Yes, you can install debug whl using pip install onnxruntime*.whl in the dist folder.

@jspkay jspkay closed this as completed Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template
Projects
None yet
Development

No branches or pull requests

2 participants