[open-science-dev] Running PyBossa tests

Daniel Lombraña González teleyinex at gmail.com
Tue Sep 10 10:02:07 UTC 2013


Hi Traian,

It's strange if you have installed in your system. Can you try to create a
virtual environment and install all the required libraries there plus nose
and mock? I'll add a requirements_unit_tests.txt to add them there.

Please, let me know if this works.

Cheers,

Daniel


On Tue, Sep 10, 2013 at 6:21 AM, Traian Fratean <ftraian at gmail.com> wrote:

> 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.
>
> _______________________________________________
> open-science-dev mailing list
> open-science-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/open-science-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/open-science-dev
>
>


-- 
··························································································································································
http://daniellombrana.es
http://citizencyberscience.net
http://www.shuttleworthfoundation.org/fellows/daniel-lombrana/
··························································································································································
Por favor, NO utilice formatos de archivo propietarios para el
intercambio de documentos, como DOC y XLS, sino PDF, HTML, RTF, TXT, CSV
o cualquier otro que no obligue a utilizar un programa de un
fabricante concreto para tratar la información contenida en él.
··························································································································································
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/open-science-dev/attachments/20130910/a54de30e/attachment.html>


More information about the open-science-dev mailing list