Skip to content

NameError: name 'warnings' is not defined #171

@aprijal99

Description

@aprijal99

Bug Behavior

I got the following error when executing openmmdl_setup:

Traceback (most recent call last):
  File "/home/aprijal/miniconda3/envs/openmm/bin/openmmdl_setup", line 5, in <module>
    from openmmdl.openmmdl_setup.openmmdlsetup import main
  File "/home/aprijal/miniconda3/envs/openmm/lib/python3.12/site-packages/openmmdl/openmmdl_setup/openmmdlsetup.py", line 34, in <module>
    warnings.filterwarnings("ignore")
    ^^^^^^^^
NameError: name 'warnings' is not defined. Did you mean: 'Warning'? Or did you forget to import 'warnings'?

Additional Information

  • OpenMMDL v1.1.1 Release (installation from conda)
  • Python version 3.10 and 3.12
  • Operating system Ubuntu 25.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions