google-code-export / segtools

Automatically exported from code.google.com/p/segtools
1 stars 1 forks source link

problems after installing segtools #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

I installed segtools after checking all the necessary packages of R and python.
Also, I tested the PyTables installation and passed it.
However, when I put a command line in ..../bin, I does not work at all...

I got error messages like this:

root@vm64-39:/usr/local/lib/python2.7/dist-packages/bin# ./segtools-transition
Traceback (most recent call last):
  File "./segtools-transition", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 2877, in <module>
    working_set.require(__requires__)
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 698, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 596, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: segtools==1.1.9

I use a sever from iPlant's atmosphere(this is a virtual machine)
platform-specific files installed in /usr/local/lib/python2.7/dist-packages
new Python packages installed in     
/usr/local/lib/python2.7/dist-packages/lib/python2.7
new scripts and excutables installed in 
/usr/local/lib/python2.7/dist-packages/bin

I installed segtools with root permission..

I could not understand the error messages... 

I attach some error message captured pix for your comfort
plz help me!! ;)

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by eem0...@gmail.com on 24 Feb 2015 at 1:37

Attachments:

GoogleCodeExporter commented 9 years ago
Hello!

What seems to be happening here is that the script is being run cannot resolve 
the package that you've clearly installed using the install.py script. There 
could be a number of reasons for this.

You can verify if python can find segtools by running "pip list" and check if 
"segtools (1.1.9)" is anywhere in the list. Alternatively you can simply run 
python from the command line then run "import segtools" to see if you get an 
import error.

I suspect what happened is something went wrong between your environment and 
the install script. It looks like segtools installed to the directory 
/usr/local/lib/python2.7/dist-packages/lib/python2.7. Can you verify if this is 
on your python path? If you run:

python -c "import sys;print sys.path"

It will print out all the directories where packages are looking. If it's not 
on your path you can simply add 
"/usr/local/lib/python2.7/dist-packages/lib/python2.7" to your path by adding 
it in to your existing $PYTHONPATH variable like so:

set 
PYTHONPATH="/usr/local/lib/python2.7/dist-packages/lib/python2.7:${PYTHONPATH}"

Hope that helps!

Original comment by notthebm...@gmail.com on 24 Feb 2015 at 6:59