GeoDjango GEOSException error

后端 未结 8 877
Happy的楠姐
Happy的楠姐 2020-12-12 14:06

Trying to install a GeoDjango on my machine. I\'m really new to Python and being brought into a project that has been a very tricky install for the other team members. I ins

8条回答
  •  一生所求
    2020-12-12 14:44

    In the latest GEOS install, the above answer didn't work... but was close to the problem.

    I changed the regex right above the geos_version_info(): from:

    version_regex = re.compile(r'^(?P(?P\d+)\.(?P\d+)\.(?P\d+))((rc(?P\d+))|dev)?-CAPI-(?P\d+\.\d+\.\d+)$')
    

    to be:

    version_regex = re.compile(r'^(?P(?P\d+)\.(?P\d+)\.(?P\d+))((rc(?P\d+))|dev)?-CAPI-(?P\d+\.\d+\.\d+).*$')
    

    Notice the .* added to the end of the regex.

提交回复
热议问题