[GeoNode-users] Try to create a geonode's app into Windows OS

Jeffrey Johnson ortelius at gmail.com
Wed Jun 1 10:16:27 PDT 2016


I dont know much about setting things up on windows, but check here
for some info on this error.

http://stackoverflow.com/questions/1271337/importerror-no-module-named-py2exe

Looks like you only need to install py2exe properly before running this setup

https://sourceforge.net/projects/py2exe/

On Wed, Jun 1, 2016 at 10:14 AM, Carlo Di Michele
<carlo.dimichele at gmail.com> wrote:
> Hello Jeffrey,
> I suppose I did a big mess :(
>
> I explain my "windows" translation of the linux instructions
>
> $ apt-get install python-django
> In the Admin prompt (maybe I did also this mistake) I did:
> C:\>C:\GeoNode-2.4.x\Python27\Scripts\pip install Django
> It worked and created django-admin.exe inside
> C:\GeoNode-2.4.x\Python27\Scripts
>
> $ django-admin startproject my_geonode
> --template=https://github.com/GeoNode/geonode-project/archive/master.zip
> -epy,rst
> C:\GeoNode-2.4.x\geoNode-2.4.x\geonode>"C:\GeoNode-2.4.x\Python27\Scripts\django-admin
> startproject geoworld
> --template=https://github.com/GeoNode/geonode-project/archive/master.zip
> -epy,rst"
> It Worked and create a folder geoworld with many files
>
> $ cd my_geonode
> cd geoworld
>
> $ sudo pip install -e .
> C:\GeoNode-2.4.x\geoNode-2.4.x\geonode\geoworld>"C:\GeoNode-2.4.x\Python27\Scripts\pip
> install -e .
> Error during installation
>
> C:\GeoNode-2.4.x\geonode-2.4.x\geonode\geoworld>C:\GeoNode-2.4.x\Python27\Scripts\pip
> install -e .
> You are using pip version 7.0.1, however version 8.1.2 is available.
> You should consider upgrading via the 'pip install --upgrade pip' command.
> Obtaining file:///C:/GeoNode-2.4.x/geonode-2.4.x/geonode/geoworld
> Collecting django-tastypie==0.11.0 (from geoworld==0.2)
>   Downloading django_tastypie-0.11.0-py2.py3-none-any.whl (74kB)
>     100% |################################| 77kB 1.3MB/s
> Collecting geonode==2.4 (from geoworld==0.2)
>   Downloading GeoNode-2.4.tar.gz (4.0MB)
>     100% |################################| 4.0MB 92kB/s
> Collecting python-dateutil!=2.0,>=1.5 (from
> django-tastypie==0.11.0->geoworld==0.2)
>   Downloading python_dateutil-2.5.3-py2.py3-none-any.whl (201kB)
>     100% |################################| 204kB 303kB/s
> Collecting python-mimeparse>=0.1.4 (from
> django-tastypie==0.11.0->geoworld==0.2)
>   Downloading python-mimeparse-1.5.2.tar.gz
> Collecting pillow (from geonode==2.4->geoworld==0.2)
>   Downloading Pillow-3.2.0-cp27-none-win32.whl (1.2MB)
>     100% |################################| 1.2MB 147kB/s
> Collecting lxml (from geonode==2.4->geoworld==0.2)
>   Downloading lxml-3.6.0-cp27-none-win32.whl (3.0MB)
>     100% |################################| 3.0MB 121kB/s
> Collecting Django==1.6.11 (from geonode==2.4->geoworld==0.2)
>   Downloading Django-1.6.11-py2.py3-none-any.whl (6.7MB)
>     100% |################################| 6.7MB 57kB/s
> Collecting beautifulsoup4==4.2.1 (from geonode==2.4->geoworld==0.2)
>   Downloading beautifulsoup4-4.2.1.tar.gz (64kB)
>     100% |################################| 65kB 211kB/s
> Collecting MultipartPostHandler==0.1.0 (from geonode==2.4->geoworld==0.2)
>   Downloading MultipartPostHandler-0.1.0.tar.gz
> Collecting httplib2==0.8 (from geonode==2.4->geoworld==0.2)
>   Downloading httplib2-0.8.zip (116kB)
>     100% |################################| 118kB 183kB/s
> Collecting transifex-client==0.10 (from geonode==2.4->geoworld==0.2)
>   Downloading transifex-client-0.10.tar.gz (68kB)
>     100% |################################| 69kB 200kB/s
>     Complete output from command python setup.py egg_info:
>     Traceback (most recent call last):
>       File "<string>", line 20, in <module>
>       File
> "c:\users\home\appdata\local\temp\pip-build-ml3h61\transifex-client\setup.py",
> line 28, in <module>
>         import py2exe
>     ImportError: No module named py2exe
>
>     ----------------------------------------
> Command "python setup.py egg_info" failed with error code 1 in
> c:\users\home\appdata\local\temp\pip-build-ml3h61\transifex-client
>
> C:\GeoNode-2.4.x\geonode-2.4.x\geonode\geoworld>
>
> I couldn't run the command "$ python manage.py syncdb"
>
> I did a big mess with paths? :-(((
>
> Thank you for your support and best regards
>
> Carlo
>
>
>
> 2016-05-16 17:09 GMT+01:00 Jeffrey Johnson <ortelius at gmail.com>:
>>
>> Hi Carlo,
>>
>> Running this command inside the python shell wont work. You need to a)
>> pip install Django b) run this command at the normal shell (cmd
>> prompt). If there are no problems with a) then b) should work.
>>
>> Let us know if you run into further problems.
>>
>> Jeff
>>
>> On Mon, May 16, 2016 at 7:34 AM, Carlo Di Michele
>> <carlo.dimichele at gmail.com> wrote:
>> > Hello,
>> > I'm trying to create a geonode app into Windows OS.
>> >
>> > I'm trying to follows the linux procedure
>> >
>> > http://docs.geonode.org/en/master/tutorials/admin/customize_lookfeel/customize/setup_admin.html#setup-admin
>> >
>> > The problem that I face is:
>> >
>> > $ Install python-django
>> >
>> > I can't find any python-django file anywhere in my installation so I did
>> > in
>> > this way:
>> >
>> > 1) I've run python
>> > C:\GeoNode-2.4.x\geonode-2.4.x\geonode\geoworld>python
>> > Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit
>> > (AMD64)] on
>> > win32
>> > Type "help", "copyright", "credits" or "license" for more information.
>> >>>>
>> >
>> > 2) inside python terminal I typed
>> >>>>
>> >>>> C:\GeoNode-2.4.x\geonode-2.4.x\Lib\site-packages\django\bin\django-admin
>> >>>> startproject my_geonode
>> >>>>
>> >>>> --template=https://github.com/GeoNode/geonode-project/archive/master.zip
>> >>>> -epy,rst
>> >      ^
>> > SyntaxError: invalid syntax
>> >
>> > Any hints?
>> >
>> > Thanks
>> > Carlo
>> >
>> >
>> >
>> > _______________________________________________
>> > geonode-users mailing list
>> > geonode-users at lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/geonode-users
>> >
>
>


More information about the geonode-users mailing list