commaai / panda

code powering the comma.ai panda
MIT License
1.5k stars 744 forks source link

Attribute Error when importing Panda #1938

Open CCampbell71 opened 2 months ago

CCampbell71 commented 2 months ago

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'