Hello, I have gotten PyHamilton up and running, but am getting a module error when trying to run a specific method.
I’m specifically trying to do some testing with PRANCE (GitHub - dgretton/std-96-pace: Standard method for running 96 PACE experiments on one plate), and am getting the following error when trying to run the main robot method (–simulate):
USING SITE-PACKAGES pyhamilton
Traceback (most recent call last):
File "C:\Users\BiologyHamilton1\Desktop\PRANCE\std-96-pace-master\pace_util.py", line 22, in <module>
imported_mod = importlib.import_module(pkgname)
File "C:\Users\BiologyHamilton1\AppData\Local\Programs\Python\Python39-32\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'platereader'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\BiologyHamilton1\Desktop\PRANCE\std-96-pace-master\robot_method.py", line 11, in <module>
from pace_util import (
File "C:\Users\BiologyHamilton1\Desktop\PRANCE\std-96-pace-master\pace_util.py", line 26, in <module>
imported_mod = importlib.import_module(pkgname)
File "C:\Users\BiologyHamilton1\AppData\Local\Programs\Python\Python39-32\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'platereader'
Here is the code this is referencing:
import pyhamilton
from pyhamilton import (HamiltonInterface, LayoutManager, ResourceType, Plate24, Plate96, Tip96,
INITIALIZE, PICKUP, EJECT, ASPIRATE, DISPENSE, ISWAP_GET, ISWAP_PLACE, HEPA,
WASH96_EMPTY, PICKUP96, EJECT96, ASPIRATE96, DISPENSE96,
oemerr, PositionError)
from platereader.clariostar import ClarioStar, PlateData
from auxpump.pace import OffDeckCulturePumps, LBPumps
from auxshaker.bigbear import Shaker
import send_email
Additionally, if I manually try the imports that are after ‘platereader’ individually in the python shell, they too give the same “no module named ‘xx’” error. What I’ve found suggests this is a path issue somehow, but I’m not sure where these modules should be located. I should add I’m not sure if this is a pyhamilton problem or a PRANCE problem, specifically…
Any ideas?