Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #652 (closed defect: invalid)

Opened 13 years ago

Last modified 12 years ago

tg-admin quickstart fails executing /usr/bin/python from paste

Reported by: pkoelle@… Owned by: pkoelle@…
Priority: low Milestone: 0.9a2
Component: Installation Version:
Severity: minor Keywords:
Cc:

Description

tg was installed via easy_install following the instructions for the 0.9a1 release. The installation directory is not system wide site-packages but under my home directory. I followed  http://peak.telecommunity.com/DevCenter/EasyInstall#administrator-installation to make pth files work. This is on linux and python-2.4.1

thanks

Paul

pkoelle@nil ~ $ echo $PYTHONPATH /usr/lib/portage/pym:/mnt/data/smbhomes/pkoelle/lib/python2.4:/mnt/data/smbhomes/pkoelle/bin

pkoelle@nil ~ $ tg-admin quickstart myadmin
Enter package name [myadmin]:
Selected and implied templates:
  TurboGears#turbogears  web framework

Variables:
  package:  myadmin
  project:  myadmin
Creating template turbogears
  Creating ./myadmin/
  Recursing into +einame+.egg-info
    Creating ./myadmin/myadmin.egg-info/
    Copying PKG-INFO to ./myadmin/myadmin.egg-info/PKG-INFO
    Copying paster_plugins.txt to ./myadmin/myadmin.egg-info/paster_plugins.txt
    Copying sqlobject.txt_tmpl to ./myadmin/myadmin.egg-info/sqlobject.txt
  Recursing into +package+
    Creating ./myadmin/myadmin/
    Copying __init__.py to ./myadmin/myadmin/__init__.py
    Copying config.py_tmpl to ./myadmin/myadmin/config.py
    Copying controllers.py_tmpl to ./myadmin/myadmin/controllers.py
    Copying model.py_tmpl to ./myadmin/myadmin/model.py
    Recursing into sqlobject-history
      Creating ./myadmin/myadmin/sqlobject-history/
      Copying empty to ./myadmin/myadmin/sqlobject-history/empty
    Recursing into static
      Creating ./myadmin/myadmin/static/
      Recursing into css
        Creating ./myadmin/myadmin/static/css/
        Copying empty to ./myadmin/myadmin/static/css/empty
      Recursing into images
        Creating ./myadmin/myadmin/static/images/
        Copying favicon.ico to ./myadmin/myadmin/static/images/favicon.ico
        Copying tg_under_the_hood.png to ./myadmin/myadmin/static/images/tg_under_the_hood.png
      Recursing into javascript
        Creating ./myadmin/myadmin/static/javascript/
        Copying empty to ./myadmin/myadmin/static/javascript/empty
    Recursing into templates
      Creating ./myadmin/myadmin/templates/
      Copying __init__.py to ./myadmin/myadmin/templates/__init__.py
      Copying login.kid to ./myadmin/myadmin/templates/login.kid
      Copying master.kid to ./myadmin/myadmin/templates/master.kid
      Copying welcome.kid to ./myadmin/myadmin/templates/welcome.kid
    Recursing into tests
      Creating ./myadmin/myadmin/tests/
      Copying __init__.py to ./myadmin/myadmin/tests/__init__.py
      Copying test_controllers.py_tmpl to ./myadmin/myadmin/tests/test_controllers.py
      Copying test_model.py_tmpl to ./myadmin/myadmin/tests/test_model.py
  Copying README.txt_tmpl to ./myadmin/README.txt
  Copying __init__.py to ./myadmin/__init__.py
  Copying devcfg.py_tmpl to ./myadmin/devcfg.py
  Copying prodcfg.py_tmpl to ./myadmin/prodcfg.py
  Copying setup.py_tmpl to ./myadmin/setup.py
  Copying start-+package+.py_tmpl to ./myadmin/start-myadmin.py
Running /usr/bin/python setup.py egg_info
Error (exit code: 1)
Traceback (most recent call last):
  File "setup.py", line 2, in ?
    from turbogears.finddata import find_package_data
ImportError: No module named turbogears.finddata

Traceback (most recent call last):
  File "/mnt/data/smbhomes/pkoelle/bin/tg-admin", line 7, in ?
    sys.exit(
  File "/mnt/data/smbhomes/pkoelle/lib/python2.4/TurboGears-0.9a1-py2.4.egg/turbogears/command/base.py", line 270, in main
    command.run()
  File "/mnt/data/smbhomes/pkoelle/lib/python2.4/TurboGears-0.9a1-py2.4.egg/turbogears/command/quickstart.py", line 102, in run
    command.run(cmd_args)
  File "/mnt/data/smbhomes/pkoelle/lib/python2.4/PasteScript-0.4.1-py2.4.egg/paste/script/command.py", line 202, in run
    result = self.command()
  File "/mnt/data/smbhomes/pkoelle/lib/python2.4/PasteScript-0.4.1-py2.4.egg/paste/script/create_distro.py", line 101, in command
    cwd=output_dir)
  File "/mnt/data/smbhomes/pkoelle/lib/python2.4/PasteScript-0.4.1-py2.4.egg/paste/script/command.py", line 523, in run_command
    raise OSError("Error executing command %s" % cmd)
OSError: Error executing command /usr/bin/python

pkoelle@nil ~ $ /usr/bin/python
Python 2.4.1 (#1, Sep  3 2005, 09:07:39)
[GCC 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

Change History

comment:1 Changed 13 years ago by pkoelle@…

  • Owner changed from anonymous to pkoelle@…
  • Priority changed from normal to low
  • Severity changed from normal to minor

hm, got it working. Not sure what the problem was but I moved the code

import os,site
site.addsitedir(os.path.expanduser('~/lib/python2.4'))

from site-packages/altinstall.pth to /usr/lib/python/sitecustomize.py and added an easy-install.pth to ~/lib/python2.4. Not sure if both is necessary, will try to start from scratch on another box soon. Anyway, it seems the information from the easy_install page is wrong.

comment:2 Changed 13 years ago by pkoelle@…

  • Status changed from new to closed
  • Resolution set to invalid

fixed on my side ;) If this should be in the docs/faq somewhere ping me and I'll write it down.

comment:3 Changed 13 years ago by florian

The resolution to this problem for me was to add all packages from the site-packages directory that where eggs to the easy-install.pth

Note: See TracTickets for help on using tickets.