Đang cố gắng cài đặt GeoDjango trên máy của tôi. Tôi thực sự mới với Python và được đưa vào một dự án đã được cài đặt rất khó khăn cho các thành viên khác trong nhóm. Tôi đã cài đặt Python 2.7 và GEOS sử dụng bia, và chạy psql 9.2.4 nhưng cứ bị lỗi này khi tôi cố gắng để có được những webserver chạy:Lỗi GeoCjango GEOSException
__import__(name)
File "/Users/armynante/Desktop/uclass-files/uclass-env/lib/python2.7/site
packages/django/contrib/gis/geometry/backend/geos.py", line 1, in <module>
from django.contrib.gis.geos import (
File "/Users/armynante/Desktop/uclass-files/uclass-env/lib/python2.7/site
packages/django/contrib/gis/geos/__init__.py", line 6, in <module>
from django.contrib.gis.geos.geometry import GEOSGeometry, wkt_regex, hex_regex
File "/Users/armynante/Desktop/uclass-files/uclass-env/lib/python2.7/site
packages/django/contrib/gis/geos/geometry.py", line 14, in <module>
from django.contrib.gis.geos.coordseq import GEOSCoordSeq
File "/Users/armynante/Desktop/uclass-files/uclass-env/lib/python2.7/site-
packages/django/contrib/gis/geos/coordseq.py", line 9, in <module>
from django.contrib.gis.geos.libgeos import CS_PTR
File "/Users/armynante/Desktop/uclass-files/uclass-env/lib/python2.7/site-
packages/django/contrib/gis/geos/libgeos.py", line 119, in <module>
_verinfo = geos_version_info()
File "/Users/armynante/Desktop/uclass-files/uclass-env/lib/python2.7/site
packages/django/contrib/gis/geos/libgeos.py", line 115, in geos_version_info
if not m: raise GEOSException('Could not parse version info string "%s"' % ver)
django.contrib.gis.geos.error.GEOSException: Could not parse version info string
"3.4.2-CAPI-1.8.2 r3921"
Cant dường như tìm thấy bất cứ điều gì liên quan đến dấu vết này trên SO hoặc trang web . Tôi nghĩ rằng nó có thể là một thất bại regex? Tôi hiện đang cố gắng cài đặt lại PSQL và GEOS để xem liệu tôi có thể chạy nó hay không.
Đây là yêu cầu tập tin của tôi:
django==1.4
psycopg2==2.4.4
py-bcrypt==0.4
python-memcached==1.48
south==0.7.3
# Debug Tools
sqlparse==0.1.3
django-debug-toolbar==0.9.1
django-devserver==0.3.1
# Deployment
fabric==1.4
# AWS
# boto==2.1.1
django-storages==1.1.4
django-ses==0.4.1
# ECL
http://packages.elmcitylabs.com/ecl_django-0.5.3.tar.gz#ecl_django
http://packages.elmcitylabs.com/ecl_google-0.2.14.tar.gz#ecl_google
# https://packages.elmcitylabs.com/ecl_tools-0.3.7.tar.gz#ecl_tools
# https://packages.elmcitylabs.com/chargemaster-0.2.19.tar.gz
# https://packages.elmcitylabs.com/ecl_facebook-0.3.12.tar.gz#ecl_facebook
# https://packages.elmcitylabs.com/ecl_twitter-0.3.3.tar.gz#ecl_twitter
# Search
#https://github.com/elmcitylabs/django-haystack/tarball/issue-522#django-haystack
-e git+https://github.com/toastdriven/django-haystack.git#egg=django-haystack
pysolr==2.1.0-beta
# whoosh==2.3.2
# Misc
# PIL
# django-shorturls==1.0.1
# suds==0.4
django-mptt
sorl-thumbnail
stripe
pytz==2013b
có thể là một vấn đề với các tòa nhà, bạn đang sử dụng. Hãy thử cập nhật nó lên phiên bản mới hơn. Thêm [tại đây] (https://code.djangoproject.com/ticket/17212) – karthikr
Vâng tôi đã thấy vé đó trước đó. Tôi hiện đang cài đặt lại nó và tôi sẽ thử nâng cấp lên bản phát hành tiếp theo nếu nó không hoạt động. – armynante
Bạn đã giải quyết nó? – moenad