/bin/ash: pip: not found
-
@William-Scott
Filesystem Size Used Available Use% Mounted on
/dev/root 7.8M 7.8M 0 100% /rom
tmpfs 61.0M 224.0K 60.8M 0% /tmp
/dev/mmcblk0p1 14.5G 10.4G 3.3G 76% /overlay
overlayfs:/overlay 14.5G 10.4G 3.3G 76% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mmcblk0p1 14.5G 10.4G 3.3G 76% /mnt/mmcblk0p1
/dev/mtdblock6 22.1M 740.0K 21.3M 3% /mnt/mtdblock6
/dev/mtdblock7 512.0K 196.0K 316.0K 38% /mnt/mtdblock7total used free shared buffers cached
Mem: 124920 62028 62892 224 8664 28552
-/+ buffers/cache: 24812 100108
Swap: 0 0 0I'm getting fatal: write error: No space left on device while installing python packages for my program (with pip -v also) , even when I do have more than 3gb free memory on mounted sd card
Even after I have deleted large folder - same "No space left" error.
Filesystem Size Used Available Use% Mounted on
/dev/root 7.8M 7.8M 0 100% /rom
tmpfs 61.0M 284.0K 60.7M 0% /tmp
/dev/mmcblk0p1 14.5G 599.4M 13.2G 4% /overlay
overlayfs:/overlay 14.5G 599.4M 13.2G 4% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mmcblk0p1 14.5G 599.4M 13.2G 4% /mnt/mmcblk0p1
/dev/mtdblock6 22.1M 740.0K 21.3M 3% /mnt/mtdblock6
/dev/mtdblock7 512.0K 196.0K 316.0K 38% /mnt/mtdblock7
I'm booting from sd card, as it is written in tutorial btw. Maybe I should also use swap file?
-
@Doctor-Ulysses DEFINITELY add a swap file or create a partition for swap. Note the error message indicates running out of memory (RAM), not storage. You have plenty of storage. Converting 1g or 2G to swap would help immensely.
Good luck.
--Bill
-
So there is enough space now, but still there is same error with pip3. I have fully reinstalled python with deleting all the python files even from usr/lib folder - same ash error
Was thinking, what pip disturbs pip3 and deleted everything what python is. After fresh installation of python3 and python3-pip - same error
/# pip3 freeze
/bin/ash: pip3: 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