I can not install libraries(pip install pycryptodome,pycrypto,pycryptodomex). dist feeds.conf uncommented all. The memory expanded and made a swap file. Updated python 1-3.6 or pip1-3.6. Nothing helps. What to do ?
root@Omega-318B:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 7.8M 7.8M 0 100% /rom
tmpfs 60.9M 88.0K 60.9M 0% /tmp
/dev/mmcblk0 14.2G 83.2M 13.4G 1% /overlay
overlayfs:/overlay 14.2G 83.2M 13.4G 1% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mmcblk0 14.2G 83.2M 13.4G 1% /mnt/mmcblk0
/dev/mtdblock6 22.1M 18.2M 3.9M 82% /mnt/mtdblock6
/dev/mtdblock7 512.0K 240.0K 272.0K 47% /mnt/mtdblock7
root@Omega-318B:~# opkg update
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ramips/mt76x8/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ramips/mt76x8/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/onion/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/onion/Packages.gz
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/telephony/Packages.sig
Signature check passed.
Downloading http://repo.onioniot.com/omega2/packages/core/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_core
Downloading http://repo.onioniot.com/omega2/packages/core/Packages.sig
Signature check passed.
Downloading http://repo.onioniot.com/omega2/packages/base/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_base
Downloading http://repo.onioniot.com/omega2/packages/base/Packages.sig
Signature check passed.
Downloading http://repo.onioniot.com/omega2/packages/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_packages
Downloading http://repo.onioniot.com/omega2/packages/packages/Packages.sig
Signature check passed.
Downloading http://repo.onioniot.com/omega2/packages/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_routing
Downloading http://repo.onioniot.com/omega2/packages/routing/Packages.sig
Signature check passed.
Downloading http://repo.onioniot.com/omega2/packages/onion/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_onion
Downloading http://repo.onioniot.com/omega2/packages/onion/Packages.sig
Signature check passed.
Collected errors:
- opkg_download: Failed to download http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/onion/Packages.gz, wget returned 8.
root@Omega-318B:~# pip install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting pip
Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB)
|████████████████████████████████| 1.4MB 84kB/s
Installing collected packages: pip
Found existing installation: pip 19.2.3
Uninstalling pip-19.2.3:
Successfully uninstalled pip-19.2.3
Successfully installed pip-19.3.1
root@Omega-318B:~# pip
pip pip2 pip2.7 pip3.6
root@Omega-318B:~# pip2 install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already up-to-date: pip in /usr/lib/python2.7/site-packages (19.3.1)
root@Omega-318B:~# pip2.7 install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already up-to-date: pip in /usr/lib/python2.7/site-packages (19.3.1)
root@Omega-318B:~# pip3.6 install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 18.1
Uninstalling pip-18.1:
Successfully uninstalled pip-18.1
Successfully installed pip-19.3.1
root@Omega-318B:~# python3.6 -m venv venv
Error: Command '['/root/venv/bin/python3.6', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
root@Omega-318B:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 7.8M 7.8M 0 100% /rom
tmpfs 60.9M 2.5M 58.4M 4% /tmp
/dev/mmcblk0 14.2G 92.2M 13.4G 1% /overlay
overlayfs:/overlay 14.2G 92.2M 13.4G 1% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mmcblk0 14.2G 92.2M 13.4G 1% /mnt/mmcblk0
/dev/mtdblock6 22.1M 17.6M 4.5M 80% /mnt/mtdblock6
/dev/mtdblock7 512.0K 240.0K 272.0K 47% /mnt/mtdblock7
root@Omega-318B:~#
root@Omega-318B:~# pip3.6 install pycryptodome
Collecting pycryptodome
Downloading https://files.pythonhosted.org/packages/2a/f4/dd7f09f4635962b0283bd8020d686e5ced9e4f05259cab8d7926c696bee1/pycryptodome-3.9.4.tar.gz (11.6MB)
|████████████████████████████████| 11.6MB 57kB/s
ERROR: Error [Errno 12] Out of memory while executing command python setup.py egg_info
ERROR: Could not install packages due to an EnvironmentError: [Errno 12] Out of memory
root@Omega-318B:~# ^C
root@Omega-318B:~#free
-ash: ▒free: not found
root@Omega-318B:~# free
total used free shared buffers cached
Mem: 124808 46208 78600 14260 2600 22356
-/+ buffers/cache: 21252 103556
Swap: 0 0 0
root@Omega-318B:~# opkg install swap-utils block-mount
Package swap-utils (2.32-2) installed in root is up to date.
Upgrading block-mount on root from 2018-04-16-e2436836-1 to 2019-03-28-ff1ded63-5...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ramips/mt76x8/packages/block-mount_2019-03-28-ff1ded63-5_mipsel_24kc.ipk
Configuring block-mount.
this file has been obsoleted. please call "/sbin/block mount" directly
root@Omega-318B:~# dd if=/dev/zero of=/overlay/swap.page bs=1M count=256
256+0 records in
256+0 records out
root@Omega-318B:~# mkswap /tmp/mounts/USB-A1/swap.page
mkswap: cannot open /tmp/mounts/USB-A1/swap.page: No such file or directory
root@Omega-318B:~# mkswap /overlay//swap.page
mkswap: /overlay//swap.page: insecure permissions 0644, 0600 suggested.
Setting up swapspace version 1, size = 256 MiB (268431360 bytes)
no label, UUID=7070728e-f43e-43f0-b4aa-a795b425ddda
root@Omega-318B:~# swapon /overlay//swap.page
root@Omega-318B:~# free
total used free shared buffers cached
Mem: 124808 99756 25052 14260 3680 73516
-/+ buffers/cache: 22560 102248
Swap: 262140 0 262140
root@Omega-318B:~# pip3.6 install pycryptodome
Collecting pycryptodome
Using cached https://files.pythonhosted.org/packages/2a/f4/dd7f09f4635962b0283bd8020d686e5ced9e4f05259cab8d7926c696bee1/pycryptodome-3.9.4.tar.gz
Installing collected packages: pycryptodome
Running setup.py install for pycryptodome ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-x28ci5uw/pycryptodome/setup.py'"'"'; file='"'"'/tmp/pip-install-x28ci5uw/pycryptodome/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-11qy4odo/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
root@Omega-318B:~# pip install pycryptodome
Collecting pycryptodome
Using cached https://files.pythonhosted.org/packages/2a/f4/dd7f09f4635962b0283bd8020d686e5ced9e4f05259cab8d7926c696bee1/pycryptodome-3.9.4.tar.gz
Installing collected packages: pycryptodome
Running setup.py install for pycryptodome ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-vbwgskpr/pycryptodome/setup.py'"'"'; file='"'"'/tmp/pip-install-vbwgskpr/pycryptodome/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-f7x6g6uf/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
root@Omega-318B:~#