librelist archives

« back to archive

help building GeoNode on mac

help building GeoNode on mac

From:
Chris Holmes
Date:
2010-08-05 @ 02:51
I'm trying to build GeoNode on snow leopard, and I get this error:

cholmess-MacBook-Pro:geonode cholmes$ python bootstrap.py --no-site-packages
New python executable in ./bin/python
Error [Errno 2] No such file or directory while executing command 
install_name_tool -change /System/Library/Frameworks/Pyt...ython 
@executable_path/../.Python ./bin/python
Could not call install_name_tool -- you must have Apple's development 
tools installed
Traceback (most recent call last):
   File "bootstrap.py", line 1504, in <module>
     main()
   File "bootstrap.py", line 528, in main
     use_distribute=options.use_distribute)
   File "bootstrap.py", line 611, in create_environment
     site_packages=site_packages, clear=clear))
   File "bootstrap.py", line 805, in install_python
     py_executable])
   File "bootstrap.py", line 556, in call_subprocess
     cwd=cwd, env=env)
   File 

"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py",

line 595, in __init__
   File 

"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py",

line 1106, in _execute_child
OSError: [Errno 2] No such file or directory


I tried installing other versions of python, but it didn't work.  Next 
step I suppose is to build from source, but anyone else have an easier 
way to get it on?

thanks,

C

Re: [geonode] help building GeoNode on mac

From:
Andreas Hocevar
Date:
2010-08-05 @ 06:32
Hey Chris,

you have to install Xcode (Apple Developer Tools) from the CD that ships 
with your Mac.

Regards,
Andreas.

On Aug 5, 2010, at 04:51 , Chris Holmes wrote:

> I'm trying to build GeoNode on snow leopard, and I get this error:
> 
> cholmess-MacBook-Pro:geonode cholmes$ python bootstrap.py --no-site-packages
> New python executable in ./bin/python
> Error [Errno 2] No such file or directory while executing command 
> install_name_tool -change /System/Library/Frameworks/Pyt...ython 
> @executable_path/../.Python ./bin/python
> Could not call install_name_tool -- you must have Apple's development 
> tools installed
> Traceback (most recent call last):
>   File "bootstrap.py", line 1504, in <module>
>     main()
>   File "bootstrap.py", line 528, in main
>     use_distribute=options.use_distribute)
>   File "bootstrap.py", line 611, in create_environment
>     site_packages=site_packages, clear=clear))
>   File "bootstrap.py", line 805, in install_python
>     py_executable])
>   File "bootstrap.py", line 556, in call_subprocess
>     cwd=cwd, env=env)
>   File 
> 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py",

> line 595, in __init__
>   File 
> 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py",

> line 1106, in _execute_child
> OSError: [Errno 2] No such file or directory
> 
> 
> I tried installing other versions of python, but it didn't work.  Next 
> step I suppose is to build from source, but anyone else have an easier 
> way to get it on?
> 
> thanks,
> 
> C

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

Re: [geonode] help building GeoNode on mac

From:
Chris Holmes
Date:
2010-08-06 @ 00:05
That didn't work.

Seb also suggested that I do run jetty independently, as sometimes the
main thing will stop if jetty takes awhile to start.

I did that, but when I tried to go to GeoServer I got a stack trace
where the ultimate cause was 'Error connecting to GeoNode authentication
server: Connection refused', but the GeoNode authentication server
wasn't running, since I was trying to start jetty first.  If I tried
GeoNetwork I got out of memory errors.

