Christophe-Foyer / Motor-Test-Stand-GUI

GUI for the Washington University in Saint Louis Design/Build/Fly competition team
Other
0 stars 1 forks source link

Program can't find SerialComm #8

Closed austinstover closed 6 years ago

austinstover commented 6 years ago

So I finally forked the project, but every time I run the python teststand, I get the following error:

Traceback (most recent call last): File "C:\Users\austi\Documents\Other\DBF\Motor-Test-Stand-GUI\source\Control Panel.py", line 36, in <module> from SerialComm.SerialComm import SerialComm ImportError: No module named SerialComm.SerialComm

@Christophe-Foyer Any idea why?

Christophe-Foyer commented 6 years ago

Do you have your serialcomm library included?

Christophe-Foyer commented 6 years ago

Also stop assigning issues to me haha

austinstover commented 6 years ago

All I did was fork the project, download it and run it. So yes, the library is included, and correctly too.

Christophe-Foyer commented 6 years ago

Try just importing serialcomm instead of serialcomm.serialcomm?

austinstover commented 6 years ago

Doing that throws an error.

Christophe-Foyer commented 6 years ago

Did you end up figuring out what the issue was?

Christophe-Foyer commented 6 years ago

Ok! This was a very dumb issue, you just need to add init.py to the folder so python can find the file. Not sure how it was working without it before but it's something you should know if you're gonna use python in any legit project