Skip to content

Instantly share code, notes, and snippets.

@dtgay
Created June 10, 2012 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dtgay/2907543 to your computer and use it in GitHub Desktop.
Save dtgay/2907543 to your computer and use it in GitHub Desktop.
pcreate failure traceback with Pyramid
Traceback (most recent call last):
File "/usr/bin/pcreate", line 9, in <module>
load_entry_point('pyramid==1.3.2', 'console_scripts', 'pcreate')()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 337, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2279, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1989, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.7/site-packages/pyramid-1.3.2-py2.7.egg/pyramid/__init__.py", line 1, in <module>
from pyramid.request import Request
File "/usr/lib/python2.7/site-packages/pyramid-1.3.2-py2.7.egg/pyramid/request.py", line 28, in <module>
from pyramid.url import URLMethodsMixin
File "/usr/lib/python2.7/site-packages/pyramid-1.3.2-py2.7.egg/pyramid/url.py", line 22, in <module>
from pyramid.threadlocal import get_current_registry
File "/usr/lib/python2.7/site-packages/pyramid-1.3.2-py2.7.egg/pyramid/threadlocal.py", line 3, in <module>
from pyramid.registry import global_registry
File "/usr/lib/python2.7/site-packages/pyramid-1.3.2-py2.7.egg/pyramid/registry.py", line 5, in <module>
from zope.interface.registry import Components
ImportError: No module named registry
@mcdonc
Copy link

mcdonc commented Jun 10, 2012

[chrism@thinko /]$ cd ~/tmp/
[chrism@thinko tmp]$ virtualenv2.7 --no-site-packages mytmpenv
The --no-site-packages flag is deprecated; it is now the default behavior.
New python executable in mytmpenv/bin/python
Installing setuptools............done.
Installing pip...............done.
[chrism@thinko tmp]$ cd mytmpenv/
[chrism@thinko mytmpenv]$ bin/easy_install pyramid
Searching for pyramid
Reading http://pypi.python.org/simple/pyramid/
Reading http://docs.pylonshq.com
Reading http://pylonsproject.org
Reading http://docs.pylonsproject.org
Best match: pyramid 1.3.2
Downloading http://pypi.python.org/packages/source/p/pyramid/pyramid-1.3.2.tar.gz#md5=2462c74563b356d22d654a71ba507c63
Processing pyramid-1.3.2.tar.gz
Running pyramid-1.3.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-nfJcd4/pyramid-1.3.2/egg-dist-tmp-u_Gyfm
Adding pyramid 1.3.2 to easy-install.pth file
Installing ptweens script to /home/chrism/tmp/mytmpenv/bin
Installing proutes script to /home/chrism/tmp/mytmpenv/bin
Installing pshell script to /home/chrism/tmp/mytmpenv/bin
Installing prequest script to /home/chrism/tmp/mytmpenv/bin
Installing pviews script to /home/chrism/tmp/mytmpenv/bin
Installing bfg2pyramid script to /home/chrism/tmp/mytmpenv/bin
Installing pcreate script to /home/chrism/tmp/mytmpenv/bin
Installing pserve script to /home/chrism/tmp/mytmpenv/bin

Installed /home/chrism/tmp/mytmpenv/lib/python2.7/site-packages/pyramid-1.3.2-py2.7.egg
Processing dependencies for pyramid
Searching for PasteDeploy>=1.5.0
Reading http://pypi.python.org/simple/PasteDeploy/
Reading http://pythonpaste.org/deploy/
Reading http://pythonpaste.org/deploy/paste-deploy.html
Best match: PasteDeploy 1.5.0
Downloading http://pypi.python.org/packages/source/P/PasteDeploy/PasteDeploy-1.5.0.tar.gz#md5=f1a068a0b680493b6eaff3dd7690690f
Processing PasteDeploy-1.5.0.tar.gz
Running PasteDeploy-1.5.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-LNtm_v/PasteDeploy-1.5.0/egg-dist-tmp-5lOk3H
Adding PasteDeploy 1.5.0 to easy-install.pth file

Installed /home/chrism/tmp/mytmpenv/lib/python2.7/site-packages/PasteDeploy-1.5.0-py2.7.egg
Searching for translationstring>=0.4
Reading http://pypi.python.org/simple/translationstring/
Reading http://www.repoze.org
Best match: translationstring 1.1
Downloading http://pypi.python.org/packages/source/t/translationstring/translationstring-1.1.tar.gz#md5=0979b46d8f0f852810c8ec4be5c26cf2
Processing translationstring-1.1.tar.gz
Running translationstring-1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-a1emQD/translationstring-1.1/egg-dist-tmp-FSsHEd
no previously-included directories found matching 'docs/_build'
Adding translationstring 1.1 to easy-install.pth file

