[Student-projects] [GSOC14-Provide REST API for new flask based Silpa, including conversion of templates to this REST API from JSON RPC]

Jishnu jishnu7 at gmail.com
Fri Feb 28 01:13:43 PST 2014


Hi,
Please post to the mailing list, other can also reply.


On Fri, Feb 28, 2014 at 2:36 PM, Shashi Essp <shashiessp at gmail.com> wrote:

> Hi Jishnu,
>
> I have installed all the dependencies and modules as mentioned in updated
> https://github.com/Project-SILPA/Silpa-Flask/blob/master/README file, in
> my venv
>
> still i m getting following error
> Failed to import module scriptrender
> Traceback (most recent call last):
>   File "silpa.py", line 109, in <module>
>     add_templates()
>   File "silpa.py", line 52, in add_templates
>     templates.append(PackageLoader(key))
>   File
> "/home/shashi/projectsilpa/venv/local/lib/python2.7/site-packages/jinja2/loaders.py",
> line 214, in __init__
>     provider = get_provider(package_name)
>   File
> "/home/shashi/projectsilpa/venv/local/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/pkg_resources.py",
> line 219, in get_provider
>     __import__(moduleOrReq)
>   File
> "/home/shashi/projectsilpa/venv/local/lib/python2.7/site-packages/scriptrender-0.2.1-py2.7.egg/scriptrender/__init__.py",
> line 3, in <module>
>     from core  import getInstance
>   File
> "/home/shashi/projectsilpa/venv/local/lib/python2.7/site-packages/scriptrender-0.2.1-py2.7.egg/scriptrender/core.py",
> line 21, in <module>
>     import cairo
> ImportError: No module named cairo
>
> requesting for guidance to fix the problem
>
>
> Regards
> Shashi
> http://github.com/shashisp
>

Cairo doesn't work well inside virtual environment. So after installing it
on system, you need to re-create virtual environment with
"--system-site-packages" option.


-- 
Regards,
Jishnu

http://blog.thecodecracker.com
http://twitter.com/jishnu7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.smc.org.in/pipermail/student-projects-smc.org.in/attachments/20140228/0379ab52/attachment.html>


More information about the Student-projects mailing list