[open-science-dev] Running PyBossa tests
Traian Fratean
ftraian at gmail.com
Tue Sep 10 04:21:02 UTC 2013
Hello,
I installed PyBossa locally and want to run tests. When running I get this
error, though I have Flask:
======================================================================
ERROR: Failure: ImportError (No module named flask)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/loader.py", line 413,
in loadTestsFromName
addr.filename, addr.module)
File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 47,
in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 94,
in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/ftraian/codebase/pybossa/pybossa/test/test_web.py", line 4,
in <module>
from helper import web
File "/home/ftraian/codebase/pybossa/pybossa/test/helper/web.py", line 1,
in <module>
from base import model, db, web, Fixtures
File "/home/ftraian/codebase/pybossa/pybossa/test/base.py", line 4, in
<module>
import pybossa.web as web
File "/home/ftraian/codebase/pybossa/pybossa/pybossa/web.py", line 21, in
<module>
from flask import Response, request, g, render_template,\
ImportError: No module named flask
----------------------------------------------------------------------
Ran 13 tests in 0.022s
FAILED (errors=13)
(PYBOSSA)ftraian>
(PYBOSSA)ftraian> pip install flask
Requirement already satisfied (use --upgrade to upgrade): flask in
/home/ftraian/codebase/pybossa/runtime/PYBOSSA/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): Werkzeug>=0.7 in
/home/ftraian/codebase/pybossa/runtime/PYBOSSA/lib/python2.7/site-packages
(from flask)
Requirement already satisfied (use --upgrade to upgrade): Jinja2>=2.4 in
/home/ftraian/codebase/pybossa/runtime/PYBOSSA/lib/python2.7/site-packages
(from flask)
Requirement already satisfied (use --upgrade to upgrade):
itsdangerous>=0.21 in
/home/ftraian/codebase/pybossa/runtime/PYBOSSA/lib/python2.7/site-packages
(from flask)
Requirement already satisfied (use --upgrade to upgrade): markupsafe in
/home/ftraian/codebase/pybossa/runtime/PYBOSSA/lib/python2.7/site-packages
(from Jinja2>=2.4->flask)
Cleaning up...
Thank you,
Traian.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/open-science-dev/attachments/20130910/c63f3339/attachment.html>
More information about the open-science-dev
mailing list