[Qgis-developer] Unable to build QGIS-Website with Paver

DelazJ delazj at gmail.com
Sun May 1 23:09:52 PDT 2016


Hi,

Richard, thanks for your answer!
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.
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!
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 :) )

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.
Any idea how I can build a pdf doc locally? Trying _paver pdf_ complains
about missing gdbm and a pip install gdbm states:
*could not find a version that satisfied the requirement gdbm (version: )
No matching distribution found for gdbm*
and internet is no more prolific

Thanks for any other help..
Harrissou


2016-04-27 16:56 GMT+02:00 Richard Duivenvoorde <rdmailings at duif.net>:

>
> Hi,
>
> Googling I found this
>
> https://github.com/pypa/virtualenv/issues/72
>
> and there they say:
>
> In case someone else is looking at this, make sure "C:\[PythonDir]\DLLs"
> is in your pythonpath environment variable, NOT your path variable.
>
> In your case maybe the problem is maybe two python installs? One normal
> one and one in osgeo4w?
>
> Another option would be to try the 'Docker'-way.
>
> I just build both docs and website (and translations) on a Windows 10
> machine, following the instructions from:
>
> https://github.com/qgis/QGIS-Website#building-the-website-using-docker
>
> Only change is that boot2docker is not 'depricated', and you should use
> this docker-product:
>
> https://www.docker.com/products/docker-toolbox
>
> let me know if you need further help.
>
> Regards,
>
> Richard
>
>
> On 20-04-16 20:25, DelazJ wrote:
> > Hi,
> > I'm tring to build QGIS-website with Paver
> > <https://github.com/qgis/QGIS-Website#building-the-website-using-paver>
> > on Windows 10 and it fails in the earlier steps
> > I have easy_install installed (can find it in my
> > osgeo4w64/Apps/Python/Scripts folder, added to the PATH)
> > When I launch python bootstrap.py from my local repo folder, I get :
> >
> > F:\SIG\GitHub\QGIS-Website> python bootstrap.py
> > PYTHONHOME is set.  You *must* activate the virtualenv before using it
> > New python executable in virtualenv\Scripts\python.exe
> > Installing setuptools..............
> >   Complete output from command
> > F:\SIG\GitHub\QGIS-W...v\Scripts\python.exe -c "#!python
> > \"\"\"Bootstra...sys.argv[1:])
> >
> >
> > " --always-copy -U setuptools:
> >   Traceback (most recent call last):
> >   File "<string>", line 278, in <module>
> >   File "<string>", line 210, in main
> >   File "<string>", line 132, in download_setuptools
> >   File "C:\OSGeo4W64\apps\Python27\Lib\urllib2.py", line 94, in <module>
> >     import httplib
> >   File "C:\OSGeo4W64\apps\Python27\Lib\httplib.py", line 71, in <module>
> >     import socket
> >   File "C:\OSGeo4W64\apps\Python27\Lib\socket.py", line 47, in <module>
> >     import _socket
> > ImportError: No module named _socket
> > ----------------------------------------
> > ...Installing setuptools...done.
> > Traceback (most recent call last):
> >   File "bootstrap.py", line 2601, in <module>
> >     main()
> >   File "bootstrap.py", line 981, in main
> >     no_pip=options.no_pip)
> >   File "bootstrap.py", line 1093, in create_environment
> >     search_dirs=search_dirs, never_download=never_download)
> >   File "bootstrap.py", line 613, in install_setuptools
> >     search_dirs=search_dirs, never_download=never_download)
> >   File "bootstrap.py", line 585, in _install_req
> >     cwd=cwd)
> >   File "bootstrap.py", line 1059, in call_subprocess
> >     % (cmd_desc, proc.returncode))
> > OSError: Command F:\SIG\GitHub\QGIS-W...v\Scripts\python.exe -c "#!python
> > \"\"\"Bootstra...sys.argv[1:])
> >
> >
> > " --always-copy -U setuptools failed with error code 1
> > F:\SIG\GitHub\QGIS-Website>
> >
> > Can someone explain what's wrong, please?
> >
> > Thanks,
> > H.
> >
> >
> > _______________________________________________
> > Qgis-developer mailing list
> > Qgis-developer at lists.osgeo.org
> > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160502/6f5e4e84/attachment.html>


More information about the Qgis-developer mailing list