Omega2 sh iot-weather-station/install.sh ran out of memory
-
Hi, I am running the iot-weather-station example on my omega2, but when I run the install.sh script my omega2 dies.
root@Omega-D297:~# cd iot-weather-station/
root@Omega-D297:~/iot-weather-station# ls
README.md helpers.py main.py watsonHelper.py
arduinoDockHelper.py init.d serialHelper.py
device.cfg install.sh setuptools-33.1.1.zip
root@Omega-D297:~/iot-weather-station# sh install.sh
Downloading http://repo.onion.io/omega2/packages/core/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_core
Downloading http://repo.onion.io/omega2/packages/core/Packages.sig
Signature check passed.
Downloading http://repo.onion.io/omega2/packages/base/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_base
Downloading http://repo.onion.io/omega2/packages/base/Packages.sig
Signature check passed.
Downloading http://repo.onion.io/omega2/packages/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_packages
Downloading http://repo.onion.io/omega2/packages/packages/Packages.sig
Signature check passed.
Downloading http://repo.onion.io/omega2/packages/onion/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_onion
Downloading http://repo.onion.io/omega2/packages/onion/Packages.sig
Signature check passed.
Package python (2.7.13-4) installed in root is up to date.
Package python-pip (8.1.2-1) installed in root is up to date.
Package python-pyserial (3.1.1-1) installed in root is up to date.
Uninstalling setuptools-33.1.1:
/usr/bin/easy_install
/usr/bin/easy_install-2.7
/usr/lib/python2.7/site-packages/setuptools-33.1.1-py2.7.egg
Proceed (y/n)? n
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/site-packages/setuptools-33.1.1-py2.7.egg
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied (use --upgrade to upgrade): iso8601 in /usr/lib/python2.7/site-packages
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied (use --upgrade to upgrade): xmltodict in /usr/lib/python2.7/site-packages
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting dicttoxml
Downloading dicttoxml-1.7.4.tar.gz
Error [Errno 12] Out of memory while executing command python setup.py egg_info
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 299, in run
requirement_set.prepare_files(finder)
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 370, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 601, in _prepare_file
abstract_dist.prep_for_dist()
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 127, in prep_for_dist
self.req_to_install.run_egg_info()
File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 425, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/lib/python2.7/site-packages/pip/utils/init.py", line 678, in call_subprocess
cwd=cwd, env=env)
File "/usr/lib/python2.7/subprocess.py", line 390, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 916, in _execute_child
self.pid = os.fork()
OSError: [Errno 12] Out of memory
-
@Jorge-Alvarado said in Omega2 sh iot-weather-station/install.sh ran out of memory:
iot-weather-station example on my omega2,
the document stated "The Omega’s firmware along with this project and its dependencies will require approximately 18 MB of storage space. If you wish to install apps on the Console such as the Editor, we recommend booting the filesystem from an external SD card or USB drive." did you have filesystem on sd card or usb drive? most likely it would also be best to create a swap space, have you followed onions instructions for creating a swap space?
https://docs.onion.io/omega2-docs/extending-omega-memory.html
and also, booting from external storage/ setup overlay.
https://docs.onion.io/omega2-docs/boot-from-external-storage.html
-
@Douglas-Kryder said in Omega2 sh iot-weather-station/install.sh ran out of memory:
https://docs.onion.io/omega2-docs/extending-omega-memory.html
Thanks for your feedback. I created more swap space on my omega 2 and I was able to install the IoT Watson Example.
Thank you.