Attached is a copy of the setup.py file.
My current solution which works, is importing
pkg_resources in __init__.py file and defining whatever
paths I need there, include them in the settings before configuring myApp.
Thanks,
On Monday, April 8, 2013 1:16:31 PM UTC-4, stm wrote:
Getting distribution for 'myApp'.
An error occured when trying to install myApp 0.6.4. Look above this message for any errors that were output by easy_install.
STDERR: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1941, in main
with_ei_usage(lambda:
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1922, in with_ei_usage
return f()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1945, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 358, in run
self.easy_install(spec, not self.no_deps)
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 582, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 632, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 827, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1107, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1093, in run_setup
run_setup(setup_script, args)
File "/usr/local/lib/python2.7/dist-packages/setuptools/sandbox.py", line 33, in run_setup
lambda: execfile(
File "/usr/local/lib/python2.7/dist-packages/setuptools/sandbox.py", line 81, in run
return func()
File "/usr/local/lib/python2.7/dist-packages/setuptools/sandbox.py", line 35, in <lambda>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 7, in <module>
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 913, in resource_filename
return get_provider(package_or_requirement).get_resource_filename(
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 219, in get_provider
__import__(moduleOrReq)
File "/tmp/easy_install-tVC4Cd/myApp-0.6.4/myApp/__init__.py", line 1, in <module>
#
ImportError: No module named pyramid.config
While:
Installing py.
Getting distribution for 'myApp'.
Error: Couldn't install: myApp 0.6.4
---- End output of bin/buildout ----
Ran bin/buildout returned 1
/var/lib/gems/1.9.1/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout.rb:248:in `invalid!'
/var/lib/gems/1.9.1/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout.rb:234:in `error!'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/mixin/shell_out.rb:36:in `shell_out!'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/provider/execute.rb:58:in `action_run'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource.rb:454:in `run_action'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:49:in `run_action'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:85:in `block (2 levels) in converge'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:85:in `each'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:85:in `block in converge'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection.rb:94:in `block in execute_each_resource'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection.rb:92:in `execute_each_resource'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:80:in `converge'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/client.rb:330:in `converge'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/client.rb:163:in `run'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/application/solo.rb:207:in `block in run_application'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/application/solo.rb:195:in `loop'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/application/solo.rb:195:in `run_application'
/var/lib/gems/1.9.1/gems/chef-10.12.0/lib/chef/application.rb:70:in `run'
/var/lib/gems/1.9.1/gems/chef-10.12.0/bin/chef-solo:25:in `<top (required)>'
/usr/local/bin/chef-solo:23:in `load'
/usr/local/bin/chef-solo:23:in `<main>'
[2013-04-08T13:01:03-04:00] ERROR: Running exception handlers
[2013-04-08T13:01:03-04:00] ERROR: Exception handlers complete
[2013-04-08T13:01:03-04:00] FATAL: Stacktrace dumped to /tmp/chef-solo/cache/chef-stacktrace.out
[2013-04-08T13:01:03-04:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[run bin/buildout] (etireports::default line 60) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of bin/buildout ----
STDOUT: Uninstalling mkdirs.
Uninstalling deploy_ini.
Uninstalling py.
Unused options for buildout: 'interpreter'.
Installing py.
Getting distribution for 'myApp'.
An error occured when trying to install myApp 0.6.4. Look above this message for any errors that were output by easy_install.
STDERR: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1941, in main
with_ei_usage(lambda:
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1922, in with_ei_usage
return f()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1945, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 358, in run
self.easy_install(spec, not self.no_deps)
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 582, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 632, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 827, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1107, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1093, in run_setup
run_setup(setup_script, args)
File "/usr/local/lib/python2.7/dist-packages/setuptools/sandbox.py", line 33, in run_setup
lambda: execfile(
File "/usr/local/lib/python2.7/dist-packages/setuptools/sandbox.py", line 81, in run
return func()
File "/usr/local/lib/python2.7/dist-packages/setuptools/sandbox.py", line 35, in <lambda>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 7, in <module>
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 913, in resource_filename
return get_provider(package_or_requirement).get_resource_filename(
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 219, in get_provider
__import__(moduleOrReq)
File "/tmp/easy_install-tVC4Cd/myApp-0.6.4/myApp/__init__.py", line 1, in <module>
#
ImportError: No module named pyramid.config
While:
Installing py.
Getting distribution for 'myApp'.
Error: Couldn't install: myApp 0.6.4
---- End output of bin/buildout ----
Ran bin/buildout returned 1
Will appreciate any help.