<div dir="ltr"><div><div>Hi Jan,<br></div>Yes the virtualenv is activated and I tried running "python setup.py install" without the sudo command so that it calls the python interpreter of the Virtualenv but it gives me a Permission denied error "Permissions Denied: 'pywps.egg-info/requires.tx' " Actually that's the main issue am not able to install pywps in virtualenv, it gives permission error when I don't use sudo, and the moment I run the command with sudo it installs pywps globally.<br><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><font style="color:rgb(136,136,136)"><img src="cid:DWT1817"><span style="font-family:arial,helvetica,sans-serif;font-weight:bold;color:rgb(51,0,153)"><font size="3"><br></font></span></font></div><font style="color:rgb(136,136,136)"><span style="font-family:arial,helvetica,sans-serif;font-weight:bold;color:rgb(51,0,153)"><font size="3">Vikas Mishra</font></span><br style="color:rgb(51,0,153);font-family:arial,helvetica,sans-serif"><span style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(51,0,153)">MSc(Hons) Economics + B.E. Electronics and Electrical Engineering</span></span></font><div><b style="font-size:large;color:rgb(136,136,136)"><span style="font-size:12pt;font-family:Arial,sans-serif;color:rgb(33,29,112)">Birla Institute of Technology & Science,</span></b><span style="font-size:12pt;font-family:Arial,sans-serif;color:rgb(33,29,112)"> Pilani</span></div><div><font color="#211d70" face="Arial, sans-serif" size="3">KK Birla Goa Campus</font></div><div><font color="#211d70" face="Arial, sans-serif" size="3">8412898899|<a href="mailto:vikasmishra95@gmail.com" target="_blank">vikasmishra95@gmail.com</a><br></font><div><br></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Wed, Jun 8, 2016 at 11:22 AM, Jan Rudolf <span dir="ltr"><<a href="mailto:rudolja1@fit.cvut.cz" target="_blank">rudolja1@fit.cvut.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Vikas,<br>
<span class=""><br>
> So When I am inside the virtualenv and install the dependencies they<br>
> get installed locally (inside virtualenv and not globally) but when I<br>
> do 'sudo pip setup.py install' this installs pywps globally hence when<br>
> I try to run demo.py from inside the virtualenv it gives an import<br>
> error that It can't import pywps.<br>
<br>
</span>Did you have Virtualenv activated? Then should the "python" command call<br>
the Python interpreter of your Virtualenv, so then if you use "python<br>
setup.py install", it should install PyWPS into Virtualenv's Python.<br>
It's work for me. Hope it help.<br>
<br>
Jan<br>
<span class=""><br>
<br>
On 2016-06-08 09:41, Vikas Mishra wrote:<br>
> Hi,<br>
> I finally figured out the reason why I was getting import error when I<br>
> was trying to install from the source code locally.<br>
> I've recently started using virtualenv, and for installation am<br>
> following the instructions from<br>
> <a href="https://pywps.readthedocs.io/en/latest/install.html" rel="noreferrer" target="_blank">https://pywps.readthedocs.io/en/latest/install.html</a><br>
><br>
> So When I am inside the virtualenv and install the dependencies they<br>
> get installed locally (inside virtualenv and not globally) but when I<br>
> do 'sudo pip setup.py install' this installs pywps globally hence when<br>
> I try to run demo.py from inside the virtualenv it gives an import<br>
> error that It can't import pywps.<br>
><br>
> For the moment I have installed everything globally and it works but<br>
> is there a way to install everything in virtualenv? I tried installing<br>
> pywps in virtualenv (without sudo) but it gives some permission denied<br>
> error.<br>
><br>
> Also 'psutil' is not installed when you install from the requirements<br>
> files and before running demo.py I had to manually install it.<br>
><br>
> Thanks and regards,<br>
><br>
</span><span class="">> Vikas Mishra<br>
> MSc(Hons) Economics + B.E. Electronics and Electrical Engineering<br>
</span>> BIRLA INSTITUTE OF TECHNOLOGY & SCIENCE, Pilani<br>
<span class="">> KK Birla Goa Campus<br>
> 8412898899|<a href="mailto:vikasmishra95@gmail.com">vikasmishra95@gmail.com</a><br>
><br>
</span>> Sent with MailTrack [1]<br>
><br>
> Links:<br>
> ------<br>
> [1]<br>
> <a href="https://mailtrack.io/install?source=signature&lang=en&referral=vikasmishra95@gmail.com&idSignature=22" rel="noreferrer" target="_blank">https://mailtrack.io/install?source=signature&lang=en&referral=vikasmishra95@gmail.com&idSignature=22</a><br>
> _______________________________________________<br>
> pywps-dev mailing list<br>
> <a href="mailto:pywps-dev@lists.osgeo.org">pywps-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/pywps-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/pywps-dev</a><br>
_______________________________________________<br>
pywps-dev mailing list<br>
<a href="mailto:pywps-dev@lists.osgeo.org">pywps-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pywps-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/pywps-dev</a></blockquote></div><br></div>