Me gustaría acceder al dispositivo descrito en QGIS live GPS tracking /hardware recomendado (GPS USB stick) mediante QGIS/Python.
Un módulo gps no parece ser parte de la instalación estándar de python 2.7 que viene con QGIS 2.14.1 instalado a través del instalador OSGeo4W (aunque he leído en alguna parte que el módulo gps es parte de la instalación estándar de Python).
Plataforma: Windows10
>>> import gps
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named gps
Sin embargo, tratando de instalar algunos módulos relacionados (gps, gps3, gpsd, GPSReader) a través de OSGeo4W shell me da errores como
C:\Users\Jochen\Downloads>pip install gps3
Collecting gps3
C:\OSGeo4W64\apps\Python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
C:\OSGeo4W64\apps\Python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Could not find a version that satisfies the requirement gps3 (from versions: )
No matching distribution found for gps3
Pero
C:\Users\Jochen\Downloads>pip search gps3
C:\OSGeo4W64\apps\Python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
C:\OSGeo4W64\apps\Python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
gps3 (0.1a) - Python2.7- Python3.4 gpsd interface
enumera, por ejemplo, el módulo gps3.
Simplemente necesito lat/lon del gps, ¿qué módulos instalar y cómo? ¿O cualquier otra pista de cómo lograr esto?
Algunas cosas que he encontrado en este contexto:
https://trac.osgeo.org/osgeo4w/wiki/ExternalPythonPackages
¿Cómo instalar bibliotecas python de terceros para QGIS en Windows?