-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Build is failing with latest RIOT on windows #10768
Comments
Hi @bluephoton at least it means there is not that much missing for building in windows :) I am not used to windows and the way shebangs are handled, so I will try some debug things I am thinking about.
|
Is
in the mingw terminal. Also, can you post the result of running I don't have a windows machine now, but I'll try to procure a VM around these days. |
@vac did you by any chance had the same issue and solved it ? Thank you in advance. |
I had problems with the very same file. I'm using python27. I've changed this file to be python2 compatible. It is working fine since then. It is not the best solution and I haven't merged into the latest RIOT since 2018-04 so I will paste just git diff instead of PR, sorry about that:
Hope it will help you. |
Thanks guys for helping with this! Here is the info you requested:
Notes:
Question:Is there harm if I commented this lazy spongy thingy for now? 😄 what does it do? Let me know if you have more questions... Edit: |
What's is somehow strange, is that it worked outside of make as this one worked
But not from within make. Somehow the fact that |
On Windows please use Additionally, check I'm also wondering if your MinGW doesn't contain its own |
Ok, it turns out I must have the python.exe in my global environment not user environment. Tried to use alias and python3.cmd to avoid changing RIOT code but none worked. will be nice if we change it in RIOT to just python if linux can tolerate this change. I can compile now - minding few breaking changes I need to deal with! Thanks a lot guys for your help!! |
Indeed, there is no @bluephoton : what about making a copy of your Python3\python.exe named python3.exe ? |
@vac smart! 😄 this works!! |
Instead of copying you could do what most Linux distributions do: create a symbolic link. This has the advantage that the binary will still be the same even after an update ;-). |
@miri64 is that possible on windows? will that link continue to exist even after closing and opening cmd prompt? |
Yepp. At least the last time I used Windows NTFS supported symbolic links ;-) https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/ |
Cool!! will give it a try, thanks @miri64 for sharing the link!! |
Symbolic link worked! good stuff! thanks @miri64
|
Though this seems to be more a patchy fix, I'd say we close this. Should we document this somewhere? |
On the windows setup guide? |
There is a way of fixing it that does not require creating a link (since creating symlinks in windows requires elevated privileges), by making a wrapper in msys. In the msys prompt type: cat > /mingw/bin/python3 <<SCRIPT
#!/bin/sh
exec python "\$@"
SCRIPT |
@jcarrano , for windows 10 Pro I have, I didn't need elevated command prompt to create symbolic link. It may be needed for server SKUs, not sure. |
I've been building on windows 10 with no issue until I decided to get latest RIOT. I'm getting the error:
/usr/bin/env: python3: No such file or directory
I have both python and python3 on my PATH and can issue these commands from build cmd prompt with no issue but still build fails.
I noticed that this is due something called lazysponge.py which is invoked early in the build process.
Any Ideas on how to deal with this error in windows?
The text was updated successfully, but these errors were encountered: