Thread 'Could anyone tell me where is PYTHONPATH in ubuntu?'

Message boards : Server programs : Could anyone tell me where is PYTHONPATH in ubuntu?
Message board moderation

To post messages, you must log in.

AuthorMessage
Kunsheng Chen

Send message
Joined: 3 Jun 08
Posts: 40
United States
Message 17667 - Posted: 5 Jun 2008, 15:47:44 UTC

I screwed up with the previous ubuntu server and is trying on a new one. The first problem for me is to set up 'PYTHONPATH' correctly according to my mate.

I search online and found PYTHONPATH should be in './bashsrc' , which I don't have in /etc but another similar 'bash.bashsrc'. Could anyone tell me is this 'bash.bashsrc' the one I need?

It's an emergency for me and I really appreciate any help from you guys.
ID: 17667 · Report as offensive
0xabad1dea
Avatar

Send message
Joined: 5 Jun 08
Posts: 2
United States
Message 17669 - Posted: 5 Jun 2008, 16:26:23 UTC - in response to Message 17667.  

It's okay if ~/.bashrc doesn't already exist. Open it in a text editor like this:

$ gedit ~/.bashrc
[or use vi, or emacs, or nano, or whatever]

and add this line [to the end, if there's something in it]:
export PYTHONPATH="/the/path/you/need"
ID: 17669 · Report as offensive
Kunsheng Chen

Send message
Joined: 3 Jun 08
Posts: 40
United States
Message 17677 - Posted: 5 Jun 2008, 19:03:13 UTC - in response to Message 17669.  

It's okay if ~/.bashrc doesn't already exist. Open it in a text editor like this:

$ gedit ~/.bashrc
[or use vi, or emacs, or nano, or whatever]

and add this line [to the end, if there's something in it]:
export PYTHONPATH="/the/path/you/need"



Thank you. It works. when I run 'gedit ~/bashrc', I found the file actually exits.. which I can't see using 'ls'.

Also I am a little confused about I m doing: I login a workstation in ubuntu and use the terminal to ssh the remote server installed ubuntu too. Whenever I type 'ls' inside the terminal, it shows the files in the original workstation, but I did successfully login in the remote server (I can tell from the prefix username@machinename). I am totally new to Linux system and I don't know why. Is that normal? All I do must be in the server, hope I am right now. Thanks.


ID: 17677 · Report as offensive
0xabad1dea
Avatar

Send message
Joined: 5 Jun 08
Posts: 2
United States
Message 17678 - Posted: 5 Jun 2008, 19:08:35 UTC - in response to Message 17677.  

Files whose name begins with a dot are hidden by default as they are "clutter". You can see dotfiles by using "ls -a"

As for your second question, I'd make extra sure you're a) typing in the same terminal you use ssh in, and b) it's maybe just a coincidence that the two computers have the same set of files in their directories (very likely if they're both fresh installs)

ID: 17678 · Report as offensive
Kunsheng Chen

Send message
Joined: 3 Jun 08
Posts: 40
United States
Message 17679 - Posted: 5 Jun 2008, 19:19:07 UTC - in response to Message 17678.  

Files whose name begins with a dot are hidden by default as they are "clutter". You can see dotfiles by using "ls -a"

As for your second question, I'd make extra sure you're a) typing in the same terminal you use ssh in, and b) it's maybe just a coincidence that the two computers have the same set of files in their directories (very likely if they're both fresh installs)



wow..thank you for your instant reply. Do you have any idea for the second problem?
I first login a machine with username@while: and then ssh -X url -p [port] to ssh the remote server. Then the prefix becomre username@lobo, After that I fun svn ** something like that to get boinc resource but now it seems I download it in the @while machine for so long.. How could I get that in the server? I mean the prefix is username@lobo and I run everything after that, really don't know why it downloaded to the @while machine..

ID: 17679 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 17680 - Posted: 5 Jun 2008, 20:16:15 UTC - in response to Message 17667.  

It's an emergency for me and I really appreciate any help from you guys.

http://www.catb.org/~esr/faqs/smart-questions.html#urgent ;)
ID: 17680 · Report as offensive

Message boards : Server programs : Could anyone tell me where is PYTHONPATH in ubuntu?

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.