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

issubclass() error when running the example #15

Open
braceal opened this issue Nov 16, 2023 · 1 comment
Open

issubclass() error when running the example #15

braceal opened this issue Nov 16, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@braceal
Copy link
Contributor

braceal commented Nov 16, 2023

Describe the bug
The test example does not work and produces this error:

Traceback (most recent call last):
  File "/homes/b316714/anaconda3/envs/deepdrivemd/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/homes/b316714/anaconda3/envs/deepdrivemd/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/lambda_stor/homes/b316714/deepdrivemd/deepdrivemd/workflows/openmm_cvae.py", line 37, in <module>
    from deepdrivemd.parsl import ComputeSettingsTypes
  File "/lambda_stor/homes/b316714/deepdrivemd/deepdrivemd/parsl.py", line 12, in <module>
    class BaseComputeSettings(BaseSettings, ABC):
  File "pydantic/main.py", line 197, in pydantic.main.ModelMetaclass.__new__
  File "pydantic/fields.py", line 506, in pydantic.fields.ModelField.infer
  File "pydantic/fields.py", line 436, in pydantic.fields.ModelField.__init__
  File "pydantic/fields.py", line 552, in pydantic.fields.ModelField.prepare
  File "pydantic/fields.py", line 668, in pydantic.fields.ModelField._type_analysis
  File "/homes/b316714/anaconda3/envs/deepdrivemd/lib/python3.9/typing.py", line 852, in __subclasscheck__
    return issubclass(cls, self.__origin__)
TypeError: issubclass() arg 1 must be a class

To Reproduce
Steps to reproduce the behavior:
Follow the install instructions in the README:

conda create -n deepdrivemd python=3.9 -y
conda activate deepdrivemd
conda install -c conda-forge gcc=12.1.0 -y
conda install -c conda-forge openmm -y
git clone https://github.com/ramanathanlab/deepdrivemd.git
cd deepdrivemd
make install

Then run this example,

python -m deepdrivemd.workflows.openmm_cvae -c tests/apps-enabled-workstation/test.yaml
@braceal braceal added the bug Something isn't working label Nov 16, 2023
@braceal
Copy link
Contributor Author

braceal commented Nov 16, 2023

This bug will be fixed in the next release and has been tracked back to the current pinned version of parsl==2023.3.13 which does not have correct version pins for typegaurd and typing_extensions https://github.com/Parsl/parsl/blob/2023.03.13/requirements.txt

In the meantime, running these commands will fix the error:

pip install typing_extensions==4.4.0
pip install typeguard==2.13.3

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

1 participant