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

AttributeError: module 'PyCmdMessenger' has no attribute 'ArduinoBoard' #41

Closed
seawarrior181 opened this issue Feb 1, 2020 · 0 comments

Comments

@seawarrior181
Copy link

seawarrior181 commented Feb 1, 2020

Hi,

Thanks for creating PyCmdMessenger, it's been working great for me and really makes my product possible.

I've just setup a new Ubuntu VM running inside of VMware Workstation 15 Player. I installed python 3.6.9 I installed tkinter, pip3, and then PyCmdMessenger. When I run my program I get AttributeError: module 'PyCmdMessenger' has no attribute 'ArduinoBoard'. I'm relatively new to Linux and python programming, so it's likely I'm doing something that's obviously wrong to others.

dmurphy@ubuntu~$ python3 -V
Python 3.6.9
dmurphy@ubuntu~$ sudo apt install python3-pip
dmurphy@ubuntu~$ sudo apt-get install python3-tk
dmurphy@ubuntu~$ pip3 install PyCmdMessenger
dmurphy@ubuntu~$ find / -name PyCmdMessenger 2>/dev/null
/home/dmurphy/.local/lib/python3.6/site-packages/PyCmdMessenger
dmurphy@ubuntu~/dev/python/PasswordPump$ python3 PassPumpGUI_v0_7.py
/dev/ttyS0: ttyS0
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python3.6/tkinter/init.py", line 1705, in call
return self.func(*args)
File "PassPumpGUI_v0_7.py", line 147, in clickedOpen
arduino = PyCmdMessenger.ArduinoBoard(port, baud_rate=115200, timeout=5.0, settle_time=2.0, enable_dtr=False,
AttributeError: module 'PyCmdMessenger' has no attribute 'ArduinoBoard'

Also:
dmurphy@ubuntu~$ find / -name site-packages 2>/dev/null
/snap/python38/22/lib/python3.8/site-packages
/home/dmurphy/.local/lib/python3.6/site-packages

I read another similar thread here and it seemed to indicate that I need to install PyCmdMessenger under /snap/python38/22/lib/python3.8/site-packages, however when I try to copy the PyCmdMessenger directory to /snap/python38/22/lib/python3.8/site-packages, it fails and claims that it's a read only directory. I really have no idea if it's the right fix.

I also tried copying PyCmdMessenger-0.2.4.dist-info and PyCmdMessenger from /home/dmurphy/.local/lib/python3.6/site-packages to /usr/local/lib/python3.6/dist-packages, and that didn't work.

Thanks for the help and the tool!!

Dan
https://github.com/seawarrior181

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant