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

Attribute Error when importing Panda #1938

Open
CCampbell71 opened this issue Apr 22, 2024 · 0 comments
Open

Attribute Error when importing Panda #1938

CCampbell71 opened this issue Apr 22, 2024 · 0 comments

Comments

@CCampbell71
Copy link

I have followed directions and gotten requirements.txt and setup.py installed. I am running python version 3.11 on a raspberry pi zero W.

Here is output when trying to import:

Python 3.11.1 (main, Apr 21 2024, 15:34:10) [GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.

from panda import Panda
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.11/site-packages/pandacan-0.0.10-py3.11.egg/panda/init.py", line 13, in
from .base import BaseHandle
File "/usr/local/lib/python3.11/site-packages/pandacan-0.0.10-py3.11.egg/panda/base.py", line 3, in
from .constants import McuType
File "/usr/local/lib/python3.11/site-packages/pandacan-0.0.10-py3.11.egg/panda/constants.py", line 65, in
MCU_TYPE_BY_IDCODE = {m.config.mcu_idcode: m for m in McuType}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pandacan-0.0.10-py3.11.egg/panda/constants.py", line 65, in
MCU_TYPE_BY_IDCODE = {m.config.mcu_idcode: m for m in McuType}
^^^^^^^^^^^^^^^^^^^
AttributeError: 'tuple' object has no attribute 'mcu_idcode'

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