-
Notifications
You must be signed in to change notification settings - Fork 1k
'pip install micropython-machine' failed #438
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 tried installing machine again via thonny's package manger and this happened: C:\Users\sawye\AppData\Local\Programs\Thonny\python.exe -m pip install --no-cache-dir --user micropython-machine --disable-pip-version-check Collecting micropython-machine |
Same error |
same issue here |
I'm not sure how thonny is expected to work but currently these packages are not expected to work with The official method I know of currently is to have a micropython built with Alternatively this tool might help, though I haven't tried it myself: https://pypi.org/project/pipkin/ |
thank you very much <3 |
@tarekfoau Did that solve the issue for you? |
On a related note, the packaging system for micropython is in the first stages of being overhauled to hopefully resolve issues / confusion like this. For more details you might like to follow micropython/micropython#8914 |
Error traceback while I run my code:
Does anyone know how to fix this? Reinstalling thonny didn't help. |
That error is pointing to the libc attribute here being None, so something isn't working with the ffi library in your build of micropython / on your Linux: micropython-lib/unix-ffi/signal/signal.py Line 13 in 3a6ab0b
What exactly are you trying to do with this machine package? It's only used on the Unix port of micropython and has very few features - on devices the machine module is a built-in. |
I was just testing |
Yeah ok, pipkin is a third party project that's attempting to make the most out of what's currently on pypi, most of which is old / unmaintained / full of inconsistencies. To be honest the mechanism for publishing micropython packages to pypi has been broken and unused for a long time, hence the PR I linked earlier about building a new system that doesn't rely on pypi at all and is intended to be far more suitable for micropython users. Without knowing what/how you've currently installed micropython I can't help much with cleaning it. Any other questions relating to pipkin and what it's installed would be better asked on the pipkin project pages. |
Hey, sorry for the delay. I just installed |
Thonny is also a third party project, I believe it's by the same author as pipkin. I don't use it sorry, you'll need to look up docs/forums/etc for thonny. As I mentioned earlier there is work being done to fix/improve the official packaging install system (based on manifest files) but I don't know how long it's expected to take. |
Otherwise it looks like this is an issue related to thonny/pipkin, so best to raise that issue in the appropriate repository. |
I ran the pip install command given by the machine main website and this error occured:
ERROR: File "setup.py" not found for legacy project micropython-machine from https://files.pythonhosted.org/packages/e1/31/a3282942b3e96881393db406130735913c647f0fc9e07a0d60d7b546b06b/micropython-machine-0.2.tar.gz#sha256=b8747926ee044547c5f5df09b8015977b4137c744800285ee92f307acc477223.
Interestingly, a very similar error occured when I tried installing upip to install machine. (pip install micropython-upip) returned the following error:
ERROR: File "setup.py" not found for legacy project micropython-upip from https://files.pythonhosted.org/packages/29/81/52df27cb7d240190c1d3ddab0c081bd3296bedcce155eed9e7016c4d92f0/micropython-upip-1.2.6.tar.gz#sha256=b9c09fc2b65f877d945142e468e0f25b5f70e9f74e98e0f43ca030bd7f47e87f.
The text was updated successfully, but these errors were encountered: