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

Check compatibility with Python latest versions #3

Open
VahidGh opened this issue Nov 7, 2023 · 0 comments
Open

Check compatibility with Python latest versions #3

VahidGh opened this issue Nov 7, 2023 · 0 comments

Comments

@VahidGh
Copy link

VahidGh commented Nov 7, 2023

When trying to run this command (using Python 3.10), facing an error:

python cmaesfit_iid_noise.py --model wang --repeats 50

Traceback (most recent call last):
  File "model-reduction-manifold-boundaries/Parameter_inference_real_data/cmaesfit_iid_noise.py", line 8, in <module>
    import myokit
  File "model-reduction-manifold-boundaries/env/lib/python3.10/site-packages/myokit/__init__.py", line 561, in <module>
    from ._sim import (  # noqa
  File "model-reduction-manifold-boundaries/env/lib/python3.10/site-packages/myokit/_sim/__init__.py", line 44, in <module>
    import myokit.pype as pype  # noqa
  File "model-reduction-manifold-boundaries/env/lib/python3.10/site-packages/myokit/pype.py", line 12, in <module>
    import parser
ModuleNotFoundError: No module named 'parser'

It seems the older versions of myokit uses "parser" which has been deprecated in the latest versions of Python (>3.7).

Updated myokit to the latest version (1.35.4) and the problem solved.
Might be fixed as well by resolving issue #2 and using the latest versions of the packages in the requirements.txt file.
Meanwhile, it could be temporarily treated by mentioning the Python version matches the old requirements.txt.

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

1 participant