Go Down

Topic: Arduino / Python Environment Setup - PIP (Read 333 times) previous topic - next topic

stevealbright

I am trying to set up my Python environment on an Arduino Yun Rev 2.   Need to install Pip to work on my project. 

running this command causes the process to be automatically KILLED every time.

root@Arduino:/# curl https://bootstrap.pypa.io/get-pip.py | python

I suspect that I am running out of system resources such as disk space, but cannot confirm as I am new to Python and Linux.

Currently running Python version 2.7.14, which apparently does not include Pip.

Thanks,

Steve

noweare

I don't run python on my arduino so I can't help you.
I think there is a micropython that adafruit uses for some of their boards.
Thats the only python I know that works on these types of boards and probably what
you want to check out. Micrpython is special version of python for embedded boards


Robin2

Python should work fine on the Linux side of a Yun. I don't know anything about the details of PIP or what it might require.

I suggest you click Report to Moderator and ask to have your Thread moved to the Yun section of the Forum

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

stevealbright

I am trying to set up my Python environment on an Arduino Yun Rev 2.   Need to install Pip to work on my project. 

running this command causes the process to be automatically KILLED every time.

root@Arduino:/# curl https://bootstrap.pypa.io/get-pip.py | python

I suspect that I am running out of system resources such as disk space, but cannot confirm as I am new to Python and Linux.

Currently running Python version 2.7.14, which apparently does not include Pip.

Thanks,

Steve

stevealbright

#4
Feb 26, 2019, 03:10 am Last Edit: Feb 26, 2019, 03:23 am by stevealbright
Here is what I am seeing in the Arudino Kernel log:

[ 2498.878229] Out of memory: Kill process 6586 (python) score 422 or sacrifice child
[ 2498.881765] Killed process 6586 (python) total-vm:31716kB, anon-rss:26008kB, file-rss:24kB, shmem-rss:0kB
[ 2499.039888] oom_reaper: reaped process 6586 (python), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

But here are the memory resources on the board:

Memory
Total Available   31896 kB / 59932 kB (53%)
Free                   28240 kB / 59932 kB (47%)
Buffered           3656 kB / 59932 kB (6%)

root@Arduino:/# df -h / /mnt/sda1
Filesystem                Size      Used Available Use% Mounted on
overlayfs:/overlay        5.6M    284.0K      5.3M   5% /
overlayfs:/overlay        5.6M    284.0K      5.3M   5% /



stevealbright

Here is what I am seeing in the Arudino Kernel log:

[ 2498.878229] Out of memory: Kill process 6586 (python) score 422 or sacrifice child
[ 2498.881765] Killed process 6586 (python) total-vm:31716kB, anon-rss:26008kB, file-rss:24kB, shmem-rss:0kB
[ 2499.039888] oom_reaper: reaped process 6586 (python), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

But here are the memory resources on the board:

Memory
Total Available   31896 kB / 59932 kB (53%)
Free                   28240 kB / 59932 kB (47%)
Buffered           3656 kB / 59932 kB (6%)

root@Arduino:/# df -h / /mnt/sda1
Filesystem                Size      Used Available Use% Mounted on
overlayfs:/overlay        5.6M    284.0K      5.3M   5% /
overlayfs:/overlay        5.6M    284.0K      5.3M   5% /

Coding Badly


@stevealbright, please do not cross-post.  Threads merged.


Go Up