ePython error on first run for multicore code

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

ePython error on first run for multicore code

Postby GlasierXplor » Tue May 09, 2017 3:51 pm

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?
Last edited by GlasierXplor on Sat Sep 02, 2017 2:12 am, edited 2 times in total.
GlasierXplor
 
Posts: 14
Joined: Thu Mar 09, 2017 8:46 am

Re: ePython error on first run for multicore code

Postby polas » Tue May 09, 2017 11:41 pm

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
polas
 
Posts: 46
Joined: Thu Mar 05, 2015 9:41 pm

Re: ePython error on first run for multicore code

Postby GlasierXplor » Wed May 10, 2017 7:46 am

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!
GlasierXplor
 
Posts: 14
Joined: Thu Mar 09, 2017 8:46 am

Re: ePython error on first run for multicore code

Postby sebraa » Wed May 10, 2017 9:28 am

Can you try running it like "sudo epython code.py"?
sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Re: ePython error on first run for multicore code

Postby GlasierXplor » Wed May 10, 2017 9:32 am

sebraa wrote:Can you try running it like "sudo epython code.py"?
by default

I am logged into the root account by default.
GlasierXplor
 
Posts: 14
Joined: Thu Mar 09, 2017 8:46 am

Re: ePython error on first run for multicore code

Postby polas » Wed May 10, 2017 3:13 pm

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
polas
 
Posts: 46
Joined: Thu Mar 05, 2015 9:41 pm

Re: ePython error on first run for multicore code

Postby olajep » Fri May 12, 2017 1:41 pm

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
_start = 266470723;
olajep
 
Posts: 139
Joined: Mon Dec 17, 2012 3:24 am
Location: Sweden

Re: ePython error on first run for multicore code

Postby GlasierXplor » Sat May 13, 2017 4:01 pm

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.
GlasierXplor
 
Posts: 14
Joined: Thu Mar 09, 2017 8:46 am

Re: ePython error on first run for multicore code

Postby GlasierXplor » Sat May 13, 2017 4:07 pm

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,
GlasierXplor
 
Posts: 14
Joined: Thu Mar 09, 2017 8:46 am

Re: ePython error on first run for multicore code

Postby olajep » Sat May 13, 2017 7:47 pm

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
_start = 266470723;
olajep
 
Posts: 139
Joined: Mon Dec 17, 2012 3:24 am
Location: Sweden

Next

Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 2 guests

cron