Hardware/ESP32
MicroPython - 'NoneType' object has no attribute 'func'
로아_
2023. 10. 10. 13:06
728x90
MicroPython base64 패키지 설치 후
import base64 에서 'NoneType' object has no attribute 'func' 에러 발생
Traceback (most recent call last):
File "<stdin>", line 7, in <module>
File "/lib/base64.py", line 9, in <module>
File "/lib/re.py", line 11, in <module>
AttributeError: 'NoneType' object has no attribute 'func'
/lib 폴더에 같이 설치된 re.py, ffilib.py 파일삭제 후 에러 해결
보이지는 않지만 microPython에 re.py, ffilib.py가 있어서 내장된 패키지 사용해야함
https://github.com/micropython/micropython-lib/issues/395
AttributeError: 'NoneType' object has no attribute 'func' · Issue #395 · micropython/micropython-lib
When I import multiprocessing, there is an error saying that: File "main.py", line 5, in File "multiprocessing.py", line 3, in File "select.py", line 14, in AttributeError: 'NoneType' object has no...
github.com
728x90