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

No module named packaging #4

Closed
glenn-jocher opened this issue May 30, 2024 · 2 comments
Closed

No module named packaging #4

glenn-jocher opened this issue May 30, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@glenn-jocher
Copy link
Contributor

If I install simpy to resolve #3 I get a new error:

onnxslim OnnxSlim yolov8n.onnx

Traceback (most recent call last):
  File "/Users/glennjocher/PycharmProjects/OnnxSlim/venv/bin/onnxslim", line 33, in <module>
    sys.exit(load_entry_point('onnxslim', 'console_scripts', 'onnxslim')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/glennjocher/PycharmProjects/OnnxSlim/onnxslim/cli/_main.py", line 281, in main
    slim(
  File "/Users/glennjocher/PycharmProjects/OnnxSlim/onnxslim/cli/_main.py", line 62, in slim
    from onnxslim.core.slim import (
  File "/Users/glennjocher/PycharmProjects/OnnxSlim/onnxslim/core/slim.py", line 23, in <module>
    from .symbolic_shape_infer import SymbolicShapeInference
  File "/Users/glennjocher/PycharmProjects/OnnxSlim/onnxslim/core/symbolic_shape_infer.py", line 12, in <module>
    from packaging import version
ModuleNotFoundError: No module named 'packaging'
@inisis
Copy link
Owner

inisis commented May 30, 2024

Hi, @glenn-jocher, the correct usage should be onnxslim yolov8n.onnx slim.onnx, and I should add a onnxruntime dependecy.

@inisis inisis self-assigned this May 30, 2024
@inisis inisis added the bug Something isn't working label May 30, 2024
@inisis
Copy link
Owner

inisis commented Jun 14, 2024

@glenn-jocher Hi, can you add me to the Ultralytics Actions group, I can not perform Ultralytics Formatting right now.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants