Ticket #52 (closed enhancement: fixed)

Opened 6 years ago

Last modified 3 years ago

paster create fails

Reported by: anonymous Owned by: ianb
Priority: highest Milestone: 1.4.1
Component: wareweb Version: 0.3
Severity: minor Keywords:
Cc:

Description

This is on WinXP:

D:Documents and Settings..Desktopx>paster create paste-test
Selected and implied templates:
  pastescript#basic_package  A basic setuptools-enabled package

Variables:
  package:  pastetest
  project:  paste-test
Creating template basic_package
  Creating .paste-test/
  Recursing into +package+
    Creating .paste-testpastetest/
    Copying __init__.py to .paste-testpastetest__init__.py
  Copying setup.cfg to .paste-testsetup.cfg
  Copying setup.py_tmpl to .paste-testsetup.py
Running D:Python24python.exe setup.py egg_info
Error (exit code: 1)
Traceback (most recent call last):
  File "setup.py", line 19, in ?
    package_data=finddata.find_package_data(),
NameError: name 'finddata' is not defined

Traceback (most recent call last):
  File "d:python24Scriptspaster.py", line 18, in ?
    command.run()
  File "d:python24libsite-packagesPasteScript-0.4-py2.4.eggpastescriptcommand.py", line 67, in run
    invoke(command, command_name, options, args[1:])
  File "d:python24libsite-packagesPasteScript-0.4-py2.4.eggpastescriptcommand.py", line 107, in invoke
    exit_code = runner.run(args)
  File "d:python24libsite-packagesPasteScript-0.4-py2.4.eggpastescriptcommand.py", line 202, in run
    result = self.command()
  File "d:python24libsite-packagesPasteScript-0.4-py2.4.eggpastescriptcreate_distro.py", line 101, in command

    cwd=output_dir)
  File "d:python24libsite-packagesPasteScript-0.4-py2.4.eggpastescriptcommand.py", line 523, in run_command
    raise OSError("Error executing command %s" % cmd)
OSError: Error executing command D:Python24python.exe


test/setup.py is like this:

from setuptools import setup, find_packages
import sys, os

version = ''

setup(name='paste-test',
      version=version,
      description="",
      long_description="""
""",
      classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
      keywords='',
      author='',
      author_email='',
      url='',
      license='',
      packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
      zip_safe=False,
      package_data=finddata.find_package_data(),
      install_requires=[
          # -*- Extra requirements: -*-
      ],
      entry_points="""
      # -*- Entry points: -*-
      """,
      )
     

note that finddata is not imported anywhere.


there's more, even if i fix it by adding from paste.util import finddata

D:Documents and SettingsmalukeDesktopxpaste-test>paster.py serve setup.cfg
Traceback (most recent call last):
  File "d:python24Scriptspaster.py", line 18, in ?
    command.run()
  File "d:python24libsite-packagesPasteScript-0.4-py2.4.eggpastescriptcommand.py", line 67, in run
    invoke(command, command_name, options, args[1:])
  File "d:python24libsite-packagesPasteScript-0.4-py2.4.eggpastescriptcommand.py", line 107, in invoke
    exit_code = runner.run(args)
  File "d:python24libsite-packagesPasteScript-0.4-py2.4.eggpastescriptcommand.py", line 202, in run
    result = self.command()
  File "d:python24libsite-packagesPasteScript-0.4-py2.4.eggpastescriptserve.py", line 168, in command
    relative_to=base)
  File "d:python24libsite-packagesPasteDeploy-0.4-py2.4.eggpastedeployloadwsgi.py", line 189, in loadserver
    return loadobj(SERVER, uri, name=name, **kw)
  File "d:python24libsite-packagesPasteDeploy-0.4-py2.4.eggpastedeployloadwsgi.py", line 203, in loadobj
    global_conf=global_conf)
  File "d:python24libsite-packagesPasteDeploy-0.4-py2.4.eggpastedeployloadwsgi.py", line 223, in loadcontext
    global_conf=global_conf)
  File "d:python24libsite-packagesPasteDeploy-0.4-py2.4.eggpastedeployloadwsgi.py", line 243, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "d:python24libsite-packagesPasteDeploy-0.4-py2.4.eggpastedeployloadwsgi.py", line 314, in get_context
    section = self.find_config_section(
  File "d:python24libsite-packagesPasteDeploy-0.4-py2.4.eggpastedeployloadwsgi.py", line 473, in find_config_
section
    raise LookupError(
LookupError: No section None (prefixed by 'server') found in config D:/Documents and Settings/maluke/Desktop/x/paste
-test/setup.cfg


}}}}

Change History

Changed 6 years ago by anonymous

D:Documents and SettingsmalukeDesktopxpaste-test>paster.py serve setup.cfg
Traceback (most recent call last):
  File "d:python24Scriptspaster.py", line 18, in ?
    command.run()
  File "d:python24libsite-packagesPasteScript-0.4-py2.4.eggpastescriptcommand.py", line 67, in run
    invoke(command, command_name, options, args[1:])
  File "d:python24libsite-packagesPasteScript-0.4-py2.4.eggpastescriptcommand.py", line 107, in invoke
    exit_code = runner.run(args)
  File "d:python24libsite-packagesPasteScript-0.4-py2.4.eggpastescriptcommand.py", line 202, in run
    result = self.command()
  File "d:python24libsite-packagesPasteScript-0.4-py2.4.eggpastescriptserve.py", line 168, in command
    relative_to=base)
  File "d:python24libsite-packagesPasteDeploy-0.4-py2.4.eggpastedeployloadwsgi.py", line 189, in loadserver
    return loadobj(SERVER, uri, name=name, **kw)
  File "d:python24libsite-packagesPasteDeploy-0.4-py2.4.eggpastedeployloadwsgi.py", line 203, in loadobj
    global_conf=global_conf)
  File "d:python24libsite-packagesPasteDeploy-0.4-py2.4.eggpastedeployloadwsgi.py", line 223, in loadcontext
    global_conf=global_conf)
  File "d:python24libsite-packagesPasteDeploy-0.4-py2.4.eggpastedeployloadwsgi.py", line 243, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "d:python24libsite-packagesPasteDeploy-0.4-py2.4.eggpastedeployloadwsgi.py", line 314, in get_context
    section = self.find_config_section(
  File "d:python24libsite-packagesPasteDeploy-0.4-py2.4.eggpastedeployloadwsgi.py", line 473, in find_config_
section
    raise LookupError(
LookupError: No section None (prefixed by 'server') found in config D:/Documents and Settings/maluke/Desktop/x/paste
-test/setup.cfg

Changed 6 years ago by ianb

  • status changed from new to closed
  • resolution set to fixed

This is fixed in svn trunk, and will go into the next 0.4.1 release (which will probably be quite soon).

Changed 6 years ago by kkkkoaaa

Keep a good job up!  http://quick-adult-links.com

Changed 6 years ago by anonymous

  • severity changed from major to minor
  • component changed from *paste to wareweb
  • priority changed from high to highest
  • version changed from svn-trunk to 0.3
  • milestone changed from 0.4 to 1.0
  • type changed from defect to enhancement

Changed 6 years ago by anonymous

Great resource. Really helpful for understand odbc things.

Thanks.

my email:googlefans@163.com

=============Some my site====================

1. wow gold

2. world of warcraft gold

3. wow gold

Changed 5 years ago by anonymous

  • milestone 1.0 deleted

Milestone 1.0 deleted

Note: See TracTickets for help on using tickets.