-
Notifications
You must be signed in to change notification settings - Fork 1k
AttributeError: 'NoneType' object has no attribute 'func' #395
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
Comments
I get the same with the
|
In both cases here the ffi modules for select and re respectively have been installed, but they can't find the referenced dynamic libraries. @kitplummer if you see micropython-lib/unix-ffi/re/re.py Line 11 in f3cfc52
pcre is None meaning the ffi command earlier couldn't find it micropython-lib/unix-ffi/re/re.py Line 6 in f3cfc52
|
@jimmo would it make most sense for |
@andrewleech - thanks, eventually dug in enough to find that being the issue. I'm working with a Raspberry Pico W, which apparently doesn't have the lib. :) Working around it now, but that might be worth adding to make it obviously clear. |
Ah yes, the ffi based libs only work on Linux. How did you install these libraries out of interest? This repo is in the process of being reorganised a bit with the recent manifest file charges, working towards making library compatibility and installation easier and more reliable. |
I installed with |
For posterity, I was trying to use urllib.parse for |
Ah thanks, that context definitely helps! |
Should've mentioned, the quick-fix for me was to simply delete the re.py and ffilib.py files from the Pico's lib/ subdir - and using the built-in stuff. |
There seems to have been a fix/clarification provided. Proposing to close this issue. |
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 attribute 'func'
Would you please help me solve this problem?
The text was updated successfully, but these errors were encountered: