[GeoNode-devel] I destroyed GeoNode 2.8 Django installation: How to re-install (Michael Härtel)
Michael Härtel
haerta at haerta.de
Thu Mar 21 14:08:52 PDT 2019
Hello Toni,
I tried to reinstall the packe using apt-get and with dpkg but the
result is the same. Interestingly this is the same error as logged to
apache error log (TypeError: can only concatenate list (not "tuple") to
list):
mhaertel at geoportal:~$ sudo dpkg -i ./geonode_2.8.0+thefinal1_all.deb
[sudo] password for mhaertel:
(Reading database ... 230814 files and directories currently installed.)
Preparing to unpack .../geonode_2.8.0+thefinal1_all.deb ...
Unpacking geonode (2.8.0+thefinal1) over (2.8.0+thefinal1) ...
Setting up geonode (2.8.0+thefinal1) ...
Sourcing /usr/share/geonode/config-post.sh as the configuration file
Step: 'post specified
Running GeoNode postinstall ...
Traceback (most recent call last):
File "/usr/local/bin/pip", line 6, in <module>
from pip import main
ImportError: cannot import name main
Traceback (most recent call last):
File "/usr/local/bin/pip", line 6, in <module>
from pip import main
ImportError: cannot import name main
Traceback (most recent call last):
File "/usr/local/bin/django-admin", line 11, in <module>
sys.exit(execute_from_command_line())
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 364, in execute_from_command_line
utility.execute()
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 308, in execute
settings.INSTALLED_APPS
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
56, in __getattr__
self._setup(name)
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
41, in _setup
self._wrapped = Settings(settings_module)
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/geonode/settings.py",
line 837, in <module>
('%Y-%m-%d %H:%M:%S.%f %Z', '%Y-%m-%dT%H:%M:%S.%f',
'%Y-%m-%dT%H:%M:%S%Z')
TypeError: can only concatenate list (not "tuple") to list
Traceback (most recent call last):
File "/usr/local/bin/django-admin", line 11, in <module>
sys.exit(execute_from_command_line())
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 364, in execute_from_command_line
utility.execute()
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 308, in execute
settings.INSTALLED_APPS
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
56, in __getattr__
self._setup(name)
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
41, in _setup
self._wrapped = Settings(settings_module)
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/geonode/settings.py",
line 837, in <module>
('%Y-%m-%d %H:%M:%S.%f %Z', '%Y-%m-%dT%H:%M:%S.%f',
'%Y-%m-%dT%H:%M:%S%Z')
TypeError: can only concatenate list (not "tuple") to list
Traceback (most recent call last):
File "/usr/local/bin/django-admin", line 11, in <module>
sys.exit(execute_from_command_line())
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 364, in execute_from_command_line
utility.execute()
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 308, in execute
settings.INSTALLED_APPS
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
56, in __getattr__
self._setup(name)
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
41, in _setup
self._wrapped = Settings(settings_module)
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/geonode/settings.py",
line 837, in <module>
('%Y-%m-%d %H:%M:%S.%f %Z', '%Y-%m-%dT%H:%M:%S.%f',
'%Y-%m-%dT%H:%M:%S%Z')
TypeError: can only concatenate list (not "tuple") to list
Traceback (most recent call last):
File "/usr/local/bin/django-admin", line 11, in <module>
sys.exit(execute_from_command_line())
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 364, in execute_from_command_line
utility.execute()
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 308, in execute
settings.INSTALLED_APPS
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
56, in __getattr__
self._setup(name)
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
41, in _setup
self._wrapped = Settings(settings_module)
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/geonode/settings.py",
line 837, in <module>
('%Y-%m-%d %H:%M:%S.%f %Z', '%Y-%m-%dT%H:%M:%S.%f',
'%Y-%m-%dT%H:%M:%S%Z')
TypeError: can only concatenate list (not "tuple") to list
Traceback (most recent call last):
File "/usr/local/bin/django-admin", line 11, in <module>
sys.exit(execute_from_command_line())
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 364, in execute_from_command_line
utility.execute()
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 308, in execute
settings.INSTALLED_APPS
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
56, in __getattr__
self._setup(name)
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
41, in _setup
self._wrapped = Settings(settings_module)
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/geonode/settings.py",
line 837, in <module>
('%Y-%m-%d %H:%M:%S.%f %Z', '%Y-%m-%dT%H:%M:%S.%f',
'%Y-%m-%dT%H:%M:%S%Z')
TypeError: can only concatenate list (not "tuple") to list
Traceback (most recent call last):
File "/usr/local/bin/django-admin", line 11, in <module>
sys.exit(execute_from_command_line())
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 364, in execute_from_command_line
utility.execute()
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 308, in execute
settings.INSTALLED_APPS
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
56, in __getattr__
self._setup(name)
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
41, in _setup
self._wrapped = Settings(settings_module)
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/geonode/settings.py",
line 837, in <module>
('%Y-%m-%d %H:%M:%S.%f %Z', '%Y-%m-%dT%H:%M:%S.%f',
'%Y-%m-%dT%H:%M:%S%Z')
TypeError: can only concatenate list (not "tuple") to list
Traceback (most recent call last):
File "/usr/local/bin/django-admin", line 11, in <module>
sys.exit(execute_from_command_line())
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 364, in execute_from_command_line
utility.execute()
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 308, in execute
settings.INSTALLED_APPS
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
56, in __getattr__
self._setup(name)
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
41, in _setup
self._wrapped = Settings(settings_module)
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/geonode/settings.py",
line 837, in <module>
('%Y-%m-%d %H:%M:%S.%f %Z', '%Y-%m-%dT%H:%M:%S.%f',
'%Y-%m-%dT%H:%M:%S%Z')
TypeError: can only concatenate list (not "tuple") to list
Traceback (most recent call last):
File "/usr/local/bin/django-admin", line 11, in <module>
sys.exit(execute_from_command_line())
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 364, in execute_from_command_line
utility.execute()
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 308, in execute
settings.INSTALLED_APPS
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
56, in __getattr__
self._setup(name)
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
41, in _setup
self._wrapped = Settings(settings_module)
File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line
110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/geonode/settings.py",
line 837, in <module>
('%Y-%m-%d %H:%M:%S.%f %Z', '%Y-%m-%dT%H:%M:%S.%f',
'%Y-%m-%dT%H:%M:%S%Z')
TypeError: can only concatenate list (not "tuple") to list
Site 000-default already disabled
Considering dependency proxy for proxy_http:
Module proxy already enabled
Module proxy_http already enabled
Site geonode already enabled
Any idea which package is broken here? Or which packages I need to
uninstall with pip? WOuld it make sense to uninstall all python packages
with pip?
Regards,
Michael
On 21/03/2019 21:23, Toni Schönbuchner wrote:
> Dear Michael,
>
> from our former conversation I think you installed by apt, correct?
> If so python packages might come as dependencies [1] [2]
>
> It should work to confirm this by something like:
> $ apt-cache rdepends geonode
>
> Unfortunately I have never run into a situation like this but would
> just try to purge the old package, download the package in question again
> apt-get download <package_name>
> and install it again
> sudo dpkg -i <downloaded_package_deb_file>
>
> as said all untested, just a vague idea. Before spending to much time
> doing so I would most likely just restart with docker setup on the
> same instance.
>
> cheers,
>
> Toni
>
>
> [1] https://github.com/GeoNode/geonode/blob/2.8.x/requirements.txt
> [2] https://launchpad.net/~geonode/+archive/ubuntu/stable
>
>> Am 21.03.2019 um 15:44 schrieb geonode-devel-request at lists.osgeo.org
>> <mailto:geonode-devel-request at lists.osgeo.org>:
>>
>> Hello list,
>>
>> I destroyed my Django installation on my GeoNode 2.8 server when trying
>> to add some python packages to build up my dev environment.
>>
>> Is there a way to re-install only the python setup without having to
>> re-install the rest for GeoNode 2.8?
>>
>> Thank you very much,
>>
>> Michael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20190321/79e844e7/attachment-0001.html>
More information about the geonode-devel
mailing list