We have upgraded the community system as part of the upgrade a password reset is required for all users before login in.

Omega2S out of memory error



  • Hi, before anything, I did my search and could not find a solution.

    I have been trying to use python with MQTT using paho-mqtt library and get Out of memory 12 error as below:

    root@Omega-6A5A:~# pip3 install paho-mqtt
    ...
     Running command python setup.py egg_info
        Error [Errno 12] Out of memory while executing command python setup.py egg_info
    Could not install packages due to an EnvironmentError.
    Traceback (most recent call last):
      File "/install.py", line 318, in run
      File "/resolve.py", line 102, in resolve
      File "/resolve.py", line 256, in _resolve_one
      File "/resolve.py", line 209, in _get_abstract_dist_for
      File "/prepare.py", line 298, in prepare_linked_requirement
      File "/prepare.py", line 126, in prep_for_dist
      File "/req_install.py", line 473, in run_egg_info
      File "/misc.py", line 659, in call_subprocess
      File "/subprocess.py", line 729, in __init__
      File "/subprocess.py", line 1295, in _execute_child
    OSError: [Errno 12] Out of memory
    

    Well, I figure out it was lack of /overlay space.. then, I added SD card support in my Omega's filesystem:

    root@Omega-6A5A:~# df -h
    Filesystem                Size      Used Available Use% Mounted on
    /dev/root                 7.8M      7.8M         0 100% /rom
    tmpfs                    29.2M    236.0K     29.0M   1% /tmp
    /dev/mmcblk0              7.3G     41.9M      6.9G   1% /overlay
    overlayfs:/overlay        7.3G     41.9M      6.9G   1% /
    tmpfs                   512.0K         0    512.0K   0% /dev
    /dev/mtdblock6            6.6M    468.0K      6.1M   7% /mnt/mtdblock6
    

    Yet, canot install paho-mqtt due to memory issues.
    Am I missing something?

    Thanks!!



  • <<
    /dev/mmcblk0 7.3G 41.9M 6.9G 1% /overlay
    <<

    Doesn't it have to be /dev/mmcblk0p1, the "partition 1" of /dev/mmcblk0 ?

    Thanks..



  • Well, I'll try to fix it and get back.

    For the moment, I could have paho-mqtt installed manually. (download .tar.gz, tar, python setup.py install).

    Thanks.



  • @slx :

    Sure. This was how it went, when I tried to install.

    root@Omega-745F:/# pip3 install -U pip setuptools wheel
    ..
    Successfully installed pip-20.2.3 setuptools-50.3.0 wheel-0.35.1

    root@Omega-745F:/# pip3 install paho-mqtt
    ..
    Successfully built paho-mqtt
    Installing collected packages: paho-mqtt
    Successfully installed paho-mqtt-1.5.1

    I have gcc installed, not sure if it helped to "built paho-mqtt" as seen above.

    root@Omega-745F:/#df -hT (mmcblk0 is 8GB, mmcblk0p1 is 4GB)
    ..
    /dev/mmcblk0p1 ext4 3.9G 156.4M 3.5G 4% /overlay
    overlayfs:/overlay overlay 3.9G 156.4M 3.5G 4% /
    ..
    Thanks..


  • Banned

    Thanks for sharing this information!



Looks like your connection to Community was lost, please wait while we try to reconnect.