Geonode安装Oracle Linux

时间:2018-03-08 14:37:57

标签: python-2.7 web open-source gis osgeo

我正在运行python 2.7.5并在Oracle Linux机器上安装geonode。我正在关注安装manual并执行命令:

python manage.py migrate

我收到以下错误

Traceback (most recent call last):
  File "manage.py", line 29, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 328, in execute
    django.setup()
  File "/usr/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models(all_models)
  File "/usr/lib/python2.7/site-packages/django/apps/config.py", line 198, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/opt/apps/geonode/geonode/geonode/base/models.py", line 56, in <module>
    from geonode.utils import bbox_to_wkt
  File "/opt/apps/geonode/geonode/geonode/utils.py", line 31, in <module>
    from slugify import Slugify
  File "/usr/lib/python2.7/site-packages/slugify/__init__.py", line 1, in <module>
    from slugify.main import Slugify, UniqueSlugify
ImportError: No module named main

有关如何解决此问题的任何提示?

感谢您提前的时间

1 个答案:

答案 0 :(得分:1)

这个问题在awesome-slugify 1.6.5中解决,只需在geonode / requirements.txt中更改其版本。

N.B:geonode 2.8已发布,您关注的链接不是最新的,请按this获取geonode 2.8