I'll try out increasing the memory, and starting up django right after I
get jetty running (though I'm pretty sure I did, and it did fail).  It's
the same error as before.

thanks,

C

On 8/5/10 5:26 PM, David Winslow wrote:
> I have also seen this error when the GeoServer data directory has gotten
> messed up somehow. Perhaps "paver clean=true setup_webapps" will bring
> you back to a good state.
>
> --
> David Winslow
> OpenGeo - http://opengeo.org/
>
> On 08/05/2010 05:23 PM, Chris Holmes wrote:
>> Pretty sure I did, the lines right above the ones I pasted:
>>
>> django-admin.py createsuperuser --settings=capra.settings
>> Username (Leave blank to use 'cholmes'): admin
>> E-mail address: cholmes@opengeo.org
>> Password:
>> Password (again):
>> Superuser created successfully.
>>
>>
>> On 8/5/10 4:24 PM, Luke Tucker wrote:
>>> Did you create an administrative user using django-admin?
>>> This step is a recent addition to the setup process.
>>>
>>> - Luke
>>>
>>>
>>> On Thu, Aug 5, 2010 at 3:46 PM, Chris Holmes<cholmes@opengeo.org
>>> <mailto:cholmes@opengeo.org>> wrote:
>>>
>>> Ok, installed Xcode, which got me further. Then hit this on the
>>> last step:
>>>
>>> cholmess-MacBook-Pro:geonode cholmes$ paver host
>>> ---> pavement.auto
>>> ---> pavement.host
>>> cd src/geoserver-geonode-ext
>>> cd /Users/cholmes/geonode
>>> Django is starting up, please wait...
>>> Logging servlet output to jetty.log and django output to django.log...
>>> Jetty is starting up, please wait...
>>> django-admin.py updatelayers --settings=capra.settings
>>> Traceback (most recent call last):
>>> File "/Users/cholmes/geonode/bin/django-admin.py", line 5, in
>>> <module>
>>> management.execute_from_command_line()
>>> File
>>> 
"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/__init__.py",
>>>
>>> line 429, in execute_from_command_line
>>> utility.execute()
>>> File
>>> 
"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/__init__.py",
>>>
>>> line 379, in execute
>>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>> File
>>> 
"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/base.py",
>>>
>>> line 191, in run_from_argv
>>> self.execute(*args, **options.__dict__)
>>> File
>>> 
"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/base.py",
>>>
>>> line 218, in execute
>>> output = self.handle(*args, **options)
>>> File
>>> 
"/Users/cholmes/geonode/src/GeoNodePy/geonode/maps/management/commands/updatelayers.py",
>>>
>>> line 11, in handle
>>> Layer.objects.slurp()
>>> File "/Users/cholmes/geonode/src/GeoNodePy/geonode/maps/models.py",
>>> line 564, in slurp
>>> for resource in cat.get_resources():
>>> File
>>> "/Users/cholmes/geonode/src/gsconfig.py/src/geoserver/catalog.py
>>> <http://gsconfig.py/src/geoserver/catalog.py>", line
>>> 210, in get_resources
>>> for ws in self.get_workspaces():
>>> File
>>> "/Users/cholmes/geonode/src/gsconfig.py/src/geoserver/catalog.py
>>> <http://gsconfig.py/src/geoserver/catalog.py>", line
>>> 265, in get_workspaces
>>> return [Workspace(self, node) for node in
>>> description.findall("workspace")]
>>> AttributeError: 'NoneType' object has no attribute 'findall'
>>>
>>> Shutting down...
>>>
>>>
>>> On 8/5/10 2:32 AM, Andreas Hocevar wrote:
>>> > Hey Chris,
>>> >
>>> > you have to install Xcode (Apple Developer Tools) from the CD
>>> that ships with your Mac.
>>> >
>>> > Regards,
>>> > Andreas.
>>> >
>>> > On Aug 5, 2010, at 04:51 , Chris Holmes wrote:
>>> >
>>> >> I'm trying to build GeoNode on snow leopard, and I get this error:
>>> >>
>>> >> cholmess-MacBook-Pro:geonode cholmes$ python bootstrap.py
>>> --no-site-packages
>>> >> New python executable in ./bin/python
>>> >> Error [Errno 2] No such file or directory while executing command
>>> >> install_name_tool -change /System/Library/Frameworks/Pyt...ython
>>> >> @executable_path/../.Python ./bin/python
>>> >> Could not call install_name_tool -- you must have Apple's
>>> development
>>> >> tools installed
>>> >> Traceback (most recent call last):
>>> >> File "bootstrap.py", line 1504, in<module>
>>> >> main()
>>> >> File "bootstrap.py", line 528, in main
>>> >> use_distribute=options.use_distribute)
>>> >> File "bootstrap.py", line 611, in create_environment
>>> >> site_packages=site_packages, clear=clear))
>>> >> File "bootstrap.py", line 805, in install_python
>>> >> py_executable])
>>> >> File "bootstrap.py", line 556, in call_subprocess
>>> >> cwd=cwd, env=env)
>>> >> File
>>> >>
>>> 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py",
>>>
>>> >> line 595, in __init__
>>> >> File
>>> >>
>>> 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py",
>>>
>>> >> line 1106, in _execute_child
>>> >> OSError: [Errno 2] No such file or directory
>>> >>
>>> >>
>>> >> I tried installing other versions of python, but it didn't work.
>>> Next
>>> >> step I suppose is to build from source, but anyone else have an
>>> easier
>>> >> way to get it on?
>>> >>
>>> >> thanks,
>>> >>
>>> >> C
>>> >
>>>
>>>
>

Re: [geonode] help building GeoNode on mac

From:
Gabriel Roldan
Date:
2010-08-06 @ 13:11
First run the django server like this:
paster serve --reload shared/dev-paste.ini

Then on another terminal, go to src/geoserver-geonode-ext and run jetty 
with the startup.sh script that's in there, in order to avoid the 
GeoNetwork out of memory problem. It's a known issue with geonetwork.


Hope that helps,
Gabriel

On 8/5/10 9:05 PM, Chris Holmes wrote:
> That didn't work.
>
> Seb also suggested that I do run jetty independently, as sometimes the
> main thing will stop if jetty takes awhile to start.
>
> I did that, but when I tried to go to GeoServer I got a stack trace
> where the ultimate cause was 'Error connecting to GeoNode authentication
> server: Connection refused', but the GeoNode authentication server
> wasn't running, since I was trying to start jetty first.  If I tried
> GeoNetwork I got out of memory errors.
>
> I'll try out increasing the memory, and starting up django right after I
> get jetty running (though I'm pretty sure I did, and it did fail).  It's
> the same error as before.
>
> thanks,
>
> C

Re: [geonode] help building GeoNode on mac

From:
Chris Holmes
Date:
2010-08-06 @ 13:28
Ok, that made a bit more progress.  I can go to GeoNetwork without OOM 
errors.  GeoServer still bombs while trying to request authorization. 
If I go to localhost:8000 though I get this error:

TemplateSyntaxError at /

Caught ViewDoesNotExist while rendering: Could not import 
geonode.maps.views. Error was: Could not find the GEOS library (tried 
"geos_c", "GEOS"). Try setting GEOS_LIBRARY_PATH in your settings.

Request Method: 	GET
Request URL: 	http://localhost:8000/
Django Version: 	1.2
Exception Type: 	TemplateSyntaxError
Exception Value: 	

Caught ViewDoesNotExist while rendering: Could not import 
geonode.maps.views. Error was: Could not find the GEOS library (tried 
"geos_c", "GEOS"). Try setting GEOS_LIBRARY_PATH in your settings.

****

So I guess I need to install GEOS?  Or is the build supposed to have 
done that already?

On 8/6/10 9:11 AM, Gabriel Roldan wrote:
> First run the django server like this:
> paster serve --reload shared/dev-paste.ini
>
> Then on another terminal, go to src/geoserver-geonode-ext and run jetty
> with the startup.sh script that's in there, in order to avoid the
> GeoNetwork out of memory problem. It's a known issue with geonetwork.
>
>
> Hope that helps,
> Gabriel
>
> On 8/5/10 9:05 PM, Chris Holmes wrote:
>> That didn't work.
>>
>> Seb also suggested that I do run jetty independently, as sometimes the
>> main thing will stop if jetty takes awhile to start.
>>
>> I did that, but when I tried to go to GeoServer I got a stack trace
>> where the ultimate cause was 'Error connecting to GeoNode authentication
>> server: Connection refused', but the GeoNode authentication server
>> wasn't running, since I was trying to start jetty first.  If I tried
>> GeoNetwork I got out of memory errors.
>>
>> I'll try out increasing the memory, and starting up django right after I
>> get jetty running (though I'm pretty sure I did, and it did fail).  It's
>> the same error as before.
>>
>> thanks,
>>
>> C

Re: [geonode] help building GeoNode on mac

From:
David Winslow
Date:
2010-08-06 @ 13:30
No, the build doesn't install geos for you.  I neglected to update the 
readme when we added this dependency.

-d

On 08/06/2010 09:28 AM, Chris Holmes wrote:
> Ok, that made a bit more progress.  I can go to GeoNetwork without OOM
> errors.  GeoServer still bombs while trying to request authorization.
> If I go to localhost:8000 though I get this error:
>
> TemplateSyntaxError at /
>
> Caught ViewDoesNotExist while rendering: Could not import
> geonode.maps.views. Error was: Could not find the GEOS library (tried
> "geos_c", "GEOS"). Try setting GEOS_LIBRARY_PATH in your settings.
>
> Request Method: 	GET
> Request URL: 	http://localhost:8000/
> Django Version: 	1.2
> Exception Type: 	TemplateSyntaxError
> Exception Value: 	
>
> Caught ViewDoesNotExist while rendering: Could not import
> geonode.maps.views. Error was: Could not find the GEOS library (tried
> "geos_c", "GEOS"). Try setting GEOS_LIBRARY_PATH in your settings.
>
> ****
>
> So I guess I need to install GEOS?  Or is the build supposed to have
> done that already?
>
> On 8/6/10 9:11 AM, Gabriel Roldan wrote:
>    
>> First run the django server like this:
>> paster serve --reload shared/dev-paste.ini
>>
>> Then on another terminal, go to src/geoserver-geonode-ext and run jetty
>> with the startup.sh script that's in there, in order to avoid the
>> GeoNetwork out of memory problem. It's a known issue with geonetwork.
>>
>>
>> Hope that helps,
>> Gabriel
>>
>> On 8/5/10 9:05 PM, Chris Holmes wrote:
>>      
>>> That didn't work.
>>>
>>> Seb also suggested that I do run jetty independently, as sometimes the
>>> main thing will stop if jetty takes awhile to start.
>>>
>>> I did that, but when I tried to go to GeoServer I got a stack trace
>>> where the ultimate cause was 'Error connecting to GeoNode authentication
>>> server: Connection refused', but the GeoNode authentication server
>>> wasn't running, since I was trying to start jetty first.  If I tried
>>> GeoNetwork I got out of memory errors.
>>>
>>> I'll try out increasing the memory, and starting up django right after I
>>> get jetty running (though I'm pretty sure I did, and it did fail).  It's
>>> the same error as before.
>>>
>>> thanks,
>>>
>>> C
>>>        

Re: [geonode] help building GeoNode on mac

From:
Gabriel Roldan
Date:
2010-08-06 @ 13:33
So I didn't got that because I had gdal and geos installed alread

I'm pretty sure I didn't install with macports, but with the MacOS 
installer from here: http://www.kyngchaos.com/software:frameworks

Gabriel

On 8/6/10 10:30 AM, David Winslow wrote:
> No, the build doesn't install geos for you.  I neglected to update the
> readme when we added this dependency.
>
> -d
>
> On 08/06/2010 09:28 AM, Chris Holmes wrote:
>> Ok, that made a bit more progress.  I can go to GeoNetwork without OOM
>> errors.  GeoServer still bombs while trying to request authorization.
>> If I go to localhost:8000 though I get this error:
>>
>> TemplateSyntaxError at /
>>
>> Caught ViewDoesNotExist while rendering: Could not import
>> geonode.maps.views. Error was: Could not find the GEOS library (tried
>> "geos_c", "GEOS"). Try setting GEOS_LIBRARY_PATH in your settings.
>>
>> Request Method: 	GET
>> Request URL: 	http://localhost:8000/
>> Django Version: 	1.2
>> Exception Type: 	TemplateSyntaxError
>> Exception Value: 	
>>
>> Caught ViewDoesNotExist while rendering: Could not import
>> geonode.maps.views. Error was: Could not find the GEOS library (tried
>> "geos_c", "GEOS"). Try setting GEOS_LIBRARY_PATH in your settings.
>>
>> ****
>>
>> So I guess I need to install GEOS?  Or is the build supposed to have
>> done that already?
>>
>> On 8/6/10 9:11 AM, Gabriel Roldan wrote:
>>
>>> First run the django server like this:
>>> paster serve --reload shared/dev-paste.ini
>>>
>>> Then on another terminal, go to src/geoserver-geonode-ext and run jetty
>>> with the startup.sh script that's in there, in order to avoid the
>>> GeoNetwork out of memory problem. It's a known issue with geonetwork.
>>>
>>>
>>> Hope that helps,
>>> Gabriel
>>>
>>> On 8/5/10 9:05 PM, Chris Holmes wrote:
>>>
>>>> That didn't work.
>>>>
>>>> Seb also suggested that I do run jetty independently, as sometimes the
>>>> main thing will stop if jetty takes awhile to start.
>>>>
>>>> I did that, but when I tried to go to GeoServer I got a stack trace
>>>> where the ultimate cause was 'Error connecting to GeoNode authentication
>>>> server: Connection refused', but the GeoNode authentication server
>>>> wasn't running, since I was trying to start jetty first.  If I tried
>>>> GeoNetwork I got out of memory errors.
>>>>
>>>> I'll try out increasing the memory, and starting up django right after I
>>>> get jetty running (though I'm pretty sure I did, and it did fail).  It's
>>>> the same error as before.
>>>>
>>>> thanks,
>>>>
>>>> C
>>>>
>


-- 
Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Re: [geonode] help building GeoNode on mac

From:
Chris Holmes
Date:
2010-08-06 @ 13:55
Woo hoo!  Got things running.  Thanks for all your help.  After 
breakfast I'll start making a demo script, and report bugs.

On 8/6/10 9:33 AM, Gabriel Roldan wrote:
> So I didn't got that because I had gdal and geos installed alread
>
> I'm pretty sure I didn't install with macports, but with the MacOS
> installer from here: http://www.kyngchaos.com/software:frameworks
>
> Gabriel
>
> On 8/6/10 10:30 AM, David Winslow wrote:
>> No, the build doesn't install geos for you.  I neglected to update the
>> readme when we added this dependency.
>>
>> -d
>>
>> On 08/06/2010 09:28 AM, Chris Holmes wrote:
>>> Ok, that made a bit more progress.  I can go to GeoNetwork without OOM
>>> errors.  GeoServer still bombs while trying to request authorization.
>>> If I go to localhost:8000 though I get this error:
>>>
>>> TemplateSyntaxError at /
>>>
>>> Caught ViewDoesNotExist while rendering: Could not import
>>> geonode.maps.views. Error was: Could not find the GEOS library (tried
>>> "geos_c", "GEOS"). Try setting GEOS_LIBRARY_PATH in your settings.
>>>
>>> Request Method: 	GET
>>> Request URL: 	http://localhost:8000/
>>> Django Version: 	1.2
>>> Exception Type: 	TemplateSyntaxError
>>> Exception Value: 	
>>>
>>> Caught ViewDoesNotExist while rendering: Could not import
>>> geonode.maps.views. Error was: Could not find the GEOS library (tried
>>> "geos_c", "GEOS"). Try setting GEOS_LIBRARY_PATH in your settings.
>>>
>>> ****
>>>
>>> So I guess I need to install GEOS?  Or is the build supposed to have
>>> done that already?
>>>
>>> On 8/6/10 9:11 AM, Gabriel Roldan wrote:
>>>
>>>> First run the django server like this:
>>>> paster serve --reload shared/dev-paste.ini
>>>>
>>>> Then on another terminal, go to src/geoserver-geonode-ext and run jetty
>>>> with the startup.sh script that's in there, in order to avoid the
>>>> GeoNetwork out of memory problem. It's a known issue with geonetwork.
>>>>
>>>>
>>>> Hope that helps,
>>>> Gabriel
>>>>
>>>> On 8/5/10 9:05 PM, Chris Holmes wrote:
>>>>
>>>>> That didn't work.
>>>>>
>>>>> Seb also suggested that I do run jetty independently, as sometimes the
>>>>> main thing will stop if jetty takes awhile to start.
>>>>>
>>>>> I did that, but when I tried to go to GeoServer I got a stack trace
>>>>> where the ultimate cause was 'Error connecting to GeoNode authentication
>>>>> server: Connection refused', but the GeoNode authentication server
>>>>> wasn't running, since I was trying to start jetty first.  If I tried
>>>>> GeoNetwork I got out of memory errors.
>>>>>
>>>>> I'll try out increasing the memory, and starting up django right after I
>>>>> get jetty running (though I'm pretty sure I did, and it did fail).  It's
>>>>> the same error as before.
>>>>>
>>>>> thanks,
>>>>>
>>>>> C
>>>>>
>>
>
>

Re: [geonode] help building GeoNode on mac

From:
Chris Holmes
Date:
2010-08-05 @ 19:46
Ok, installed Xcode, which got me further.  Then hit this on the last step:

cholmess-MacBook-Pro:geonode cholmes$ paver host
---> pavement.auto
---> pavement.host
cd src/geoserver-geonode-ext
cd /Users/cholmes/geonode
Django is starting up, please wait...
Logging servlet output to jetty.log and django output to django.log...
Jetty is starting up, please wait...
django-admin.py updatelayers --settings=capra.settings
Traceback (most recent call last):
   File "/Users/cholmes/geonode/bin/django-admin.py", line 5, in <module>
     management.execute_from_command_line()
   File 

"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/__init__.py",

line 429, in execute_from_command_line
     utility.execute()
   File 

"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/__init__.py",

line 379, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
   File 

"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/base.py",

line 191, in run_from_argv
     self.execute(*args, **options.__dict__)
   File 

"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/base.py",

line 218, in execute
     output = self.handle(*args, **options)
   File 

"/Users/cholmes/geonode/src/GeoNodePy/geonode/maps/management/commands/updatelayers.py",

line 11, in handle
     Layer.objects.slurp()
   File "/Users/cholmes/geonode/src/GeoNodePy/geonode/maps/models.py", 
line 564, in slurp
     for resource in cat.get_resources():
   File 
"/Users/cholmes/geonode/src/gsconfig.py/src/geoserver/catalog.py", line 
210, in get_resources
     for ws in self.get_workspaces():
   File 
"/Users/cholmes/geonode/src/gsconfig.py/src/geoserver/catalog.py", line 
265, in get_workspaces
     return [Workspace(self, node) for node in 
description.findall("workspace")]
AttributeError: 'NoneType' object has no attribute 'findall'

Shutting down...


On 8/5/10 2:32 AM, Andreas Hocevar wrote:
> Hey Chris,
>
> you have to install Xcode (Apple Developer Tools) from the CD that ships
with your Mac.
>
> Regards,
> Andreas.
>
> On Aug 5, 2010, at 04:51 , Chris Holmes wrote:
>
>> I'm trying to build GeoNode on snow leopard, and I get this error:
>>
>> cholmess-MacBook-Pro:geonode cholmes$ python bootstrap.py --no-site-packages
>> New python executable in ./bin/python
>> Error [Errno 2] No such file or directory while executing command
>> install_name_tool -change /System/Library/Frameworks/Pyt...ython
>> @executable_path/../.Python ./bin/python
>> Could not call install_name_tool -- you must have Apple's development
>> tools installed
>> Traceback (most recent call last):
>>    File "bootstrap.py", line 1504, in<module>
>>      main()
>>    File "bootstrap.py", line 528, in main
>>      use_distribute=options.use_distribute)
>>    File "bootstrap.py", line 611, in create_environment
>>      site_packages=site_packages, clear=clear))
>>    File "bootstrap.py", line 805, in install_python
>>      py_executable])
>>    File "bootstrap.py", line 556, in call_subprocess
>>      cwd=cwd, env=env)
>>    File
>> 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py",
>> line 595, in __init__
>>    File
>> 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py",
>> line 1106, in _execute_child
>> OSError: [Errno 2] No such file or directory
>>
>>
>> I tried installing other versions of python, but it didn't work.  Next
>> step I suppose is to build from source, but anyone else have an easier
>> way to get it on?
>>
>> thanks,
>>
>> C
>

Re: [geonode] help building GeoNode on mac

From:
Luke Tucker
Date:
2010-08-05 @ 20:24
Did you create an administrative user using django-admin?
This step is a recent addition to the setup process.

- Luke


On Thu, Aug 5, 2010 at 3:46 PM, Chris Holmes <cholmes@opengeo.org> wrote:

> Ok, installed Xcode, which got me further.  Then hit this on the last step:
>
> cholmess-MacBook-Pro:geonode cholmes$ paver host
> ---> pavement.auto
> ---> pavement.host
> cd src/geoserver-geonode-ext
> cd /Users/cholmes/geonode
> Django is starting up, please wait...
> Logging servlet output to jetty.log and django output to django.log...
> Jetty is starting up, please wait...
> django-admin.py updatelayers --settings=capra.settings
> Traceback (most recent call last):
>    File "/Users/cholmes/geonode/bin/django-admin.py", line 5, in <module>
>     management.execute_from_command_line()
>   File
>
> 
"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 429, in execute_from_command_line
>     utility.execute()
>   File
>
> 
"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 379, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
>
> 
"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/base.py",
> line 191, in run_from_argv
>     self.execute(*args, **options.__dict__)
>   File
>
> 
"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/base.py",
> line 218, in execute
>     output = self.handle(*args, **options)
>   File
>
> 
"/Users/cholmes/geonode/src/GeoNodePy/geonode/maps/management/commands/updatelayers.py",
> line 11, in handle
>     Layer.objects.slurp()
>   File "/Users/cholmes/geonode/src/GeoNodePy/geonode/maps/models.py",
> line 564, in slurp
>     for resource in cat.get_resources():
>   File
> "/Users/cholmes/geonode/src/gsconfig.py/src/geoserver/catalog.py", line
> 210, in get_resources
>     for ws in self.get_workspaces():
>   File
> "/Users/cholmes/geonode/src/gsconfig.py/src/geoserver/catalog.py", line
> 265, in get_workspaces
>     return [Workspace(self, node) for node in
> description.findall("workspace")]
> AttributeError: 'NoneType' object has no attribute 'findall'
>
> Shutting down...
>
>
> On 8/5/10 2:32 AM, Andreas Hocevar wrote:
> > Hey Chris,
> >
> > you have to install Xcode (Apple Developer Tools) from the CD that ships
> with your Mac.
> >
> > Regards,
> > Andreas.
> >
> > On Aug 5, 2010, at 04:51 , Chris Holmes wrote:
> >
> >> I'm trying to build GeoNode on snow leopard, and I get this error:
> >>
> >> cholmess-MacBook-Pro:geonode cholmes$ python bootstrap.py
> --no-site-packages
> >> New python executable in ./bin/python
> >> Error [Errno 2] No such file or directory while executing command
> >> install_name_tool -change /System/Library/Frameworks/Pyt...ython
> >> @executable_path/../.Python ./bin/python
> >> Could not call install_name_tool -- you must have Apple's development
> >> tools installed
> >> Traceback (most recent call last):
> >>    File "bootstrap.py", line 1504, in<module>
> >>      main()
> >>    File "bootstrap.py", line 528, in main
> >>      use_distribute=options.use_distribute)
> >>    File "bootstrap.py", line 611, in create_environment
> >>      site_packages=site_packages, clear=clear))
> >>    File "bootstrap.py", line 805, in install_python
> >>      py_executable])
> >>    File "bootstrap.py", line 556, in call_subprocess
> >>      cwd=cwd, env=env)
> >>    File
> >>
> 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py",
> >> line 595, in __init__
> >>    File
> >>
> 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py",
> >> line 1106, in _execute_child
> >> OSError: [Errno 2] No such file or directory
> >>
> >>
> >> I tried installing other versions of python, but it didn't work.  Next
> >> step I suppose is to build from source, but anyone else have an easier
> >> way to get it on?
> >>
> >> thanks,
> >>
> >> C
> >
>

Re: [geonode] help building GeoNode on mac

From:
Chris Holmes
Date:
2010-08-05 @ 21:23
Pretty sure I did, the lines right above the ones I pasted:

django-admin.py createsuperuser --settings=capra.settings
Username (Leave blank to use 'cholmes'): admin
E-mail address: cholmes@opengeo.org
Password:
Password (again):
Superuser created successfully.


On 8/5/10 4:24 PM, Luke Tucker wrote:
> Did you create an administrative user using django-admin?
> This step is a recent addition to the setup process.
>
> - Luke
>
>
> On Thu, Aug 5, 2010 at 3:46 PM, Chris Holmes <cholmes@opengeo.org
> <mailto:cholmes@opengeo.org>> wrote:
>
>     Ok, installed Xcode, which got me further.  Then hit this on the
>     last step:
>
>     cholmess-MacBook-Pro:geonode cholmes$ paver host
>     ---> pavement.auto
>     ---> pavement.host
>     cd src/geoserver-geonode-ext
>     cd /Users/cholmes/geonode
>     Django is starting up, please wait...
>     Logging servlet output to jetty.log and django output to django.log...
>     Jetty is starting up, please wait...
>     django-admin.py updatelayers --settings=capra.settings
>     Traceback (most recent call last):
>        File "/Users/cholmes/geonode/bin/django-admin.py", line 5, in
>     <module>
>          management.execute_from_command_line()
>        File
>     
"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/__init__.py",
>     line 429, in execute_from_command_line
>          utility.execute()
>        File
>     
"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/__init__.py",
>     line 379, in execute
>          self.fetch_command(subcommand).run_from_argv(self.argv)
>        File
>     
"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/base.py",
>     line 191, in run_from_argv
>          self.execute(*args, **options.__dict__)
>        File
>     
"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/base.py",
>     line 218, in execute
>          output = self.handle(*args, **options)
>        File
>     
"/Users/cholmes/geonode/src/GeoNodePy/geonode/maps/management/commands/updatelayers.py",
>     line 11, in handle
>          Layer.objects.slurp()
>        File "/Users/cholmes/geonode/src/GeoNodePy/geonode/maps/models.py",
>     line 564, in slurp
>          for resource in cat.get_resources():
>        File
>     "/Users/cholmes/geonode/src/gsconfig.py/src/geoserver/catalog.py
>     <http://gsconfig.py/src/geoserver/catalog.py>", line
>     210, in get_resources
>          for ws in self.get_workspaces():
>        File
>     "/Users/cholmes/geonode/src/gsconfig.py/src/geoserver/catalog.py
>     <http://gsconfig.py/src/geoserver/catalog.py>", line
>     265, in get_workspaces
>          return [Workspace(self, node) for node in
>     description.findall("workspace")]
>     AttributeError: 'NoneType' object has no attribute 'findall'
>
>     Shutting down...
>
>
>     On 8/5/10 2:32 AM, Andreas Hocevar wrote:
>      > Hey Chris,
>      >
>      > you have to install Xcode (Apple Developer Tools) from the CD
>     that ships with your Mac.
>      >
>      > Regards,
>      > Andreas.
>      >
>      > On Aug 5, 2010, at 04:51 , Chris Holmes wrote:
>      >
>      >> I'm trying to build GeoNode on snow leopard, and I get this error:
>      >>
>      >> cholmess-MacBook-Pro:geonode cholmes$ python bootstrap.py
>     --no-site-packages
>      >> New python executable in ./bin/python
>      >> Error [Errno 2] No such file or directory while executing command
>      >> install_name_tool -change /System/Library/Frameworks/Pyt...ython
>      >> @executable_path/../.Python ./bin/python
>      >> Could not call install_name_tool -- you must have Apple's
>     development
>      >> tools installed
>      >> Traceback (most recent call last):
>      >>    File "bootstrap.py", line 1504, in<module>
>      >>      main()
>      >>    File "bootstrap.py", line 528, in main
>      >>      use_distribute=options.use_distribute)
>      >>    File "bootstrap.py", line 611, in create_environment
>      >>      site_packages=site_packages, clear=clear))
>      >>    File "bootstrap.py", line 805, in install_python
>      >>      py_executable])
>      >>    File "bootstrap.py", line 556, in call_subprocess
>      >>      cwd=cwd, env=env)
>      >>    File
>      >>
>     
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py",
>      >> line 595, in __init__
>      >>    File
>      >>
>     
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py",
>      >> line 1106, in _execute_child
>      >> OSError: [Errno 2] No such file or directory
>      >>
>      >>
>      >> I tried installing other versions of python, but it didn't work.
>       Next
>      >> step I suppose is to build from source, but anyone else have an
>     easier
>      >> way to get it on?
>      >>
>      >> thanks,
>      >>
>      >> C
>      >
>
>

Re: [geonode] help building GeoNode on mac

From:
David Winslow
Date:
2010-08-05 @ 21:26
I have also seen this error when the GeoServer data directory has gotten 
messed up somehow.  Perhaps "paver clean=true setup_webapps" will bring 
you back to a good state.

--
David Winslow
OpenGeo - http://opengeo.org/

On 08/05/2010 05:23 PM, Chris Holmes wrote:
> Pretty sure I did, the lines right above the ones I pasted:
>
> django-admin.py createsuperuser --settings=capra.settings
> Username (Leave blank to use 'cholmes'): admin
> E-mail address: cholmes@opengeo.org
> Password:
> Password (again):
> Superuser created successfully.
>
>
> On 8/5/10 4:24 PM, Luke Tucker wrote:
>    
>> Did you create an administrative user using django-admin?
>> This step is a recent addition to the setup process.
>>
>> - Luke
>>
>>
>> On Thu, Aug 5, 2010 at 3:46 PM, Chris Holmes<cholmes@opengeo.org
>> <mailto:cholmes@opengeo.org>>  wrote:
>>
>>      Ok, installed Xcode, which got me further.  Then hit this on the
>>      last step:
>>
>>      cholmess-MacBook-Pro:geonode cholmes$ paver host
>>      --->  pavement.auto
>>      --->  pavement.host
>>      cd src/geoserver-geonode-ext
>>      cd /Users/cholmes/geonode
>>      Django is starting up, please wait...
>>      Logging servlet output to jetty.log and django output to django.log...
>>      Jetty is starting up, please wait...
>>      django-admin.py updatelayers --settings=capra.settings
>>      Traceback (most recent call last):
>>         File "/Users/cholmes/geonode/bin/django-admin.py", line 5, in
>>      <module>
>>           management.execute_from_command_line()
>>         File
>>      
"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/__init__.py",
>>      line 429, in execute_from_command_line
>>           utility.execute()
>>         File
>>      
"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/__init__.py",
>>      line 379, in execute
>>           self.fetch_command(subcommand).run_from_argv(self.argv)
>>         File
>>      
"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/base.py",
>>      line 191, in run_from_argv
>>           self.execute(*args, **options.__dict__)
>>         File
>>      
"/Users/cholmes/geonode/lib/python2.7/site-packages/django/core/management/base.py",
>>      line 218, in execute
>>           output = self.handle(*args, **options)
>>         File
>>      
"/Users/cholmes/geonode/src/GeoNodePy/geonode/maps/management/commands/updatelayers.py",
>>      line 11, in handle
>>           Layer.objects.slurp()
>>         File "/Users/cholmes/geonode/src/GeoNodePy/geonode/maps/models.py",
>>      line 564, in slurp
>>           for resource in cat.get_resources():
>>         File
>>      "/Users/cholmes/geonode/src/gsconfig.py/src/geoserver/catalog.py
>>      <http://gsconfig.py/src/geoserver/catalog.py>", line
>>      210, in get_resources
>>           for ws in self.get_workspaces():
>>         File
>>      "/Users/cholmes/geonode/src/gsconfig.py/src/geoserver/catalog.py
>>      <http://gsconfig.py/src/geoserver/catalog.py>", line
>>      265, in get_workspaces
>>           return [Workspace(self, node) for node in
>>      description.findall("workspace")]
>>      AttributeError: 'NoneType' object has no attribute 'findall'
>>
>>      Shutting down...
>>
>>
>>      On 8/5/10 2:32 AM, Andreas Hocevar wrote:
>>       >  Hey Chris,
>>       >
>>       >  you have to install Xcode (Apple Developer Tools) from the CD
>>      that ships with your Mac.
>>       >
>>       >  Regards,
>>       >  Andreas.
>>       >
>>       >  On Aug 5, 2010, at 04:51 , Chris Holmes wrote:
>>       >
>>       >>  I'm trying to build GeoNode on snow leopard, and I get this error:
>>       >>
>>       >>  cholmess-MacBook-Pro:geonode cholmes$ python bootstrap.py
>>      --no-site-packages
>>       >>  New python executable in ./bin/python
>>       >>  Error [Errno 2] No such file or directory while executing command
>>       >>  install_name_tool -change /System/Library/Frameworks/Pyt...ython
>>       >>  @executable_path/../.Python ./bin/python
>>       >>  Could not call install_name_tool -- you must have Apple's
>>      development
>>       >>  tools installed
>>       >>  Traceback (most recent call last):
>>       >>     File "bootstrap.py", line 1504, in<module>
>>       >>       main()
>>       >>     File "bootstrap.py", line 528, in main
>>       >>       use_distribute=options.use_distribute)
>>       >>     File "bootstrap.py", line 611, in create_environment
>>       >>       site_packages=site_packages, clear=clear))
>>       >>     File "bootstrap.py", line 805, in install_python
>>       >>       py_executable])
>>       >>     File "bootstrap.py", line 556, in call_subprocess
>>       >>       cwd=cwd, env=env)
>>       >>     File
>>       >>
>>      
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py",
>>       >>  line 595, in __init__
>>       >>     File
>>       >>
>>      
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py",
>>       >>  line 1106, in _execute_child
>>       >>  OSError: [Errno 2] No such file or directory
>>       >>
>>       >>
>>       >>  I tried installing other versions of python, but it didn't work.
>>        Next
>>       >>  step I suppose is to build from source, but anyone else have an
>>      easier
>>       >>  way to get it on?
>>       >>
>>       >>  thanks,
>>       >>
>>       >>  C
>>       >
>>
>>
>>