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

ModuleNotFoundError: No module named 'framework.core.powerModules.S20control' #83

Open
jamcoole opened this issue Jul 29, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jamcoole
Copy link

jamcoole commented Jul 29, 2024

cloning the code and setting up requirements on first run you get a module not found error

Traceback (most recent call last): File "/home/jenkins/RAFT/python_raft/examples/code/example_ssh.py", line 40, in <module> from framework.core.testControl import testController File "/home/jenkins/RAFT/python_raft/examples/code/../../framework/core/__init__.py", line 37, in <module> from . deviceManager import deviceManager File "/home/jenkins/RAFT/python_raft/examples/code/../../framework/core/deviceManager.py", line 38, in <module> from framework.core.powerControl import powerControlClass File "/home/jenkins/RAFT/python_raft/examples/code/../../framework/core/powerControl.py", line 48, in <module> from framework.core.powerModules.S20control import powerOrviboS20 ModuleNotFoundError: No module named 'framework.core.powerModules.S20control' jenkins@raven:~/RAFT/python_raft/examples/code$

I removed it to get past the error:

diff --git a/framework/core/powerControl.py b/framework/core/powerControl.py
index d10d5d4..95ba881 100644
--- a/framework/core/powerControl.py
+++ b/framework/core/powerControl.py
@@ -45,7 +45,6 @@

7- Cancel

###########################################################

-from framework.core.powerModules.S20control import powerOrviboS20
from framework.core.powerModules.apcAos import powerApcAos
from framework.core.powerModules.kasaControl import powerKasa
from framework.core.powerModules.olimex import powerOlimex
@@ -80,8 +79,6 @@ class powerControlClass():
type = config.get("type")
if type == None:
self.powerSwitch = powerNone( log )

  •    elif type == "orviboS20":
    
  •        self.powerSwitch = powerOrviboS20( log, ip=self.ip, mac=config.get("mac"), port=config.get("port"))
       elif type == "hs100":
           self.powerSwitch = powerHS100( log, self.ip, config.get("port"))
       elif type == "apc":
    
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

3 participants