/bin/ash: pip: not found
-
@William-Scott 2GB was not enough for that one https://github.com/acrcloud/acrcloud_sdk_python
-
@Doctor-Ulysses May be a silly question. You've created swap space presumably with a file. Is swap turned on? The 'free -h' command would tell you.
--Bill
-
When starting with the O2+ in mid 2017 I discovered the shell was 'ash'. Had never heard of ash prior and quickly determined it was driving me crazy. As such I installed bash which many, many people have used for decades. It made me happier, but your mileage may vary.
opkg update
opkg install bashThen mod the /etc/passwd file to change 'ash' to 'bash'. The next time you log in you'll be running bash.
The reason I pass this along is my murky recollection is that software installations were giving me fits with ash.
--Bill
-
@William-Scott
Swap: 2097148 23808 2073340sure it is on.
So I have installed bash and changed passwd to
root0:0:root:/root:/bin/bashstill the same ash error
after manually running bash and pip3 freeze after it i got
bash: /usr/bin/pip3: /codebuild/output/src727/src/github.com/OnionIoT/source/staging_dir/hostpkg/bin/python3.6: bad interpreter: No such file or directory/# opkg install python3
Package python3 (3.6.9-3) installed in root is up to date.
/# opkg install python3-pip
Package python3-pip (18.1-1) installed in root is up to date.
-
@William-Scott I think this is some Onion bug already
-
@Doctor-Ulysses Same 'ash' error or now a 'bash' error? If ash then a new login needs to occur to pick up the newly installed shell. I don't predict the new shell will fix the problems, but it sure gets some irritants out of the way.
--Bill
-
@Doctor-Ulysses said in /bin/ash: pip: not found:
bash: /usr/bin/pip3: /codebuild/output/src727/src/github.com/OnionIoT/source/staging_dir/hostpkg/bin/python3.6: bad interpreter: No such file or directory
-
@Doctor-Ulysses Yep - that variable is removed. I'm going to go through the whole thread again to see if something comes to mind.
--Bill
-
@William-Scott I use sd card for booting as well, can it be, what packages or package information saved on inner memory and on sd card became different and I need to clean /overlay/upper or other directories as well when I'm deleting python packages to reinstall them?
For now I have modified venv from pc, so there is no need to use pip to recompile venv files for omega paths
-
SOLVED: works on stable omega2p-v0.2.2-b200.bin
-
@Doctor-Ulysses Nice! Congrats!!
--Bill
-
I believe this is the issue. If you look at /usr/bin/pip3, you will see the incorrect shebang line:
#!/codebuild/output/src727/src/github.com/OnionIoT/source/staging_dir/hostpkg/bin/python3.6
instead of
#!/usr/bin/python3
I think onion.io needs to fix their package. Does anyone know how to notify them?
-
Thanks Heath!
This did the trick.
Erik