Page 1 of 2

ePython error on first run for multicore code

PostPosted: Tue May 09, 2017 3:51 pm
by GlasierXplor
I tried to run a simple ePython code and I got the following error:

Code: Select all
epython-host: e_reset_system(): EPIPHANY_DEV file open failure.
Error on system reset
epython-host: e_open(): EPIPHANY_DEV file open failure.
Error opening Epiphany
epython-host: e_alloc(): EPIPHANY_DEV file open failure.
Error allocating memory
/usr/bin/epython: line 28:  2079 Segmentation fault      $FILE "$@"


How can I solve this?

Re: ePython error on first run for multicore code

PostPosted: Tue May 09, 2017 11:41 pm
by polas
Hi - I am sorry you are having difficulties with this. Is this the preinstalled ePython on the latest OS image distro or a version you have installed from the Git repo yourself? Are you using the latest OS image, or is this an older image? What command are you using to launch ePython?

Nick

Re: ePython error on first run for multicore code

PostPosted: Wed May 10, 2017 7:46 am
by GlasierXplor
Hi!

I tried running stock ePython from Parabuntu 15.04 (latest image), by using `epython code.py`. I got and error saying that `parallel.py cannot be found`.

So I thought that there might be some problem with the ePython, so I downloaded it from Git. After installing, and running again using `epython code.py`, I got the error I mentioned in my first post.

Thank you for helping!

Re: ePython error on first run for multicore code

PostPosted: Wed May 10, 2017 9:28 am
by sebraa
Can you try running it like "sudo epython code.py"?

Re: ePython error on first run for multicore code

PostPosted: Wed May 10, 2017 9:32 am
by GlasierXplor
sebraa wrote:Can you try running it like "sudo epython code.py"?
by default

I am logged into the root account by default.

Re: ePython error on first run for multicore code

PostPosted: Wed May 10, 2017 3:13 pm
by polas
GlasierXplor wrote:I am logged into the root account by default.


Ah I wonder if this might be the issue with it not finding parallel.py, I suspect the module paths are just set up for the parallella user rather than root. Instead of logging in as root can you try running (the preinstalled version ideally) of ePython as the parallella user on a test code to see if that works? It shouldn't need to be run with root privileges (either as root or sudo.)

The errors you are seeing seem to suggest some issue with launching/communicating with the Epiphany, again I wonder if this is because you are logged in as root rather than the parallella user.

Cheers,
Nick

Re: ePython error on first run for multicore code

PostPosted: Fri May 12, 2017 1:41 pm
by olajep
Append this to /root/.bashrc
Code: Select all
#EPYTHON
export EPYTHONPATH=/usr/include/epython/modules:$EPYTHONPATH


But I recommend logging in as the parallella user. No need to be root

// Ola

Re: ePython error on first run for multicore code

PostPosted: Sat May 13, 2017 4:01 pm
by GlasierXplor
olajep wrote:But I recommend logging in as the parallella user. No need to be root


Every time I boot up Parallella it automatically logs me into the root account.

When I issue `logout` it does log out, but then it automatically logs me in as root again.

Re: ePython error on first run for multicore code

PostPosted: Sat May 13, 2017 4:07 pm
by GlasierXplor
polas wrote:Instead of logging in as root can you try running (the preinstalled version ideally) of ePython as the parallella user on a test code to see if that works? It shouldn't need to be run with root privileges (either as root or sudo.)


Output if I run without root privileges (same as before)
Code: Select all
epython-host: e_reset_system(): EPIPHANY_DEV file open failure.
Error on system reset
epython-host: e_open(): EPIPHANY_DEV file open failure.
Error opening Epiphany
epython-host: e_alloc(): EPIPHANY_DEV file open failure.
Error allocating memory
/usr/bin/epython: line 28:  2107 Segmentation fault      $FILE "$@"


Output when run with root privileges
Code: Select all
/usr/bin/epython-host: error while loading shared libraries: libe-hal.so.0: cannot open shared object file: No such file or directory


Oh and when I request for root privileges (sudo), it doesn't prompt me for a password,

Re: ePython error on first run for multicore code

PostPosted: Sat May 13, 2017 7:47 pm
by olajep
Which board model do you have?
Are you sure that you have downloaded the right image?
Instructions here:
https://www.parallella.org/create-sdcard/

Please post the output of
Code: Select all
$ lsmod
$ sudo rmmod epiphany
$ sudo modprobe epiphany
$ dmesg

on a fresh boot

// Ola