Install Issue fo SURL

Asked by Gyanendra Kumar on 2013-03-08

Hi:

I am working on a project with pressing priorities:

I have a install issue:

[root@GKNewCore surl-0.5.1]# PYTHONPATH=/root/surl-0.7.1/:/root/surl-0.7.1/surl /opt/ActivePython-3.2/bin/python3.2 ./setup.py
Traceback (most recent call last):
  File "./setup.py", line 18, in <module>
    import surl.version
  File "/root/surl-0.5.1/surl/__init__.py", line 2, in <module>
    import services
  File "/root/surl-0.7.1/surl/services.py", line 27, in <module>
    from surl import core
ImportError: cannot import name core

Please advise.

Best Regards,

-Gyan

Question information

Language:
English Edit question
Status:
Answered
For:
surl Edit question
Assignee:
Savvas Radevic Edit question
Last query:
2013-03-08
Last reply:
2013-03-10
Savvas Radevic (medigeek) said : #1

It's made for python 2.x, not 3.x. I've never tried it on Windows, though I expect it to work.

It seems to work on linux (ubuntu 12.10):

$ python setup.py --help
Common commands: (see '--help-commands' for more)

  setup.py build will build the package underneath 'build/'
  setup.py install will install the package

Global options:
  --verbose (-v) run verbosely (default)
  --quiet (-q) run quietly (turns verbosity off)
  --dry-run (-n) don't actually do anything
  --help (-h) show detailed help message
  --no-user-cfg ignore pydistutils.cfg in your home directory
  --command-packages list of packages that provide distutils commands

Information display options (just display information, ignore any commands)
  --help-commands list all available commands
  --name print package name
  --version (-V) print package version
  --fullname print <package name>-<version>
  --author print the author's name
  --author-email print the author's email address
  --maintainer print the maintainer's name
  --maintainer-email print the maintainer's email address
  --contact print the maintainer's name if known, else the author's
  --contact-email print the maintainer's email address if known, else the
                      author's
  --url print the URL for this package
  --license print the license of the package
  --licence alias for --license
  --description print the package description
  --long-description print the long package description
  --platforms print the list of platforms
  --classifiers print the list of classifiers
  --keywords print the list of keywords
  --provides print the list of packages/modules provided
  --requires print the list of packages/modules required
  --obsoletes print the list of packages/modules made obsolete

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

$ sudo python setup.py install --dry-run
[sudo] password for forger:
running install
running build
running build_py
running build_scripts
running install_lib
creating /usr/local/lib/python2.7/dist-packages/surl
copying build/lib.linux-x86_64-2.7/surl/surl.py -> /usr/local/lib/python2.7/dist-packages/surl
copying build/lib.linux-x86_64-2.7/surl/plugins.py -> /usr/local/lib/python2.7/dist-packages/surl
copying build/lib.linux-x86_64-2.7/surl/dirs.py -> /usr/local/lib/python2.7/dist-packages/surl
copying build/lib.linux-x86_64-2.7/surl/plugin.lst -> /usr/local/lib/python2.7/dist-packages/surl
copying build/lib.linux-x86_64-2.7/surl/__init__.py -> /usr/local/lib/python2.7/dist-packages/surl
copying build/lib.linux-x86_64-2.7/surl/surlscript.py -> /usr/local/lib/python2.7/dist-packages/surl
copying build/lib.linux-x86_64-2.7/surl/version.py -> /usr/local/lib/python2.7/dist-packages/surl
copying build/lib.linux-x86_64-2.7/surl/services.py -> /usr/local/lib/python2.7/dist-packages/surl
byte-compiling /usr/local/lib/python2.7/dist-packages/surl/surl.py to surl.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/surl/plugins.py to plugins.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/surl/dirs.py to dirs.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/surl/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/surl/surlscript.py to surlscript.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/surl/version.py to version.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/surl/services.py to services.pyc
running install_scripts
copying build/scripts-2.7/surl -> /usr/local/bin
changing mode of /usr/local/bin/surl to 775
running install_data
creating /usr/local/share/man/man1
copying docs/surl.1 -> /usr/local/share/man/man1
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/surl-0.7.1.1.egg-info

Can you help with this problem?

Provide an answer of your own, or ask Gyanendra Kumar for more information if necessary.

To post a message you must log in.