Ticket #52 (closed enhancement: fixed)
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
Note: See
TracTickets for help on using
tickets.
