<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>Richard, thanks for your answer!<br></div>Afaics, I have only one python installed, through osgeo4w. I tried setting the pythonhome as "C:\[PythonDir]\DLLs" and then as "C:\[PythonDir]" without success. <br>I then tried docker but to be honest I find it not that straightforward (at least on Windows) and it seems that it requires more knowledge on virtualisation matters (what i lack). So I gave up!<br></div><div>I then come back to paver set osgeo4w directory as path environment variable for the user and it works like a charm! i can build docs and website ... don't know which changes really work but now it works (won't check further :) )<br><br></div><div>I'd like to fix some issues in docs pdf version but when i generate doc, I can't find a local pdf. The one i get is linked to the official online one.<br></div><div>Any idea how I can build a pdf doc locally? Trying _paver pdf_ complains about missing gdbm and a pip install gdbm states:<br></div><div>*could not find a version that satisfied the requirement gdbm (version: )<br></div><div>No matching distribution found for gdbm* <br></div>and internet is no more prolific<br><br></div>Thanks for any other help..<br></div>Harrissou<br><div><div><div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-27 16:56 GMT+02:00 Richard Duivenvoorde <span dir="ltr"><<a href="mailto:rdmailings@duif.net" target="_blank">rdmailings@duif.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi,<br>
<br>
Googling I found this<br>
<br>
<a href="https://github.com/pypa/virtualenv/issues/72" rel="noreferrer" target="_blank">https://github.com/pypa/virtualenv/issues/72</a><br>
<br>
and there they say:<br>
<br>
In case someone else is looking at this, make sure "C:\[PythonDir]\DLLs"<br>
is in your pythonpath environment variable, NOT your path variable.<br>
<br>
In your case maybe the problem is maybe two python installs? One normal<br>
one and one in osgeo4w?<br>
<br>
Another option would be to try the 'Docker'-way.<br>
<br>
I just build both docs and website (and translations) on a Windows 10<br>
machine, following the instructions from:<br>
<br>
<a href="https://github.com/qgis/QGIS-Website#building-the-website-using-docker" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS-Website#building-the-website-using-docker</a><br>
<br>
Only change is that boot2docker is not 'depricated', and you should use<br>
this docker-product:<br>
<br>
<a href="https://www.docker.com/products/docker-toolbox" rel="noreferrer" target="_blank">https://www.docker.com/products/docker-toolbox</a><br>
<br>
let me know if you need further help.<br>
<br>
Regards,<br>
<br>
Richard<br>
<span><br>
<br>
On 20-04-16 20:25, DelazJ wrote:<br>
> Hi,<br>
> I'm tring to build QGIS-website with Paver<br>
</span>> <<a href="https://github.com/qgis/QGIS-Website#building-the-website-using-paver" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS-Website#building-the-website-using-paver</a>><br>
<div><div>> on Windows 10 and it fails in the earlier steps<br>
> I have easy_install installed (can find it in my<br>
> osgeo4w64/Apps/Python/Scripts folder, added to the PATH)<br>
> When I launch python bootstrap.py from my local repo folder, I get :<br>
><br>
> F:\SIG\GitHub\QGIS-Website> python bootstrap.py<br>
> PYTHONHOME is set.  You *must* activate the virtualenv before using it<br>
> New python executable in virtualenv\Scripts\python.exe<br>
> Installing setuptools..............<br>
>   Complete output from command<br>
> F:\SIG\GitHub\QGIS-W...v\Scripts\python.exe -c "#!python<br>
> \"\"\"Bootstra...sys.argv[1:])<br>
><br>
><br>
> " --always-copy -U setuptools:<br>
>   Traceback (most recent call last):<br>
>   File "<string>", line 278, in <module><br>
>   File "<string>", line 210, in main<br>
>   File "<string>", line 132, in download_setuptools<br>
>   File "C:\OSGeo4W64\apps\Python27\Lib\urllib2.py", line 94, in <module><br>
>     import httplib<br>
>   File "C:\OSGeo4W64\apps\Python27\Lib\httplib.py", line 71, in <module><br>
>     import socket<br>
>   File "C:\OSGeo4W64\apps\Python27\Lib\socket.py", line 47, in <module><br>
>     import _socket<br>
> ImportError: No module named _socket<br>
> ----------------------------------------<br>
> ...Installing setuptools...done.<br>
> Traceback (most recent call last):<br>
>   File "bootstrap.py", line 2601, in <module><br>
>     main()<br>
>   File "bootstrap.py", line 981, in main<br>
>     no_pip=options.no_pip)<br>
>   File "bootstrap.py", line 1093, in create_environment<br>
>     search_dirs=search_dirs, never_download=never_download)<br>
>   File "bootstrap.py", line 613, in install_setuptools<br>
>     search_dirs=search_dirs, never_download=never_download)<br>
>   File "bootstrap.py", line 585, in _install_req<br>
>     cwd=cwd)<br>
>   File "bootstrap.py", line 1059, in call_subprocess<br>
>     % (cmd_desc, proc.returncode))<br>
> OSError: Command F:\SIG\GitHub\QGIS-W...v\Scripts\python.exe -c "#!python<br>
> \"\"\"Bootstra...sys.argv[1:])<br>
><br>
><br>
> " --always-copy -U setuptools failed with error code 1<br>
> F:\SIG\GitHub\QGIS-Website><br>
><br>
> Can someone explain what's wrong, please?<br>
><br>
> Thanks,<br>
> H.<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
><br>
<br>
</blockquote></div><br></div></div></div></div>