Installed /home/chrism/tmp/mytmpenv/lib/python2.7/site-packages/translationstring-1.1-py2.7.egg
Searching for venusian>=1.0a3
Reading http://pypi.python.org/simple/venusian/
Best match: venusian 1.0a6
Downloading http://pypi.python.org/packages/source/v/venusian/venusian-1.0a6.tar.gz#md5=d1ec24013df197291f8b457da5f7d21c
Processing venusian-1.0a6.tar.gz
Running venusian-1.0a6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-HFeih8/venusian-1.0a6/egg-dist-tmp-eY3c9a
Adding venusian 1.0a6 to easy-install.pth file

Installed /home/chrism/tmp/mytmpenv/lib/python2.7/site-packages/venusian-1.0a6-py2.7.egg
Searching for zope.deprecation>=3.5.0
Reading http://pypi.python.org/simple/zope.deprecation/
Best match: zope.deprecation 4.0.0
Downloading http://pypi.python.org/packages/source/z/zope.deprecation/zope.deprecation-4.0.0.tar.gz#md5=e7358e38997e82545e56dd393559fa84
Processing zope.deprecation-4.0.0.tar.gz
Running zope.deprecation-4.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ffU6hr/zope.deprecation-4.0.0/egg-dist-tmp-nCdzqz
Adding zope.deprecation 4.0.0 to easy-install.pth file

Installed /home/chrism/tmp/mytmpenv/lib/python2.7/site-packages/zope.deprecation-4.0.0-py2.7.egg
Searching for zope.interface>=3.8.0
Reading http://pypi.python.org/simple/zope.interface/
Best match: zope.interface 4.0.1
Downloading http://pypi.python.org/packages/source/z/zope.interface/zope.interface-4.0.1.tar.gz#md5=d171f8f8a6997409c7680f1dbb3b7e45
Processing zope.interface-4.0.1.tar.gz
Running zope.interface-4.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-uJVGwO/zope.interface-4.0.1/egg-dist-tmp-jSuPFY
Adding zope.interface 4.0.1 to easy-install.pth file

Installed /home/chrism/tmp/mytmpenv/lib/python2.7/site-packages/zope.interface-4.0.1-py2.7-linux-x86_64.egg
Searching for repoze.lru>=0.4
Reading http://pypi.python.org/simple/repoze.lru/
Best match: repoze.lru 0.5
Downloading http://pypi.python.org/packages/source/r/repoze.lru/repoze.lru-0.5.tar.gz#md5=dc83073c54ae20d1aa4bbd5a57e5cb9c
Processing repoze.lru-0.5.tar.gz
Running repoze.lru-0.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-g6T3Gn/repoze.lru-0.5/egg-dist-tmp-zUZGLq
Adding repoze.lru 0.5 to easy-install.pth file

Installed /home/chrism/tmp/mytmpenv/lib/python2.7/site-packages/repoze.lru-0.5-py2.7.egg
Searching for WebOb>=1.2dev
Reading http://pypi.python.org/simple/WebOb/
Reading http://pythonpaste.org/webob/
Reading http://webob.org/
Best match: WebOb 1.2
Downloading http://pypi.python.org/packages/source/W/WebOb/WebOb-1.2.zip#md5=e5d9699f31f296384f67cbfd90e84a9e
Processing WebOb-1.2.zip
Running WebOb-1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-6KP2nT/WebOb-1.2/egg-dist-tmp-knRtAt
no previously-included directories found matching '.pyc'
no previously-included directories found matching '
.pyo'
Adding WebOb 1.2 to easy-install.pth file

Installed /home/chrism/tmp/mytmpenv/lib/python2.7/site-packages/WebOb-1.2-py2.7.egg
Searching for Mako>=0.3.6
Reading http://pypi.python.org/simple/Mako/
Reading http://www.makotemplates.org/
Best match: Mako 0.7.0
Downloading http://pypi.python.org/packages/source/M/Mako/Mako-0.7.0.tar.gz#md5=6fde05612f8d291fc6983079b720543b
Processing Mako-0.7.0.tar.gz
Running Mako-0.7.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-W91wzm/Mako-0.7.0/egg-dist-tmp-FDIutC
warning: no files found matching '.xml' under directory 'examples'
warning: no files found matching '
.mako' under directory 'examples'
warning: no files found matching 'ez_setup.py'
no previously-included directories found matching 'doc/build/output'
Adding Mako 0.7.0 to easy-install.pth file
Installing mako-render script to /home/chrism/tmp/mytmpenv/bin

