Note that there are some explanatory texts on larger screens.

plurals
  1. POPyramid mongodb scaffold failing on Python 3 due to Paste
    primarykey
    data
    text
    <p>Environment:</p> <ul> <li>Python 3.2.3 (using virtualenv)</li> <li>Pyramid 1.4</li> <li>pyramid_mongodb scaffold</li> </ul> <p>After installing myproject using pyramid_mongodb scaffold I ran <code>python setup.py test -q</code> and it's failing with below errors. </p> <pre><code>running build_ext Traceback (most recent call last): File "setup.py", line 33, in &lt;module&gt; """, File "/usr/lib/python3.2/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3.2/distutils/dist.py", line 917, in run_commands self.run_command(cmd) File "/usr/lib/python3.2/distutils/dist.py", line 936, in run_command cmd_obj.run() File "/root/App/Big3/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools /command/test.py", line 137, in run self.with_project_on_sys_path(self.run_tests) File "/root/App/Big3/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools /command/test.py", line 117, in with_project_on_sys_path func() File "/root/App/Big3/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools /command/test.py", line 146, in run_tests testLoader = loader_class() File "/usr/lib/python3.2/unittest/main.py", line 123, in __init__ self.parseArgs(argv) File "/usr/lib/python3.2/unittest/main.py", line 191, in parseArgs self.createTests() File "/usr/lib/python3.2/unittest/main.py", line 198, in createTests self.module) File "/usr/lib/python3.2/unittest/loader.py", line 132, in loadTestsFromNames suites = [self.loadTestsFromName(name, module) for name in names] File "/usr/lib/python3.2/unittest/loader.py", line 132, in &lt;listcomp&gt; suites = [self.loadTestsFromName(name, module) for name in names] File "/usr/lib/python3.2/unittest/loader.py", line 91, in loadTestsFromName module = __import__('.'.join(parts_copy)) File "/root/App/Big3/Lime/lime/__init__.py", line 1, in &lt;module&gt; from pyramid.config import Configurator File "/root/App/Big3/lib/python3.2/site-packages/pyramid-1.4.1-py3.2.egg/pyramid/config /__init__.py", line 10, in &lt;module&gt; from webob.exc import WSGIHTTPException as WebobWSGIHTTPException File "/root/App/Big3/lib/python3.2/site-packages/WebOb-1.2.3-py3.2.egg/webob/exc.py", line 1115, in &lt;module&gt; from paste import httpexceptions File "/root/App/Big3/lib/python3.2/site-packages/Paste-1.7.5.1-py3.2.egg/paste /httpexceptions.py", line 634 except HTTPException, exc: ^ SyntaxError: invalid syntax </code></pre> <p>I understand the error, that Paste is not python3 compatible. I also know how to fix it but that would essentially mean porting Paste to python3 (which is something I don't want to do), so can anyone tell what I can do?</p> <p>From the error stack I see that <code>webob/exc.py</code> is doing <code>from paste import httpexceptions</code> but when I checked the code I see that the import is under a <code>try</code> <code>except</code> block (without raising any error in <code>except</code>), so I even tried the test after removing <code>paste</code> from the <code>lib</code> but then when I run the test, I see that the setup.py is installing <code>paste</code> again</p> <pre><code>running test Checking .pth file support in . /root/App/Big3/bin/python -E -c pass Searching for Paste&gt;=1.7.1 </code></pre> <p>I checked .pth files and removed reference to <code>paste</code> and then started re-installation of project but somehow it still sees <code>paste</code> as required </p> <pre><code>Installed /root/App/Big3/Myproject Processing dependencies for Myproject==0.0 Searching for Paste&gt;=1.7.1 Reading http://pypi.python.org/simple/Paste/ </code></pre> <p>My setup.py file is same as <a href="https://github.com/niallo/pyramid_mongodb/blob/master/setup.py" rel="nofollow">this</a> Can someone tell me where is this <code>paste</code> dependency coming into my project.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload