Obspy: Archlinux: Proj version pinning in packaging

Created on 11 Sep 2019  路  6Comments  路  Source: obspy/obspy

can't import Client to get data

my settings

  • manjaro linux
  • obspy installed via AUR
  • python 3.7.4, numpy 1.17.0, obspy is either 1.1.1-1 (AUR, or 0.0.0+archive from obspy.__version__), pyproj 2.3.0, Proj 6.1.0-1

problem

from obspy.clients.fdsn import Client causes the following:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.7/site-packages/obspy/__init__.py", line 39, in <module>
    from obspy.core.utcdatetime import UTCDateTime  # NOQA
  File "/usr/lib/python3.7/site-packages/obspy/core/__init__.py", line 125, in <module>
    from obspy.core.util.attribdict import AttribDict  # NOQA
  File "/usr/lib/python3.7/site-packages/obspy/core/util/__init__.py", line 27, in <module>
    from obspy.core.util.base import (ALL_MODULES, DEFAULT_MODULES,
  File "/usr/lib/python3.7/site-packages/obspy/core/util/base.py", line 398, in <module>
    PROJ4_VERSION = get_proj_version()
  File "/usr/lib/python3.7/site-packages/obspy/core/util/base.py", line 383, in get_proj_version
    version_string = str(Proj(proj='utm', zone=10, ellps='WGS84').proj_version)
AttributeError: 'Proj' object has no attribute 'proj_version'

tbh i hardcoded the current version number in there to get it running for the moment... :-/

external packaging

Most helpful comment

OK, gotcha. @heavelock

@frodo4fingers you should report this necessary pinning on https://aur.archlinux.org/packages/python-obspy/ in comments. I would've done it but this AUR site has the dumbest bot-protection in registration I have ever seen. Basically you can't register if you don't have an archlinux machine or do some serious online research because it wants some stdout of an Archlinux-specific command not available on any other system. It's incredible.

All 6 comments

Duplicate of https://github.com/obspy/obspy/issues/2445.
Pyproj has to be in version 1.9.5.1

Pyproj has to be in version 1.9.5.1

I'm confused.. why should we need a highly specific version of pyproj, @heavelock?

Due issue that is being solved in (Derrick's comment): https://github.com/obspy/obspy/pull/2442
Pyproj > 2 changed API. Before we ship this PR, in case of python 3.7 the pyproj has to be <2.

OK, gotcha. @heavelock

@frodo4fingers you should report this necessary pinning on https://aur.archlinux.org/packages/python-obspy/ in comments. I would've done it but this AUR site has the dumbest bot-protection in registration I have ever seen. Basically you can't register if you don't have an archlinux machine or do some serious online research because it wants some stdout of an Archlinux-specific command not available on any other system. It's incredible.

@megies .. it went even further. that cpatcha-command is invalid on my site.. apparently. tried with two different machines - no luck.
is there a way to protect this issue somehow so other users will find it?

Dunno what you mean with "protect". Issues don't get deleted on github, this will stay here, but of course it's only one ticket among thousands, so visibility might be poor

Btw.. I even installed pacman package on my Debian machine. I was looking at a clone of the video game, tryin to fill out that stupid registration captcha.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EvaEibl picture EvaEibl  路  10Comments

Khalilsqu picture Khalilsqu  路  3Comments

mhearne-usgs picture mhearne-usgs  路  6Comments

d-chambers picture d-chambers  路  6Comments

JackWalpole picture JackWalpole  路  11Comments