Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
installation error
#1
I am having problem installing obitools. 


when I used python get-obitools.py, it gives the following error:




hoekstra10@mcic-ender-svr:~/Working_dir/Ipython-Notebooks/obitool$ python get-obitools.py 
/tmp/tmpj6xtuc/obitools.zip
Downloading/unpacking OBITools
  Downloading OBITools-1.1.22.tar.gz (1.0MB): 1.0MB downloaded
  Saved /tmp/tmpj6xtuc/OBITools-1.1.22.tar.gz
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/tmp/tmpj6xtuc/obitools.zip/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/tmp/tmpj6xtuc/obitools.zip/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/tmp/tmpj6xtuc/obitools.zip/pip/req.py", line 1221, in prepare_files
    req_to_install.run_egg_info()
  File "/tmp/tmpj6xtuc/obitools.zip/pip/req.py", line 292, in run_egg_info
    logger.notify('Running setup.py (path:%s) egg_info for package %s' % (self.setup_py, self.name))
  File "/tmp/tmpj6xtuc/obitools.zip/pip/req.py", line 265, in setup_py
    import setuptools
  File "/tmp/tmpj6xtuc/obitools.zip/setuptools/__init__.py", line 11, in <module>
    from setuptools.extension import Extension
  File "/tmp/tmpj6xtuc/obitools.zip/setuptools/extension.py", line 8, in <module>
  File "/tmp/tmpj6xtuc/obitools.zip/setuptools/dist.py", line 21, in <module>
AttributeError: 'module' object has no attribute 'packaging'

Storing debug log for failure in /home/hoekstra10/.pip/pip.log
Installing OBITools (1.1.22) in serenity mode


        ___
      ,'._,`.
     (-.___.-)
     (-.___.-)
     `-.___.-'
      ((  @ @|              .            __
       \   ` |         ,\   |`.    @|   |  |      _.-._
      __`.`=-=mm===mm:: |   | |`.   |   |  |    ,'=` '=`.
     (    `-'|:/  /:/  `/  @| | |   |, @| @|   /---)W(---\ 
      \ \   / /  / /         @| |   '         (----| |----) ,~
      |\ \ / /| / /            @|              \---| |---/  |
      | \ V /||/ /                              `.-| |-,'   |
      |  `-' |V /                                 \| |/    @'
      |    , |-'                                 __| |__
      |    .;: _,-.                         ,--""..| |..""--.
      ;;:::' "    )                        (`--::__|_|__::--')
    ,-"      _,  /                          \`--...___...--'/
   (    -:--'/  /                           /`--...___...--'\  
    "-._  `"'._/                           /`---...___...---'\  
        "-._   "---.                      (`---....___....---')
         .' ",._ ,' )                     |`---....___....---'|
         /`._|  `|  |                     (`---....___....---')
        (   \    |  /                      \`---...___...---'/
         `.  `,  ^""                        `:--...___...--;'
           `.,'               hh              `-._______.-'


/bin/sh: 1: /home/hoekstra10/Working_dir/Ipython-Notebooks/obitool/OBITools-1.1.22/bin/python: not found
Traceback (most recent call last):
  File "setup.py", line 37, in <module>
    serenity=serenity_mode(PACKAGE,VERSION)
  File "distutils.ext/obidistutils/serenity/__init__.py", line 109, in serenity_mode
    serenity_snake(args.virtual,package,version)
  File "distutils.ext/obidistutils/serenity/__init__.py", line 58, in serenity_snake
    virtualpython=serenity_virtualenv(envname,package,version,minversion=minversion)
  File "distutils.ext/obidistutils/serenity/virtual.py", line 105, in serenity_virtualenv
    ok = (is_good_python27(python) and 
  File "distutils.ext/obidistutils/serenity/checkpython.py", line 143, in is_good_python27
    rep = is_python27(path) and \
  File "distutils.ext/obidistutils/serenity/checkpython.py", line 41, in is_python27
    return     pythonversion >=StrictVersion("2.7") \
  File "/usr/lib/python2.7/distutils/version.py", line 140, in __cmp__
    compare = cmp(self.version, other.version)
AttributeError: StrictVersion instance has no attribute 'version'
Traceback (most recent call last):
  File "get-obitools.py", line 45234, in <module>
    main()
  File "get-obitools.py", line 45196, in main
    envactivate = open(os.path.join(virtualenvname,'bin','activate')).readlines()
IOError: [Errno 2] No such file or directory: '/home/hoekstra10/Working_dir/Ipython-Notebooks/obitool/OBITools-1.1.22/bin/activate'
Reply
#2
Hi AselaJ,

Can you please provide to me which operating system you are running and which version of python ?
Reply
#3
(08-11-2015, 09:36 PM)coissac Wrote: Hi AselaJ,

Can you please provide to me which operating system you are running and which version of python ?

Ubuntu server (Ubuntu 14.04.2 LTS) and Python 2.7.6.

I have installed this on the same server in different account and it worked without any problem. Now I am trying to install this for a different user and it is giving me this error.

Thanks in advance.
Reply
#4
Not directly resolving the bug but resolving your problem, I hope.
You don't need to install obitools for each user, you have just to install it once on the server
at a place where every one can access it.
Can you please indicate to me if you are admin of the computer ?
Your answer will allow me to indicate to you the best solution.
Reply
#5
(08-12-2015, 01:25 PM)coissac Wrote: Not directly resolving the bug but resolving your problem, I hope.
You don't need to install obitools for each user, you have just to install it once on the server
at a place where every one can access it.
Can you please indicate to me if you are admin of the computer ?
Your answer will allow me to indicate to you the best solution.

I don't have admin privileges, but I can ask the Sys Admin to install this for us.
Reply
#6
If you type the the command :


Code:
   ls -l

in the directory where is located your install of OBITools you can check if it is readable and executable to everyone.
You can make it readable and executable using the following command


Code:
  chmod -r go+X OBITools-1.1.22

Then you provide a copy of your launching obitools script to other users and its finished
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)