question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error to import simtk module from 13 tutorial

See original GitHub issue

Hi everyone, I try to replicate the code of tutorial 13 in my machine. But when I run the cell: from simtk.openmm.app import PDBFile from pdbfixer import PDBFixer from deepchem.utils.vina_utils import prepare_inputs

I get the error ModuleNotFoundError: No module named 'simtk.openmm' I already installed OpenMM.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
peastmancommented, Feb 4, 2022

Try changing it to just

from openmm.app import PDBFile

OpenMM 7.6 dropped the simtk at the start of the package name. However, it still includes stubs for the old packages, so they ought to work. Here’s what I get:

>>> from simtk.openmm.app import PDBFile
Warning: importing 'simtk.openmm' is deprecated.  Import 'openmm' instead.
>>> 

I don’t know any reason it wouldn’t work for you.

0reactions
peastmancommented, Feb 4, 2022

Very strange! I don’t understand why it isn’t accepting the old name.

Read more comments on GitHub >

github_iconTop Results From Across the Web

can not import simtk.openmm · Issue #2123 - GitHub
Hi,. when i used "from simtk.openmm import *" , i got an error: 'Traceback (most recent call last): File "", line 1, in...
Read more >
[#2302] OpenMM import error: undefined symbol - SimTK
With the conda install I got: Failed to import OpenMM packages; OpenMM will not work. Make sure OpenMM is installed and the library...
Read more >
SimTK Tutorial
SimTK consists of a set of modules that form a stack. Each module depends on those that come before it, but not the...
Read more >
Documents - SimTK
In this tutorial we will discuss the parts of SimTK that are included in the SimTK Core package downloadable from https://simtk.org/home/simtkcore, ...
Read more >
OpenSim: [#2756] Tutorial files opening problem - SimTK
Hi, I have a problem with Tutorial files opening. There is a loading error: Object: Cannot open file C:\Users\Анастасия\Documents\OpenSim\4.0\Models\ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found