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

Assistance Needed: Errors Encountered While Following Tutorial #38

Open
AutoStudyP opened this issue Oct 14, 2024 · 1 comment
Open

Comments

@AutoStudyP
Copy link

AutoStudyP commented Oct 14, 2024

I am trying to follow the tutorial from your repository using the Triton server. However, I am encountering the following errors:

./optimize.py

Traceback (most recent call last):
File "./examples/01_optimize_torch_linear_model/./optimize.py", line 17, in
import model_navigator as nav
File "/opt/conda/lib/python3.11/site-packages/model_navigator/init.py", line 49, in
from model_navigator.inplace import ( # noqa: F401, F403
File "/opt/conda/lib/python3.11/site-packages/model_navigator/inplace/init.py", line 66, in
from ..reporting.profile.events import ProfileEvent
File "/opt/conda/lib/python3.11/site-packages/model_navigator/reporting/profile/init.py", line 16, in
from model_navigator.reporting.profile.report import SimpleReport
File "/opt/conda/lib/python3.11/site-packages/model_navigator/reporting/profile/report.py", line 36, in
@DataClass
^^^^^^^^^
File "/opt/conda/lib/python3.11/dataclasses.py", line 1232, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/conda/lib/python3.11/dataclasses.py", line 1222, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'rich.text.Text'> for field status is not allowed: use default_factory

These errors are appearing even though I followed the provided starter instructions and installed the necessary packages using pip. Do you have any suggestions for how to resolve this issue?

@piotr-bazan-nv
Copy link
Collaborator

Thanks for reporting the issue. The exception is raised with Python version starting 3.11. We are preparing the fix. In the meantime could you try Python 3.10? Thanks!

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

No branches or pull requests

2 participants