|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /usr/lib64/python2.7/site-packages/django/contrib/gis/db/backends/spatialite/ |
Upload File : |
� r�\c @ s� d d l Z d d l m Z d d l m Z d d l m Z d d l m Z m Z m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d e f d � � YZ d S( i����N( t find_library( t settings( t ImproperlyConfigured( t Databaset DatabaseWrappert SQLiteCursorWrapper( t SpatiaLiteClient( t SpatiaLiteCreation( t SpatiaLiteIntrospection( t SpatiaLiteOperations( t sixR c B s e Z d � Z d � Z RS( c O s� t j d k r t d � � n t t d t d � � | _ | j sQ t d � � n t t | � j | | � t | � | _ t | � | _ t | � | _ t | � | _ d S( Ni i i sL Only versions of pysqlite 2.5+ are compatible with SpatiaLite and GeoDjango.t SPATIALITE_LIBRARY_PATHt spatialites Unable to locate the SpatiaLite library. Make sure it is in your library path, or set SPATIALITE_LIBRARY_PATH in your settings.( i i i ( R t version_infoR t getattrR R t spatialite_libt superR t __init__R t opsR t clientR t creationR t introspection( t selft argst kwargs( ( sP /tmp/pip-install-XxeQeY/django/django/contrib/gis/db/backends/spatialite/base.pyR s c C s� t t | � j | � } y | j t � Wn t k rH t d � � n X| j d t � } y | j d | j f � WnI t k r� } d | j | f } t j t t | � t j � d � n X| j � | S( Ns� The pysqlite library does not support C extension loading. Both SQLite and pysqlite must be configured to allow the loading of extensions to use SpatiaLite.t factorys SELECT load_extension(%s)s@ Unable to load the SpatiaLite library extension "%s" because: %si ( R R t get_new_connectiont enable_load_extensiont Truet AttributeErrorR t cursorR t executeR t ExceptionR t reraiset syst exc_infot close( R t conn_paramst connt curt msgt new_msg( ( sP /tmp/pip-install-XxeQeY/django/django/contrib/gis/db/backends/spatialite/base.pyR '