Installed /home/chrism/tmp/mytmpenv/lib/python2.7/site-packages/Mako-0.7.0-py2.7.egg
Searching for Chameleon>=1.2.3
Reading http://pypi.python.org/simple/Chameleon/
Reading http://chameleon.repoze.org
Reading http://www.pagetemplates.org/
Best match: Chameleon 2.9.2
Downloading http://pypi.python.org/packages/source/C/Chameleon/Chameleon-2.9.2.tar.gz#md5=07319959f4cafc6a2b10828a8b1ff097
Processing Chameleon-2.9.2.tar.gz
Running Chameleon-2.9.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-xh4V0w/Chameleon-2.9.2/egg-dist-tmp-h7qWCX
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz
Extracting in /tmp/easy_install-xh4V0w/Chameleon-2.9.2/temp/tmpCR1lw8
Now working in /tmp/easy_install-xh4V0w/Chameleon-2.9.2/temp/tmpCR1lw8/distribute-0.6.14
Building a Distribute egg in /tmp/easy_install-xh4V0w/Chameleon-2.9.2
/tmp/easy_install-xh4V0w/Chameleon-2.9.2/distribute-0.6.14-py2.7.egg
Adding Chameleon 2.9.2 to easy-install.pth file

Installed /home/chrism/tmp/mytmpenv/lib/python2.7/site-packages/Chameleon-2.9.2-py2.7.egg
Searching for MarkupSafe>=0.9.2
Reading http://pypi.python.org/simple/MarkupSafe/
Reading http://dev.pocoo.org/
Best match: MarkupSafe 0.15
Downloading http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.15.tar.gz#md5=4e7c4d965fe5e033fa2d7bb7746bb186
Processing MarkupSafe-0.15.tar.gz
Running MarkupSafe-0.15/setup.py -q bdist_egg --dist-dir /tmp/easy_install-sWEQud/MarkupSafe-0.15/egg-dist-tmp-gCvlts
Adding MarkupSafe 0.15 to easy-install.pth file

Installed /home/chrism/tmp/mytmpenv/lib/python2.7/site-packages/MarkupSafe-0.15-py2.7-linux-x86_64.egg
Finished processing dependencies for pyramid
[chrism@thinko mytmpenv]$ bin/pcreate -s starter myproj
Creating directory /home/chrism/tmp/mytmpenv/myproj
Recursing into +package+
Creating /home/chrism/tmp/mytmpenv/myproj/myproj/
Copying init.py to /home/chrism/tmp/mytmpenv/myproj/myproj/init.py
Recursing into static
Creating /home/chrism/tmp/mytmpenv/myproj/myproj/static/
Copying favicon.ico to /home/chrism/tmp/mytmpenv/myproj/myproj/static/favicon.ico
Copying footerbg.png to /home/chrism/tmp/mytmpenv/myproj/myproj/static/footerbg.png
Copying headerbg.png to /home/chrism/tmp/mytmpenv/myproj/myproj/static/headerbg.png
Copying ie6.css to /home/chrism/tmp/mytmpenv/myproj/myproj/static/ie6.css
Copying middlebg.png to /home/chrism/tmp/mytmpenv/myproj/myproj/static/middlebg.png
Copying pylons.css to /home/chrism/tmp/mytmpenv/myproj/myproj/static/pylons.css
Copying pyramid-small.png to /home/chrism/tmp/mytmpenv/myproj/myproj/static/pyramid-small.png
Copying pyramid.png to /home/chrism/tmp/mytmpenv/myproj/myproj/static/pyramid.png
Copying transparent.gif to /home/chrism/tmp/mytmpenv/myproj/myproj/static/transparent.gif
Recursing into templates
Creating /home/chrism/tmp/mytmpenv/myproj/myproj/templates/
Copying mytemplate.pt_tmpl to /home/chrism/tmp/mytmpenv/myproj/myproj/templates/mytemplate.pt
Copying tests.py_tmpl to /home/chrism/tmp/mytmpenv/myproj/myproj/tests.py
Copying views.py_tmpl to /home/chrism/tmp/mytmpenv/myproj/myproj/views.py
Copying CHANGES.txt_tmpl to /home/chrism/tmp/mytmpenv/myproj/CHANGES.txt
Copying MANIFEST.in_tmpl to /home/chrism/tmp/mytmpenv/myproj/MANIFEST.in
Copying README.txt_tmpl to /home/chrism/tmp/mytmpenv/myproj/README.txt
Copying development.ini_tmpl to /home/chrism/tmp/mytmpenv/myproj/development.ini
Copying production.ini_tmpl to /home/chrism/tmp/mytmpenv/myproj/production.ini
Copying setup.cfg_tmpl to /home/chrism/tmp/mytmpenv/myproj/setup.cfg
Copying setup.py_tmpl to /home/chrism/tmp/mytmpenv/myproj/setup.py
Welcome to Pyramid. Sorry for the convenience.
[chrism@thinko mytmpenv]$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment