I am getting this error (Firebug console output) when clicking the
Print button in GeoNode; occurs both when using 'no background' and
'OpenStreetMap' Base Layers:
invalid 'instanceof' operand OpenLayers.Layer.GoogleNG
[Break On This Error]
setScale.call(this);this.mapPanel.map....tadataForm){this.initMetadataForm();}
I have no custom entries in my settings.py or local_settings.py for
other Base Layers.
dwins and I (larso) chatted briefly about it on IRC, it was mentioned:
"GoogleNG is no longer a valid layer type" & "it's possible that a
lingering reference to it exists..."
I have asked in #geoext without any leads - wondering if other
installs of 1.1+RC1-ariel6 experience this or if anyone on this list
can help us move forward to enable printing.
-JLarson
Hi, I'll give this a look shortly. Will keep you posted. Andreas. On Oct 14, 2011, at 20:07 , Joe Larson wrote: > I am getting this error (Firebug console output) when clicking the > Print button in GeoNode; occurs both when using 'no background' and > 'OpenStreetMap' Base Layers: > > > invalid 'instanceof' operand OpenLayers.Layer.GoogleNG > [Break On This Error] > setScale.call(this);this.mapPanel.map....tadataForm){this.initMetadataForm();} > > > I have no custom entries in my settings.py or local_settings.py for > other Base Layers. > > dwins and I (larso) chatted briefly about it on IRC, it was mentioned: > "GoogleNG is no longer a valid layer type" & "it's possible that a > lingering reference to it exists..." > > I have asked in #geoext without any leads - wondering if other > installs of 1.1+RC1-ariel6 experience this or if anyone on this list > can help us move forward to enable printing. > > > -JLarson -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers.
I forgot to include that the Firebug error also mentioned: GeoExplorer.js (line 13) On Fri, Oct 14, 2011 at 11:09 AM, Andreas Hocevar <ahocevar@opengeo.org> wrote: > Hi, > > I'll give this a look shortly. Will keep you posted. > > Andreas. > > On Oct 14, 2011, at 20:07 , Joe Larson wrote: > >> I am getting this error (Firebug console output) when clicking the >> Print button in GeoNode; occurs both when using 'no background' and >> 'OpenStreetMap' Base Layers: >> >> >> invalid 'instanceof' operand OpenLayers.Layer.GoogleNG >> [Break On This Error] >> setScale.call(this);this.mapPanel.map....tadataForm){this.initMetadataForm();} >> >> >> I have no custom entries in my settings.py or local_settings.py for >> other Base Layers. >> >> dwins and I (larso) chatted briefly about it on IRC, it was mentioned: >> "GoogleNG is no longer a valid layer type" & "it's possible that a >> lingering reference to it exists..." >> >> I have asked in #geoext without any leads - wondering if other >> installs of 1.1+RC1-ariel6 experience this or if anyone on this list >> can help us move forward to enable printing. >> >> >> -JLarson > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. > >
Fixed with https://github.com/GeoNode/geonode-client/commit/899f291d37f84a510435f5210ff150d57f0bf41c. Andreas. On Oct 14, 2011, at 20:13 , Joe Larson wrote: > I forgot to include that the Firebug error also mentioned: > > GeoExplorer.js (line 13) > > On Fri, Oct 14, 2011 at 11:09 AM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >> Hi, >> >> I'll give this a look shortly. Will keep you posted. >> >> Andreas. >> >> On Oct 14, 2011, at 20:07 , Joe Larson wrote: >> >>> I am getting this error (Firebug console output) when clicking the >>> Print button in GeoNode; occurs both when using 'no background' and >>> 'OpenStreetMap' Base Layers: >>> >>> >>> invalid 'instanceof' operand OpenLayers.Layer.GoogleNG >>> [Break On This Error] >>> setScale.call(this);this.mapPanel.map....tadataForm){this.initMetadataForm();} >>> >>> >>> I have no custom entries in my settings.py or local_settings.py for >>> other Base Layers. >>> >>> dwins and I (larso) chatted briefly about it on IRC, it was mentioned: >>> "GoogleNG is no longer a valid layer type" & "it's possible that a >>> lingering reference to it exists..." >>> >>> I have asked in #geoext without any leads - wondering if other >>> installs of 1.1+RC1-ariel6 experience this or if anyone on this list >>> can help us move forward to enable printing. >>> >>> >>> -JLarson >> >> -- >> Andreas Hocevar >> OpenGeo - http://opengeo.org/ >> Expert service straight from the developers. >> >> -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers.
Thank you Andreas and Ariel! Am I right in this planned workflow? Clone https://github.com/GeoNode/geonode-client > run `ant zip` > move archive to /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/ > run `sudo geonode collectstatic -v0` On Fri, Oct 14, 2011 at 11:18 AM, Andreas Hocevar <ahocevar@opengeo.org> wrote: > Fixed with https://github.com/GeoNode/geonode-client/commit/899f291d37f84a510435f5210ff150d57f0bf41c. > > Andreas. > > On Oct 14, 2011, at 20:13 , Joe Larson wrote: > >> I forgot to include that the Firebug error also mentioned: >> >> GeoExplorer.js (line 13) >> >> On Fri, Oct 14, 2011 at 11:09 AM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >>> Hi, >>> >>> I'll give this a look shortly. Will keep you posted. >>> >>> Andreas. >>> >>> On Oct 14, 2011, at 20:07 , Joe Larson wrote: >>> >>>> I am getting this error (Firebug console output) when clicking the >>>> Print button in GeoNode; occurs both when using 'no background' and >>>> 'OpenStreetMap' Base Layers: >>>> >>>> >>>> invalid 'instanceof' operand OpenLayers.Layer.GoogleNG >>>> [Break On This Error] >>>> setScale.call(this);this.mapPanel.map....tadataForm){this.initMetadataForm();} >>>> >>>> >>>> I have no custom entries in my settings.py or local_settings.py for >>>> other Base Layers. >>>> >>>> dwins and I (larso) chatted briefly about it on IRC, it was mentioned: >>>> "GoogleNG is no longer a valid layer type" & "it's possible that a >>>> lingering reference to it exists..." >>>> >>>> I have asked in #geoext without any leads - wondering if other >>>> installs of 1.1+RC1-ariel6 experience this or if anyone on this list >>>> can help us move forward to enable printing. >>>> >>>> >>>> -JLarson >>> >>> -- >>> Andreas Hocevar >>> OpenGeo - http://opengeo.org/ >>> Expert service straight from the developers. >>> >>> > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. > >
yes On Fri, Oct 14, 2011 at 2:49 PM, Joe Larson <joelarso@gmail.com> wrote: > Thank you Andreas and Ariel! > > Am I right in this planned workflow? Clone > https://github.com/GeoNode/geonode-client > run `ant zip` > move > archive to /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/ >> run `sudo geonode collectstatic -v0` > > On Fri, Oct 14, 2011 at 11:18 AM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >> Fixed with https://github.com/GeoNode/geonode-client/commit/899f291d37f84a510435f5210ff150d57f0bf41c. >> >> Andreas. >> >> On Oct 14, 2011, at 20:13 , Joe Larson wrote: >> >>> I forgot to include that the Firebug error also mentioned: >>> >>> GeoExplorer.js (line 13) >>> >>> On Fri, Oct 14, 2011 at 11:09 AM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >>>> Hi, >>>> >>>> I'll give this a look shortly. Will keep you posted. >>>> >>>> Andreas. >>>> >>>> On Oct 14, 2011, at 20:07 , Joe Larson wrote: >>>> >>>>> I am getting this error (Firebug console output) when clicking the >>>>> Print button in GeoNode; occurs both when using 'no background' and >>>>> 'OpenStreetMap' Base Layers: >>>>> >>>>> >>>>> invalid 'instanceof' operand OpenLayers.Layer.GoogleNG >>>>> [Break On This Error] >>>>> setScale.call(this);this.mapPanel.map....tadataForm){this.initMetadataForm();} >>>>> >>>>> >>>>> I have no custom entries in my settings.py or local_settings.py for >>>>> other Base Layers. >>>>> >>>>> dwins and I (larso) chatted briefly about it on IRC, it was mentioned: >>>>> "GoogleNG is no longer a valid layer type" & "it's possible that a >>>>> lingering reference to it exists..." >>>>> >>>>> I have asked in #geoext without any leads - wondering if other >>>>> installs of 1.1+RC1-ariel6 experience this or if anyone on this list >>>>> can help us move forward to enable printing. >>>>> >>>>> >>>>> -JLarson >>>> >>>> -- >>>> Andreas Hocevar >>>> OpenGeo - http://opengeo.org/ >>>> Expert service straight from the developers. >>>> >>>> >> >> -- >> Andreas Hocevar >> OpenGeo - http://opengeo.org/ >> Expert service straight from the developers. >> >> >
a FYI for others who installed from repo looking to make this fix: appears openjdk-6-jdk (or similar) is required for successful build - with `ant zip` On Fri, Oct 14, 2011 at 11:53 AM, Ariel Nunez <ingenieroariel@gmail.com> wrote: > yes > > On Fri, Oct 14, 2011 at 2:49 PM, Joe Larson <joelarso@gmail.com> wrote: >> Thank you Andreas and Ariel! >> >> Am I right in this planned workflow? Clone >> https://github.com/GeoNode/geonode-client > run `ant zip` > move >> archive to /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/ >>> run `sudo geonode collectstatic -v0` >> >> On Fri, Oct 14, 2011 at 11:18 AM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >>> Fixed with https://github.com/GeoNode/geonode-client/commit/899f291d37f84a510435f5210ff150d57f0bf41c. >>> >>> Andreas. >>> >>> On Oct 14, 2011, at 20:13 , Joe Larson wrote: >>> >>>> I forgot to include that the Firebug error also mentioned: >>>> >>>> GeoExplorer.js (line 13) >>>> >>>> On Fri, Oct 14, 2011 at 11:09 AM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >>>>> Hi, >>>>> >>>>> I'll give this a look shortly. Will keep you posted. >>>>> >>>>> Andreas. >>>>> >>>>> On Oct 14, 2011, at 20:07 , Joe Larson wrote: >>>>> >>>>>> I am getting this error (Firebug console output) when clicking the >>>>>> Print button in GeoNode; occurs both when using 'no background' and >>>>>> 'OpenStreetMap' Base Layers: >>>>>> >>>>>> >>>>>> invalid 'instanceof' operand OpenLayers.Layer.GoogleNG >>>>>> [Break On This Error] >>>>>> setScale.call(this);this.mapPanel.map....tadataForm){this.initMetadataForm();} >>>>>> >>>>>> >>>>>> I have no custom entries in my settings.py or local_settings.py for >>>>>> other Base Layers. >>>>>> >>>>>> dwins and I (larso) chatted briefly about it on IRC, it was mentioned: >>>>>> "GoogleNG is no longer a valid layer type" & "it's possible that a >>>>>> lingering reference to it exists..." >>>>>> >>>>>> I have asked in #geoext without any leads - wondering if other >>>>>> installs of 1.1+RC1-ariel6 experience this or if anyone on this list >>>>>> can help us move forward to enable printing. >>>>>> >>>>>> >>>>>> -JLarson >>>>> >>>>> -- >>>>> Andreas Hocevar >>>>> OpenGeo - http://opengeo.org/ >>>>> Expert service straight from the developers. >>>>> >>>>> >>> >>> -- >>> Andreas Hocevar >>> OpenGeo - http://opengeo.org/ >>> Expert service straight from the developers. >>> >>> >> >
Found it already. Fix to come in 5min. Andreas. On Oct 14, 2011, at 20:13 , Joe Larson wrote: > I forgot to include that the Firebug error also mentioned: > > GeoExplorer.js (line 13) > > On Fri, Oct 14, 2011 at 11:09 AM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >> Hi, >> >> I'll give this a look shortly. Will keep you posted. >> >> Andreas. >> >> On Oct 14, 2011, at 20:07 , Joe Larson wrote: >> >>> I am getting this error (Firebug console output) when clicking the >>> Print button in GeoNode; occurs both when using 'no background' and >>> 'OpenStreetMap' Base Layers: >>> >>> >>> invalid 'instanceof' operand OpenLayers.Layer.GoogleNG >>> [Break On This Error] >>> setScale.call(this);this.mapPanel.map....tadataForm){this.initMetadataForm();} >>> >>> >>> I have no custom entries in my settings.py or local_settings.py for >>> other Base Layers. >>> >>> dwins and I (larso) chatted briefly about it on IRC, it was mentioned: >>> "GoogleNG is no longer a valid layer type" & "it's possible that a >>> lingering reference to it exists..." >>> >>> I have asked in #geoext without any leads - wondering if other >>> installs of 1.1+RC1-ariel6 experience this or if anyone on this list >>> can help us move forward to enable printing. >>> >>> >>> -JLarson >> >> -- >> Andreas Hocevar >> OpenGeo - http://opengeo.org/ >> Expert service straight from the developers. >> >> -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers.
Joe, In order to implement Andreas' fix (assuming it is in geonode-client) you should follow the instructions in that README to compress and minify the javascript and other static files and then deploy the resulting media in: /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/ And run: sudo geonode collectstatic -v0 So the end up in /var/www/geonode/static Best, Ariel. On Fri, Oct 14, 2011 at 2:14 PM, Andreas Hocevar <ahocevar@opengeo.org> wrote: > Found it already. Fix to come in 5min. > > Andreas. > > On Oct 14, 2011, at 20:13 , Joe Larson wrote: > >> I forgot to include that the Firebug error also mentioned: >> >> GeoExplorer.js (line 13) >> >> On Fri, Oct 14, 2011 at 11:09 AM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >>> Hi, >>> >>> I'll give this a look shortly. Will keep you posted. >>> >>> Andreas. >>> >>> On Oct 14, 2011, at 20:07 , Joe Larson wrote: >>> >>>> I am getting this error (Firebug console output) when clicking the >>>> Print button in GeoNode; occurs both when using 'no background' and >>>> 'OpenStreetMap' Base Layers: >>>> >>>> >>>> invalid 'instanceof' operand OpenLayers.Layer.GoogleNG >>>> [Break On This Error] >>>> setScale.call(this);this.mapPanel.map....tadataForm){this.initMetadataForm();} >>>> >>>> >>>> I have no custom entries in my settings.py or local_settings.py for >>>> other Base Layers. >>>> >>>> dwins and I (larso) chatted briefly about it on IRC, it was mentioned: >>>> "GoogleNG is no longer a valid layer type" & "it's possible that a >>>> lingering reference to it exists..." >>>> >>>> I have asked in #geoext without any leads - wondering if other >>>> installs of 1.1+RC1-ariel6 experience this or if anyone on this list >>>> can help us move forward to enable printing. >>>> >>>> >>>> -JLarson >>> >>> -- >>> Andreas Hocevar >>> OpenGeo - http://opengeo.org/ >>> Expert service straight from the developers. >>> >>> > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. > >
Ariel, my install shows: /var/lib/geonode/src/GeoNodePy/geonode/media/geonode/ versus /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/ like you pasted above. Just thought I'd mention.. On Fri, Oct 14, 2011 at 11:17 AM, Ariel Nunez <ingenieroariel@gmail.com> wrote: > Joe, > > In order to implement Andreas' fix (assuming it is in geonode-client) > you should follow the instructions in that README to compress and > minify the javascript and other static files and then deploy the > resulting media in: > > /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/ > > And run: > > sudo geonode collectstatic -v0 > > So the end up in /var/www/geonode/static > > Best, > Ariel. > > On Fri, Oct 14, 2011 at 2:14 PM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >> Found it already. Fix to come in 5min. >> >> Andreas. >> >> On Oct 14, 2011, at 20:13 , Joe Larson wrote: >> >>> I forgot to include that the Firebug error also mentioned: >>> >>> GeoExplorer.js (line 13) >>> >>> On Fri, Oct 14, 2011 at 11:09 AM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >>>> Hi, >>>> >>>> I'll give this a look shortly. Will keep you posted. >>>> >>>> Andreas. >>>> >>>> On Oct 14, 2011, at 20:07 , Joe Larson wrote: >>>> >>>>> I am getting this error (Firebug console output) when clicking the >>>>> Print button in GeoNode; occurs both when using 'no background' and >>>>> 'OpenStreetMap' Base Layers: >>>>> >>>>> >>>>> invalid 'instanceof' operand OpenLayers.Layer.GoogleNG >>>>> [Break On This Error] >>>>> setScale.call(this);this.mapPanel.map....tadataForm){this.initMetadataForm();} >>>>> >>>>> >>>>> I have no custom entries in my settings.py or local_settings.py for >>>>> other Base Layers. >>>>> >>>>> dwins and I (larso) chatted briefly about it on IRC, it was mentioned: >>>>> "GoogleNG is no longer a valid layer type" & "it's possible that a >>>>> lingering reference to it exists..." >>>>> >>>>> I have asked in #geoext without any leads - wondering if other >>>>> installs of 1.1+RC1-ariel6 experience this or if anyone on this list >>>>> can help us move forward to enable printing. >>>>> >>>>> >>>>> -JLarson >>>> >>>> -- >>>> Andreas Hocevar >>>> OpenGeo - http://opengeo.org/ >>>> Expert service straight from the developers. >>>> >>>> >> >> -- >> Andreas Hocevar >> OpenGeo - http://opengeo.org/ >> Expert service straight from the developers. >> >> >
Yeah, that looks right, sorry for the typo. Ariel On Fri, Oct 14, 2011 at 3:05 PM, Joe Larson <joelarso@gmail.com> wrote: > Ariel, my install shows: > > /var/lib/geonode/src/GeoNodePy/geonode/media/geonode/ > > versus > > /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/ > > like you pasted above. Just thought I'd mention.. > > On Fri, Oct 14, 2011 at 11:17 AM, Ariel Nunez <ingenieroariel@gmail.com> wrote: >> Joe, >> >> In order to implement Andreas' fix (assuming it is in geonode-client) >> you should follow the instructions in that README to compress and >> minify the javascript and other static files and then deploy the >> resulting media in: >> >> /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/ >> >> And run: >> >> sudo geonode collectstatic -v0 >> >> So the end up in /var/www/geonode/static >> >> Best, >> Ariel. >> >> On Fri, Oct 14, 2011 at 2:14 PM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >>> Found it already. Fix to come in 5min. >>> >>> Andreas. >>> >>> On Oct 14, 2011, at 20:13 , Joe Larson wrote: >>> >>>> I forgot to include that the Firebug error also mentioned: >>>> >>>> GeoExplorer.js (line 13) >>>> >>>> On Fri, Oct 14, 2011 at 11:09 AM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >>>>> Hi, >>>>> >>>>> I'll give this a look shortly. Will keep you posted. >>>>> >>>>> Andreas. >>>>> >>>>> On Oct 14, 2011, at 20:07 , Joe Larson wrote: >>>>> >>>>>> I am getting this error (Firebug console output) when clicking the >>>>>> Print button in GeoNode; occurs both when using 'no background' and >>>>>> 'OpenStreetMap' Base Layers: >>>>>> >>>>>> >>>>>> invalid 'instanceof' operand OpenLayers.Layer.GoogleNG >>>>>> [Break On This Error] >>>>>> setScale.call(this);this.mapPanel.map....tadataForm){this.initMetadataForm();} >>>>>> >>>>>> >>>>>> I have no custom entries in my settings.py or local_settings.py for >>>>>> other Base Layers. >>>>>> >>>>>> dwins and I (larso) chatted briefly about it on IRC, it was mentioned: >>>>>> "GoogleNG is no longer a valid layer type" & "it's possible that a >>>>>> lingering reference to it exists..." >>>>>> >>>>>> I have asked in #geoext without any leads - wondering if other >>>>>> installs of 1.1+RC1-ariel6 experience this or if anyone on this list >>>>>> can help us move forward to enable printing. >>>>>> >>>>>> >>>>>> -JLarson >>>>> >>>>> -- >>>>> Andreas Hocevar >>>>> OpenGeo - http://opengeo.org/ >>>>> Expert service straight from the developers. >>>>> >>>>> >>> >>> -- >>> Andreas Hocevar >>> OpenGeo - http://opengeo.org/ >>> Expert service straight from the developers. >>> >>> >> >
ran w/ -v2 after not getting results expected...here's the output ubuntu@ip-x-x-x-x:/var/lib/geonode/src/GeoNodePy/geonode/media/geonode$ sudo geonode collectstatic -v2 You have requested to collect static files at the destination location as specified in your settings. This will overwrite existing files! Are you sure you want to do this? Type 'yes' to continue, or 'no' to cancel: yes Traceback (most recent call last): File "/var/lib/geonode/bin/django-admin.py", line 5, in <module> management.execute_from_command_line() File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/__init__.py", line 429, in execute_from_command_line utility.execute() File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/base.py", line 191, in run_from_argv self.execute(*args, **options.__dict__) File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/base.py", line 218, in execute output = self.handle(*args, **options) File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/base.py", line 347, in handle return self.handle_noargs(**options) File "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py", line 126, in handle_noargs handler(path, prefixed_path, storage) File "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py", line 255, in copy_file if not self.delete_file(path, prefixed_path, source_storage): File "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py", line 211, in delete_file self.log(u"Skipping '%s' (not modified)" % path) File "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py", line 163, in log self.stdout.write(msg) AttributeError: 'Command' object has no attribute 'stdout' On Fri, Oct 14, 2011 at 12:07 PM, Ariel Nunez <ingenieroariel@gmail.com> wrote: > Yeah, that looks right, sorry for the typo. > > Ariel > > On Fri, Oct 14, 2011 at 3:05 PM, Joe Larson <joelarso@gmail.com> wrote: >> Ariel, my install shows: >> >> /var/lib/geonode/src/GeoNodePy/geonode/media/geonode/ >> >> versus >> >> /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/ >> >> like you pasted above. Just thought I'd mention.. >> >> On Fri, Oct 14, 2011 at 11:17 AM, Ariel Nunez <ingenieroariel@gmail.com> wrote: >>> Joe, >>> >>> In order to implement Andreas' fix (assuming it is in geonode-client) >>> you should follow the instructions in that README to compress and >>> minify the javascript and other static files and then deploy the >>> resulting media in: >>> >>> /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/ >>> >>> And run: >>> >>> sudo geonode collectstatic -v0 >>> >>> So the end up in /var/www/geonode/static >>> >>> Best, >>> Ariel. >>> >>> On Fri, Oct 14, 2011 at 2:14 PM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >>>> Found it already. Fix to come in 5min. >>>> >>>> Andreas. >>>> >>>> On Oct 14, 2011, at 20:13 , Joe Larson wrote: >>>> >>>>> I forgot to include that the Firebug error also mentioned: >>>>> >>>>> GeoExplorer.js (line 13) >>>>> >>>>> On Fri, Oct 14, 2011 at 11:09 AM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >>>>>> Hi, >>>>>> >>>>>> I'll give this a look shortly. Will keep you posted. >>>>>> >>>>>> Andreas. >>>>>> >>>>>> On Oct 14, 2011, at 20:07 , Joe Larson wrote: >>>>>> >>>>>>> I am getting this error (Firebug console output) when clicking the >>>>>>> Print button in GeoNode; occurs both when using 'no background' and >>>>>>> 'OpenStreetMap' Base Layers: >>>>>>> >>>>>>> >>>>>>> invalid 'instanceof' operand OpenLayers.Layer.GoogleNG >>>>>>> [Break On This Error] >>>>>>> setScale.call(this);this.mapPanel.map....tadataForm){this.initMetadataForm();} >>>>>>> >>>>>>> >>>>>>> I have no custom entries in my settings.py or local_settings.py for >>>>>>> other Base Layers. >>>>>>> >>>>>>> dwins and I (larso) chatted briefly about it on IRC, it was mentioned: >>>>>>> "GoogleNG is no longer a valid layer type" & "it's possible that a >>>>>>> lingering reference to it exists..." >>>>>>> >>>>>>> I have asked in #geoext without any leads - wondering if other >>>>>>> installs of 1.1+RC1-ariel6 experience this or if anyone on this list >>>>>>> can help us move forward to enable printing. >>>>>>> >>>>>>> >>>>>>> -JLarson >>>>>> >>>>>> -- >>>>>> Andreas Hocevar >>>>>> OpenGeo - http://opengeo.org/ >>>>>> Expert service straight from the developers. >>>>>> >>>>>> >>>> >>>> -- >>>> Andreas Hocevar >>>> OpenGeo - http://opengeo.org/ >>>> Expert service straight from the developers. >>>> >>>> >>> >> >
You have to use -v0 or modify the line specified in collectstatic.py to use a print statement rather than self.stdout. There is one other place too, but not sure where it is immediately. Fix that one and it will tell you ... or just use -v0 to supress the output. Jeff On Fri, Oct 14, 2011 at 12:31 PM, Joe Larson <joelarso@gmail.com> wrote: > ran w/ -v2 after not getting results expected...here's the output > > > ubuntu@ip-x-x-x-x:/var/lib/geonode/src/GeoNodePy/geonode/media/geonode$ > sudo geonode collectstatic -v2 > > You have requested to collect static files at the destination > location as specified in your settings. > > This will overwrite existing files! > Are you sure you want to do this? > > Type 'yes' to continue, or 'no' to cancel: yes > Traceback (most recent call last): > File "/var/lib/geonode/bin/django-admin.py", line 5, in <module> > management.execute_from_command_line() > File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/__init__.py", > line 429, in execute_from_command_line > utility.execute() > File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/__init__.py", > line 379, in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/base.py", > line 191, in run_from_argv > self.execute(*args, **options.__dict__) > File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/base.py", > line 218, in execute > output = self.handle(*args, **options) > File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/base.py", > line 347, in handle > return self.handle_noargs(**options) > File "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py", > line 126, in handle_noargs > handler(path, prefixed_path, storage) > File "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py", > line 255, in copy_file > if not self.delete_file(path, prefixed_path, source_storage): > File "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py", > line 211, in delete_file > self.log(u"Skipping '%s' (not modified)" % path) > File "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py", > line 163, in log > self.stdout.write(msg) > AttributeError: 'Command' object has no attribute 'stdout' > > > On Fri, Oct 14, 2011 at 12:07 PM, Ariel Nunez <ingenieroariel@gmail.com> wrote: >> Yeah, that looks right, sorry for the typo. >> >> Ariel >> >> On Fri, Oct 14, 2011 at 3:05 PM, Joe Larson <joelarso@gmail.com> wrote: >>> Ariel, my install shows: >>> >>> /var/lib/geonode/src/GeoNodePy/geonode/media/geonode/ >>> >>> versus >>> >>> /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/ >>> >>> like you pasted above. Just thought I'd mention.. >>> >>> On Fri, Oct 14, 2011 at 11:17 AM, Ariel Nunez <ingenieroariel@gmail.com> wrote: >>>> Joe, >>>> >>>> In order to implement Andreas' fix (assuming it is in geonode-client) >>>> you should follow the instructions in that README to compress and >>>> minify the javascript and other static files and then deploy the >>>> resulting media in: >>>> >>>> /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/ >>>> >>>> And run: >>>> >>>> sudo geonode collectstatic -v0 >>>> >>>> So the end up in /var/www/geonode/static >>>> >>>> Best, >>>> Ariel. >>>> >>>> On Fri, Oct 14, 2011 at 2:14 PM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >>>>> Found it already. Fix to come in 5min. >>>>> >>>>> Andreas. >>>>> >>>>> On Oct 14, 2011, at 20:13 , Joe Larson wrote: >>>>> >>>>>> I forgot to include that the Firebug error also mentioned: >>>>>> >>>>>> GeoExplorer.js (line 13) >>>>>> >>>>>> On Fri, Oct 14, 2011 at 11:09 AM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >>>>>>> Hi, >>>>>>> >>>>>>> I'll give this a look shortly. Will keep you posted. >>>>>>> >>>>>>> Andreas. >>>>>>> >>>>>>> On Oct 14, 2011, at 20:07 , Joe Larson wrote: >>>>>>> >>>>>>>> I am getting this error (Firebug console output) when clicking the >>>>>>>> Print button in GeoNode; occurs both when using 'no background' and >>>>>>>> 'OpenStreetMap' Base Layers: >>>>>>>> >>>>>>>> >>>>>>>> invalid 'instanceof' operand OpenLayers.Layer.GoogleNG >>>>>>>> [Break On This Error] >>>>>>>> setScale.call(this);this.mapPanel.map....tadataForm){this.initMetadataForm();} >>>>>>>> >>>>>>>> >>>>>>>> I have no custom entries in my settings.py or local_settings.py for >>>>>>>> other Base Layers. >>>>>>>> >>>>>>>> dwins and I (larso) chatted briefly about it on IRC, it was mentioned: >>>>>>>> "GoogleNG is no longer a valid layer type" & "it's possible that a >>>>>>>> lingering reference to it exists..." >>>>>>>> >>>>>>>> I have asked in #geoext without any leads - wondering if other >>>>>>>> installs of 1.1+RC1-ariel6 experience this or if anyone on this list >>>>>>>> can help us move forward to enable printing. >>>>>>>> >>>>>>>> >>>>>>>> -JLarson >>>>>>> >>>>>>> -- >>>>>>> Andreas Hocevar >>>>>>> OpenGeo - http://opengeo.org/ >>>>>>> Expert service straight from the developers. >>>>>>> >>>>>>> >>>>> >>>>> -- >>>>> Andreas Hocevar >>>>> OpenGeo - http://opengeo.org/ >>>>> Expert service straight from the developers. >>>>> >>>>> >>>> >>> >> >
Joe, All collect static does is take the media from the django.contrib.admin, your geonode installation and /etc/geonode/media and put it in /var/www/geonode/static There is a bug with the verbose output and Django 1.2 (it works with 1.3) that can be patched as Jeff suggests. Or you could just update the files at /var/www/geonode/static/geonode manually and not run collect static. Ariel. On Fri, Oct 14, 2011 at 3:37 PM, Jeffrey Johnson <jjohnson@opengeo.org> wrote: > You have to use -v0 or modify the line specified in collectstatic.py > to use a print statement rather than self.stdout. There is one other > place too, but not sure where it is immediately. Fix that one and it > will tell you ... or just use -v0 to supress the output. > > Jeff > > On Fri, Oct 14, 2011 at 12:31 PM, Joe Larson <joelarso@gmail.com> wrote: >> ran w/ -v2 after not getting results expected...here's the output >> >> >> ubuntu@ip-x-x-x-x:/var/lib/geonode/src/GeoNodePy/geonode/media/geonode$ >> sudo geonode collectstatic -v2 >> >> You have requested to collect static files at the destination >> location as specified in your settings. >> >> This will overwrite existing files! >> Are you sure you want to do this? >> >> Type 'yes' to continue, or 'no' to cancel: yes >> Traceback (most recent call last): >> File "/var/lib/geonode/bin/django-admin.py", line 5, in <module> >> management.execute_from_command_line() >> File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/__init__.py", >> line 429, in execute_from_command_line >> utility.execute() >> File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/__init__.py", >> line 379, in execute >> self.fetch_command(subcommand).run_from_argv(self.argv) >> File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/base.py", >> line 191, in run_from_argv >> self.execute(*args, **options.__dict__) >> File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/base.py", >> line 218, in execute >> output = self.handle(*args, **options) >> File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/base.py", >> line 347, in handle >> return self.handle_noargs(**options) >> File "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py", >> line 126, in handle_noargs >> handler(path, prefixed_path, storage) >> File "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py", >> line 255, in copy_file >> if not self.delete_file(path, prefixed_path, source_storage): >> File "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py", >> line 211, in delete_file >> self.log(u"Skipping '%s' (not modified)" % path) >> File "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py", >> line 163, in log >> self.stdout.write(msg) >> AttributeError: 'Command' object has no attribute 'stdout' >> >> >> On Fri, Oct 14, 2011 at 12:07 PM, Ariel Nunez <ingenieroariel@gmail.com> wrote: >>> Yeah, that looks right, sorry for the typo. >>> >>> Ariel >>> >>> On Fri, Oct 14, 2011 at 3:05 PM, Joe Larson <joelarso@gmail.com> wrote: >>>> Ariel, my install shows: >>>> >>>> /var/lib/geonode/src/GeoNodePy/geonode/media/geonode/ >>>> >>>> versus >>>> >>>> /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/ >>>> >>>> like you pasted above. Just thought I'd mention.. >>>> >>>> On Fri, Oct 14, 2011 at 11:17 AM, Ariel Nunez <ingenieroariel@gmail.com> wrote: >>>>> Joe, >>>>> >>>>> In order to implement Andreas' fix (assuming it is in geonode-client) >>>>> you should follow the instructions in that README to compress and >>>>> minify the javascript and other static files and then deploy the >>>>> resulting media in: >>>>> >>>>> /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/ >>>>> >>>>> And run: >>>>> >>>>> sudo geonode collectstatic -v0 >>>>> >>>>> So the end up in /var/www/geonode/static >>>>> >>>>> Best, >>>>> Ariel. >>>>> >>>>> On Fri, Oct 14, 2011 at 2:14 PM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >>>>>> Found it already. Fix to come in 5min. >>>>>> >>>>>> Andreas. >>>>>> >>>>>> On Oct 14, 2011, at 20:13 , Joe Larson wrote: >>>>>> >>>>>>> I forgot to include that the Firebug error also mentioned: >>>>>>> >>>>>>> GeoExplorer.js (line 13) >>>>>>> >>>>>>> On Fri, Oct 14, 2011 at 11:09 AM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >>>>>>>> Hi, >>>>>>>> >>>>>>>> I'll give this a look shortly. Will keep you posted. >>>>>>>> >>>>>>>> Andreas. >>>>>>>> >>>>>>>> On Oct 14, 2011, at 20:07 , Joe Larson wrote: >>>>>>>> >>>>>>>>> I am getting this error (Firebug console output) when clicking the >>>>>>>>> Print button in GeoNode; occurs both when using 'no background' and >>>>>>>>> 'OpenStreetMap' Base Layers: >>>>>>>>> >>>>>>>>> >>>>>>>>> invalid 'instanceof' operand OpenLayers.Layer.GoogleNG >>>>>>>>> [Break On This Error] >>>>>>>>> setScale.call(this);this.mapPanel.map....tadataForm){this.initMetadataForm();} >>>>>>>>> >>>>>>>>> >>>>>>>>> I have no custom entries in my settings.py or local_settings.py for >>>>>>>>> other Base Layers. >>>>>>>>> >>>>>>>>> dwins and I (larso) chatted briefly about it on IRC, it was mentioned: >>>>>>>>> "GoogleNG is no longer a valid layer type" & "it's possible that a >>>>>>>>> lingering reference to it exists..." >>>>>>>>> >>>>>>>>> I have asked in #geoext without any leads - wondering if other >>>>>>>>> installs of 1.1+RC1-ariel6 experience this or if anyone on this list >>>>>>>>> can help us move forward to enable printing. >>>>>>>>> >>>>>>>>> >>>>>>>>> -JLarson >>>>>>>> >>>>>>>> -- >>>>>>>> Andreas Hocevar >>>>>>>> OpenGeo - http://opengeo.org/ >>>>>>>> Expert service straight from the developers. >>>>>>>> >>>>>>>> >>>>>> >>>>>> -- >>>>>> Andreas Hocevar >>>>>> OpenGeo - http://opengeo.org/ >>>>>> Expert service straight from the developers. >>>>>> >>>>>> >>>>> >>>> >>> >> >
Thanks for the insights! I deleted the 'NG' from /var/www/geonode/static/script/GeoExplorer.js and am able to export .pdf-prints (after restarting tomcat+apache). Have a great weekend, joe. On Fri, Oct 14, 2011 at 12:47 PM, Ariel Nunez <ingenieroariel@gmail.com> wrote: > Joe, > > All collect static does is take the media from the > django.contrib.admin, your geonode installation and /etc/geonode/media > and put it in /var/www/geonode/static > > There is a bug with the verbose output and Django 1.2 (it works with > 1.3) that can be patched as Jeff suggests. > > Or you could just update the files at /var/www/geonode/static/geonode > manually and not run collect static. > > Ariel. > > On Fri, Oct 14, 2011 at 3:37 PM, Jeffrey Johnson <jjohnson@opengeo.org> wrote: >> You have to use -v0 or modify the line specified in collectstatic.py >> to use a print statement rather than self.stdout. There is one other >> place too, but not sure where it is immediately. Fix that one and it >> will tell you ... or just use -v0 to supress the output. >> >> Jeff >> >> On Fri, Oct 14, 2011 at 12:31 PM, Joe Larson <joelarso@gmail.com> wrote: >>> ran w/ -v2 after not getting results expected...here's the output >>> >>> >>> ubuntu@ip-x-x-x-x:/var/lib/geonode/src/GeoNodePy/geonode/media/geonode$ >>> sudo geonode collectstatic -v2 >>> >>> You have requested to collect static files at the destination >>> location as specified in your settings. >>> >>> This will overwrite existing files! >>> Are you sure you want to do this? >>> >>> Type 'yes' to continue, or 'no' to cancel: yes >>> Traceback (most recent call last): >>> File "/var/lib/geonode/bin/django-admin.py", line 5, in <module> >>> management.execute_from_command_line() >>> File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/__init__.py", >>> line 429, in execute_from_command_line >>> utility.execute() >>> File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/__init__.py", >>> line 379, in execute >>> self.fetch_command(subcommand).run_from_argv(self.argv) >>> File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/base.py", >>> line 191, in run_from_argv >>> self.execute(*args, **options.__dict__) >>> File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/base.py", >>> line 218, in execute >>> output = self.handle(*args, **options) >>> File "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/base.py", >>> line 347, in handle >>> return self.handle_noargs(**options) >>> File "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py", >>> line 126, in handle_noargs >>> handler(path, prefixed_path, storage) >>> File "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py", >>> line 255, in copy_file >>> if not self.delete_file(path, prefixed_path, source_storage): >>> File "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py", >>> line 211, in delete_file >>> self.log(u"Skipping '%s' (not modified)" % path) >>> File "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py", >>> line 163, in log >>> self.stdout.write(msg) >>> AttributeError: 'Command' object has no attribute 'stdout' >>> >>> >>> On Fri, Oct 14, 2011 at 12:07 PM, Ariel Nunez <ingenieroariel@gmail.com> wrote: >>>> Yeah, that looks right, sorry for the typo. >>>> >>>> Ariel >>>> >>>> On Fri, Oct 14, 2011 at 3:05 PM, Joe Larson <joelarso@gmail.com> wrote: >>>>> Ariel, my install shows: >>>>> >>>>> /var/lib/geonode/src/GeoNodePy/geonode/media/geonode/ >>>>> >>>>> versus >>>>> >>>>> /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/ >>>>> >>>>> like you pasted above. Just thought I'd mention.. >>>>> >>>>> On Fri, Oct 14, 2011 at 11:17 AM, Ariel Nunez <ingenieroariel@gmail.com> wrote: >>>>>> Joe, >>>>>> >>>>>> In order to implement Andreas' fix (assuming it is in geonode-client) >>>>>> you should follow the instructions in that README to compress and >>>>>> minify the javascript and other static files and then deploy the >>>>>> resulting media in: >>>>>> >>>>>> /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/ >>>>>> >>>>>> And run: >>>>>> >>>>>> sudo geonode collectstatic -v0 >>>>>> >>>>>> So the end up in /var/www/geonode/static >>>>>> >>>>>> Best, >>>>>> Ariel. >>>>>> >>>>>> On Fri, Oct 14, 2011 at 2:14 PM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >>>>>>> Found it already. Fix to come in 5min. >>>>>>> >>>>>>> Andreas. >>>>>>> >>>>>>> On Oct 14, 2011, at 20:13 , Joe Larson wrote: >>>>>>> >>>>>>>> I forgot to include that the Firebug error also mentioned: >>>>>>>> >>>>>>>> GeoExplorer.js (line 13) >>>>>>>> >>>>>>>> On Fri, Oct 14, 2011 at 11:09 AM, Andreas Hocevar <ahocevar@opengeo.org> wrote: >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> I'll give this a look shortly. Will keep you posted. >>>>>>>>> >>>>>>>>> Andreas. >>>>>>>>> >>>>>>>>> On Oct 14, 2011, at 20:07 , Joe Larson wrote: >>>>>>>>> >>>>>>>>>> I am getting this error (Firebug console output) when clicking the >>>>>>>>>> Print button in GeoNode; occurs both when using 'no background' and >>>>>>>>>> 'OpenStreetMap' Base Layers: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> invalid 'instanceof' operand OpenLayers.Layer.GoogleNG >>>>>>>>>> [Break On This Error] >>>>>>>>>> setScale.call(this);this.mapPanel.map....tadataForm){this.initMetadataForm();} >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> I have no custom entries in my settings.py or local_settings.py for >>>>>>>>>> other Base Layers. >>>>>>>>>> >>>>>>>>>> dwins and I (larso) chatted briefly about it on IRC, it was mentioned: >>>>>>>>>> "GoogleNG is no longer a valid layer type" & "it's possible that a >>>>>>>>>> lingering reference to it exists..." >>>>>>>>>> >>>>>>>>>> I have asked in #geoext without any leads - wondering if other >>>>>>>>>> installs of 1.1+RC1-ariel6 experience this or if anyone on this list >>>>>>>>>> can help us move forward to enable printing. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -JLarson >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Andreas Hocevar >>>>>>>>> OpenGeo - http://opengeo.org/ >>>>>>>>> Expert service straight from the developers. >>>>>>>>> >>>>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Andreas Hocevar >>>>>>> OpenGeo - http://opengeo.org/ >>>>>>> Expert service straight from the developers. >>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> >