Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running testpy fails with ImportError: No module named appglobals #2

Open
jarederaj opened this issue Nov 5, 2013 · 1 comment
Open

Comments

@jarederaj
Copy link

$ bin/testpy -m example_app
Running example_app.testing.layer.AppengineLayer tests:
Set up example_app.testing.layer.AppengineLayer in 0.078 seconds.
Running:

Ran 1 tests with 0 failures, 0 errors, 0 skipped in 0.028 seconds.
Running example_app.testing.layer.WebtestLayer tests:
Set up example_app.testing.layer.WebtestLayer in 0.000 seconds.
Running:
Traceback (most recent call last):
File "bin/testpy", line 63, in
'--test-path', join(base, 'source/example_app/src'),
File "/home/jared/ENV/cyber/pyramid-gae-tutorial/eggs/zope.testrunner-4.4.1-py2.7.egg/zope/testrunner/init.py", line 27, in run
failed = run_internal(defaults, args, script_parts=script_parts, cwd=cwd)
File "/home/jared/ENV/cyber/pyramid-gae-tutorial/eggs/zope.testrunner-4.4.1-py2.7.egg/zope/testrunner/init.py", line 44, in run_internal
runner.run()
File "/home/jared/ENV/cyber/pyramid-gae-tutorial/eggs/zope.testrunner-4.4.1-py2.7.egg/zope/testrunner/runner.py", line 160, in run
self.run_tests()
File "/home/jared/ENV/cyber/pyramid-gae-tutorial/eggs/zope.testrunner-4.4.1-py2.7.egg/zope/testrunner/runner.py", line 242, in run_tests
self.skipped, self.import_errors)
File "/home/jared/ENV/cyber/pyramid-gae-tutorial/eggs/zope.testrunner-4.4.1-py2.7.egg/zope/testrunner/runner.py", line 411, in run_layer
import_errors)
File "/home/jared/ENV/cyber/pyramid-gae-tutorial/eggs/zope.testrunner-4.4.1-py2.7.egg/zope/testrunner/runner.py", line 331, in run_tests
test(result)
File "/usr/lib/python2.7/unittest/case.py", line 395, in call
return self.run(_args, *_kwds)
File "/usr/lib/python2.7/unittest/case.py", line 306, in run
result.startTest(self)
File "/home/jared/ENV/cyber/pyramid-gae-tutorial/eggs/zope.testrunner-4.4.1-py2.7.egg/zope/testrunner/runner.py", line 767, in startTest
self.testSetUp()
File "/home/jared/ENV/cyber/pyramid-gae-tutorial/eggs/zope.testrunner-4.4.1-py2.7.egg/zope/testrunner/runner.py", line 752, in testSetUp
layer.testSetUp()
File "/home/jared/ENV/cyber/pyramid-gae-tutorial/source/example_app/src/example_app/testing/layer.py", line 67, in testSetUp
from main import app_config
File "/home/jared/ENV/cyber/pyramid-gae-tutorial/app/main.py", line 3, in
from appglobals import APP_BASE_DIR, DEBUG
ImportError: No module named appglobals

@mcbotha
Copy link

mcbotha commented Sep 15, 2014

It's been almost a year now...
What is the solution to this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants