jasonsahl / LS-BSR

Large scale Blast Score Ratio (BSR) analysis
GNU General Public License v3.0
38 stars 17 forks source link

Your environment is not set correctly. Please add LS-BSR to your PYTHONPATH and try again #2

Closed sadieleob-zz closed 10 years ago

sadieleob-zz commented 10 years ago

I am having this error: Your environment is not set correctly. Please add LS-BSR to your PYTHONPATH and try again. I already added the PATH to PYTHONPATH and I still experience same error. What do you mean with add LS-BSR to you PYTHONPATH? I am trying to install it in /Users/myuser/Downloads/LS-MBR-master/. When I tried the installation in /opt/LS-BSR I got this problem. Would you please help me with this? Thanks, sadiel

jasonsahl commented 10 years ago

Sadiel,

So if you're installation directory is: /opt/LS-BSR

Then you need to modify your PYTHONPATH to reflect this location. In this case, you could modify your ".basrhc" file, located in your home, like this:

cd ~ echo export PYTHONPATH=/opt/LS-BSR:$PYTHONPATH >> .bashrc

If you log out and back in, the error should go away.

sadieleob-zz commented 10 years ago

I am still having the same issue. I do not know why.

jasonsahl commented 10 years ago

What do you get when you type from the shell:

echo $PYTHONPATH

sadieleob-zz commented 10 years ago

Jason, I was able to install it yesterday, and everything seemed to work ok. But today I tried to installid as I told you in /opt/LS-BSR When I look at ~/.bashrc the /opt/LS-BSR directory path is present.

jasonsahl commented 10 years ago

Please type that echo command, just to make sure that everything looks correct. From the command line, you could also type:

export PYTHONPATH=/opt/LS-BSR:$PYTHONPATH

Then try running LS-BSR:

python /opt/LS-BSR/ls_bsr.py

sadieleob-zz commented 10 years ago

Right now, I do not have access to the Computer I was trying to install the program. Tomorrow I will be in the Lab and I will try again. Thanks so much for all your support. I am going to try in my PC here at home.

Sincerely,

Sadiel

On Thu, Sep 25, 2014 at 6:13 PM, Jason Sahl notifications@github.com wrote:

Please type that echo command, just to make sure that everything looks correct. From the command line, you could also type:

export PYTHONPATH=/opt/LS-BSR:$PYTHONPATH

Then try running LS-BSR:

python /opt/LS-BSR/ls_bsr.py

— Reply to this email directly or view it on GitHub https://github.com/jasonsahl/LS-BSR/issues/2#issuecomment-56898306.

Sadiel

sadieleob-zz commented 10 years ago

I tried again, and it worked!! I do not what happened yesterday. Now, I installed in a different folder. Thanks so much for all your support.