[OWSLib-users] python package missing ?

Chiarello Ernest Ernest.Chiarello at univ-fcomte.fr
Fri May 20 08:06:29 PDT 2016


Hi Tom,

i don't think that this is the problem... nmap says that ports are 
opened, and telnet can make a connexion :

# nmap 193.55.67.146

Starting Nmap 6.47 ( http://nmap.org ) at 2016-05-20 16:45 CEST
Nmap scan report for 193.55.67.146
Host is up (0.00044s latency).
Not shown: 997 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
80/tcp   open  http
8080/tcp open  http-proxy

# telnet 193.55.67.146 8080
Trying 193.55.67.146...
Connected to 193.55.67.146.
Escape character is '^]'.

but it is perhaps a DNS problem... oups, i just remember now that this 
host was not on the DNS !!! :-[

and it works now because i just changed my /etc/hosts file with a record 
for geonetwork-mshe.univ-fcomte.fr

i am very sorry...

Thanks for your help,

Ernest.


Le 20/05/2016 12:25, Tom Kralidis a écrit :
> Hi Ernest: your packages are fine. The server from which the script is running from cannot see the CSW server. Try to achieve connectivity between the server and the CSW via other means to verify?
>
> Sent from my iPhone
>
>> On May 20, 2016, at 03:33, Ernest Chiarello <ernest.chiarello at univ-fcomte.fr> wrote:
>>
>> Hi list,
>>
>> i have a problem with a little python script that uses the owslib.
>>
>> it works fine on all ubuntu stations, but it fails on my debian server, and i suppose
>> a python package is missing, but i do not know which one.
>>
>> here is what happens :
>>
>>>>> import owslib
>>>>> geonetwork = 'http://geonetwork-mshe.univ-fcomte.fr:8080/geonetwork/srv/fre/csw-publication'
>>>>> from owslib.csw import CatalogueServiceWeb
>>>>> csw = CatalogueServiceWeb(geonetwork, skip_caps=True, username='admin', password='admin')
>>>>> csw.transaction(ttype='insert', typename='gmd:MD_Metadata', record=open('Haies_Franche_Comte_metadata.xml').read())
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>>   File "/usr/lib/python2.7/dist-packages/owslib/csw.py", line 432, in transaction
>>     self._invoke()
>>   File "/usr/lib/python2.7/dist-packages/owslib/csw.py", line 635, in _invoke
>>     self.response = util.http_post(xml_post_url, self.request, self.lang, self.timeout, self.username, self.password)
>>   File "/usr/lib/python2.7/dist-packages/owslib/util.py", line 372, in http_post
>>     up = urllib2.urlopen(r,timeout=timeout);
>>   File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
>>     return opener.open(url, data, timeout)
>>   File "/usr/lib/python2.7/urllib2.py", line 431, in open
>>     response = self._open(req, data)
>>   File "/usr/lib/python2.7/urllib2.py", line 449, in _open
>>     '_open', req)
>>   File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
>>     result = func(*args)
>>   File "/usr/lib/python2.7/urllib2.py", line 1227, in http_open
>>     return self.do_open(httplib.HTTPConnection, req)
>>   File "/usr/lib/python2.7/urllib2.py", line 1197, in do_open
>>     raise URLError(err)
>> urllib2.URLError: <urlopen error [Errno -2] Name or service not known>
>>
>>
>> here the list of the python packages :
>>
>> ii  libpython-stdlib:amd64         2.7.9-1 amd64        interactive high-level object-oriented language (default python version)
>> ii  libpython2.7-minimal:amd64     2.7.9-2 amd64        Minimal subset of the Python language (version 2.7)
>> ii  libpython2.7-stdlib:amd64      2.7.9-2 amd64        Interactive high-level object-oriented language (standard library, version 2.7)
>> ii  python                         2.7.9-1 amd64        interactive high-level object-oriented language (default version)
>> ii  python-apt                     0.9.3.12 amd64        Python interface to libapt-pkg
>> ii  python-apt-common              0.9.3.12 all          Python interface to libapt-pkg (locales)
>> ii  python-chardet                 2.3.0-1 all          universal character encoding detector for Python2
>> ii  python-dateutil                2.2-2 all          powerful extensions to the standard datetime module
>> ii  python-debian                  0.1.27 all          Python modules to work with Debian-related data formats
>> ii  python-debianbts               1.12 all          Python interface to Debian's Bug Tracking System
>> ii  python-defusedxml              0.4.1-2 all          XML bomb protection for Python stdlib modules (for Python 2)
>> ii  python-docutils                0.12+dfsg-1 all          text processing system for reStructuredText (implemented in Python 2)
>> ii  python-egenix-mxdatetime       3.2.8-1 amd64        date and time handling routines for Python
>> ii  python-egenix-mxtools          3.2.8-1 amd64        collection of additional builtins for Python
>> ii  python-ldap                    2.4.10-1 amd64        LDAP interface module for Python
>> ii  python-lxml                    3.4.0-1 amd64        pythonic binding for the libxml2 and libxslt libraries
>> ii  python-minimal                 2.7.9-1 amd64        minimal subset of the Python language (default version)
>> ii  python-owslib                  0.8.10-1 all          Client library for Open Geospatial (OGC) web services
>> ii  python-pkg-resources           5.5.1-1 all          Package Discovery and Resource Access using pkg_resources
>> ii  python-psycopg2                2.5.4+dfsg-1 amd64        Python module for PostgreSQL
>> ii  python-reportbug               6.6.3 all          Python modules for interacting with bug tracking systems
>> ii  python-roman                   2.0.0-1 all          module for generating/analyzing Roman numerals for Python 2
>> ii  python-six                     1.8.0-1 all          Python 2 and 3 compatibility library (Python 2 interface)
>> ii  python-soappy                  0.12.22-1 all          SOAP Support for Python
>> ii  python-support                 1.0.15 all          automated rebuilding support for Python modules
>> ii  python-tz                      2012c+dfsg-0.1 all          Python version of the Olson timezone database
>> ii  python-wstools                 0.4.3-2 all          WSDL parsing tools Python module
>> ii  python2.7                      2.7.9-2 amd64        Interactive high-level object-oriented language (version 2.7)
>> ii  python2.7-minimal              2.7.9-2 amd64        Minimal subset of the Python language (version 2.7)
>>
>>
>> any idea ?
>>
>> Thanks in advance.
>>
>>
>> Ernest.
>>
>> -- 
>> Ernest CHIARELLO - Ernest.Chiarello at univ-fcomte.fr
>> UMR6049 ThéMA -- CNRS / université de Franche-Comté
>> 32 rue Mégevand 25030 Besançon cedex
>>
>> Tel : 03 81 66 54 80           Mob : 07 82 99 11 08
>>
>>
>> _______________________________________________
>> OWSLib-users mailing list
>> OWSLib-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/owslib-users


-- 
Ernest CHIARELLO  -  Ernest.Chiarello at univ-fcomte.fr
UMR6049 ThéMA - Théoriser et Modéliser pour Aménager
CNRS / université de Bourgogne Franche-Comté
32 rue Mégevand 25030 BESANÇON Cedex

Tel : 03 81 66 54 80           Mob : 07 82 99 11 08




More information about the OWSLib-users mailing list