You are not logged in.

#1 2017-06-29 15:20:58

Bradypus
Member
From: Brazil
Registered: 2016-01-12
Posts: 43

gmrun and anaconda python packages [SOLVED]

Hello, all!!

Being new (again) to Bunsenlab linux, I have just installed the Anaconda metapackage for linux, to work with Python programming.

I didn't expect any manu items to be added, but I expected the "Run Program" box to start the programs included in the Anaconda packages.

However, for example for the Spyder IDE, if I type "spyder" in the "Run Program" gmrun box, I get the "ERROR: no such file or directory" message, but when I type "spyder" in the X-Terminal, it starts fine.

One detail that I believe may be helpful here is that the installation of Anaconda is done through an installer which added the fllowing lines to my (otherwise empty) .bashrc file:

# added by Anaconda3 4.4.0 installer
export PATH="/home/jrl/anaconda3/bin:$PATH"

Any hint on how to run these programs through gmrum?

Thank you for any help or hints.

Bradypus, the hard working sloth...

Last edited by Bradypus (2017-06-29 19:08:12)


Hard(ly?) working sloth...

Offline

#2 2017-06-29 18:04:38

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: gmrun and anaconda python packages [SOLVED]

Bradypus wrote:

the installation of Anaconda is done through an installer which added the fllowing lines to my (otherwise empty) .bashrc file:

# added by Anaconda3 4.4.0 installer
export PATH="/home/jrl/anaconda3/bin:$PATH"

Any hint on how to run these programs through gmrum?

You can remove the line from ~/.bashrc and place it at the end of ~/.xsessionrc instead.

.bashrc is only read when a terminal is started but .xsessionrc is read when the graphical desktop starts so it's better to export PATH there (as you can see if you read the file).

Offline

#3 2017-06-29 18:30:08

Bradypus
Member
From: Brazil
Registered: 2016-01-12
Posts: 43

Re: gmrun and anaconda python packages [SOLVED]

Head_on_a_Stick wrote:

.bashrc is only read when a terminal is started but .xsessionrc is read when the graphical desktop starts so it's better to export PATH there (as you can see if you read the file).

Hey, thank you!!

That solved it! AWESOME!!!

Just one more thing, not directly related. Does that mean I don't need the .bashrc file ate all, since those two lines were all it had?

Thanks a bunch!!


Hard(ly?) working sloth...

Offline

#4 2017-06-29 18:34:39

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: gmrun and anaconda python packages [SOLVED]

Bradypus wrote:

Does that mean I don't need the .bashrc file ate all, since those two lines were all it had?

Ah, the stock ~/.bashrc has a bunch of useful stuff in it and it sounds like that Anaconda installer has just nuked it for you  hmm

Restore it with this incantation:

cat /etc/skel/.bashrc >> ~/.bashrc

That command will add the contents of the stock configuration file to the end of your version.

Offline

#5 2017-06-29 19:06:28

Bradypus
Member
From: Brazil
Registered: 2016-01-12
Posts: 43

Re: gmrun and anaconda python packages [SOLVED]

Head_on_a_Stick wrote:

Ah, the stock ~/.bashrc has a bunch of useful stuff in it and it sounds like that Anaconda installer has just nuked it for you  hmm

Restore it with this incantation:

cat /etc/skel/.bashrc >> ~/.bashrc

That command will add the contents of the stock configuration file to the end of your version.

WOW!! there was a lot to restore (about 114 lines!!)

You're a life saver!!

Well, it's all solved now!!

Thanks for everything!


Hard(ly?) working sloth...

Offline

Board footer

Powered by FluxBB