Package Details: phyghtmap 2.23-2

Git Clone URL: https://aur.archlinux.org/phyghtmap.git (read-only, click to copy)
Package Base: phyghtmap
Description: Generate OSM contour lines from NASA SRTM data
Upstream URL: http://katze.tfiu.de/projects/phyghtmap/
Licenses: GPL2
Submitter: beej
Maintainer: fordprefect (sowieso)
Last Packager: fordprefect
Votes: 6
Popularity: 0.000254
First Submitted: 2013-10-01 18:16 (UTC)
Last Updated: 2024-02-05 09:11 (UTC)

Latest Comments

1 2 Next › Last »

fordprefect commented on 2024-02-05 09:12 (UTC)

Thanks, mitigated with a sed for now. I will contact upstream to get a permanent fix there.

dreieck commented on 2024-02-05 08:32 (UTC) (edited on 2024-02-05 08:33 (UTC) by dreieck)

When I run phyghtmap (without any options, or with --help, just to learn about it), it crashes with ImportError: cannot import name '_contour' from 'matplotlib':

Traceback (most recent call last):
  File "/usr/bin/phyghtmap", line 33, in <module>
    sys.exit(load_entry_point('phyghtmap==2.23', 'console_scripts', 'phyghtmap')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/phyghtmap", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.11/site-packages/phyghtmap/main.py", line 17, in <module>
    from phyghtmap import hgt
  File "/usr/lib/python3.11/site-packages/phyghtmap/hgt.py", line 18, in <module>
    from matplotlib import _contour
ImportError: cannot import name '_contour' from 'matplotlib' (/usr/lib/python3.11/site-packages/matplotlib/__init__.py)

Regards!

StephQ commented on 2021-01-07 15:57 (UTC)

I was successful with phyghtmap_2.22.orig.tar.gz and Python 3.9.1 (Manjaro…)

With phyghtmap_2.21 SRTMv3 data sources didn't work any longer. Corrected with phyghtmap_2.22.

fordprefect commented on 2021-01-01 18:15 (UTC)

@StephQ: cant reproduce your issue, do you mind sharing the invocating command line? Also, make sure all your packages are upgraded to python 3.9 and the system is up-to-date.

StephQ commented on 2021-01-01 06:07 (UTC)

Issue with python39

Traceback (most recent call last):
  File "/usr/bin/phyghtmap", line 33, in <module>
    sys.exit(load_entry_point('phyghtmap==2.21', 'console_scripts', 'phyghtmap')())
  File "/usr/lib/python3.9/site-packages/phyghtmap/main.py", line 659, in main
    opts, args = parseCommandLine()
  File "/usr/lib/python3.9/site-packages/phyghtmap/main.py", line 302, in parseCommandLine
    earthexplorerUser = configUtil.Config(configFilename).setOrGet(
  File "/usr/lib/python3.9/site-packages/phyghtmap/configUtil.py", line 13, in __init__
    self.parse()
  File "/usr/lib/python3.9/site-packages/phyghtmap/configUtil.py", line 46, in parse
    key, value = self._decodeLine(l)
  File "/usr/lib/python3.9/site-packages/phyghtmap/configUtil.py", line 22, in _decodeLine
    key = base64.decodestring(b64Key.encode()).decode()
AttributeError: module 'base64' has no attribute 'decodestring'
Exception ignored in: <function Config.__del__ at 0x7fe0b45f5a60>
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/phyghtmap/configUtil.py", line 17, in __del__
    self.write()
  File "/usr/lib/python3.9/site-packages/phyghtmap/configUtil.py", line 50, in write
    if not self.needsWrite:
AttributeError: 'Config' object has no attribute 'needsWrite'

sikmir commented on 2018-07-20 20:20 (UTC) (edited on 2018-07-20 20:37 (UTC) by sikmir)

Traceback (most recent call last):
  File "/usr/bin/phyghtmap", line 11, in <module>
    load_entry_point('phyghtmap==2.0', 'console_scripts', 'phyghtmap')()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 476, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2700, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2318, in load
    return self.resolve()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.6/site-packages/phyghtmap/main.py", line 17, in <module>
    from phyghtmap import hgt
  File "/usr/lib/python3.6/site-packages/phyghtmap/hgt.py", line 10, in <module>
    from matplotlib import _cntr
ImportError: cannot import name '_cntr'

UPD: updating to 2.20 solves the problem.

melvinvermeeren commented on 2017-10-19 15:02 (UTC)

@fordperfect seems to work fine now, thanks for quick update.

fordprefect commented on 2017-10-19 14:46 (UTC)

@melvinvermeeren: thank you, I implemented the python3 move. Since I am not able to test atm, could you confirm this does the trick?

melvinvermeeren commented on 2017-10-19 13:12 (UTC)

I got "ImportError: cannot import name request" with the current python2 PKGBUILD. Upstream indicates python >= 3.0 is supported, so I updated the PKGBUILD locally. Seems to work fine now (--help works at least). The diff is listed below in case you want to update (pkgrel not bumped in diff). I also added optdepend for python-gdal. Thanks for maintaining. diff --git a/PKGBUILD b/PKGBUILD index d4e8514..a3aa6ef 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -7,19 +7,20 @@ arch=('any') url="http://katze.tfiu.de/projects/phyghtmap/" license=('GPL2') depends=( - 'python2' - 'python2-beautifulsoup3' - 'python2-matplotlib' - 'python2-numpy' + 'python' + 'python-beautifulsoup4' + 'python-matplotlib' + 'python-numpy' ) -makedepends=('python2-setuptools') +makedepends=('python-setuptools') +optdepends=('python-gdal: support for GeoTiff input files') options=(!emptydirs) source=("http://katze.tfiu.de/projects/phyghtmap/phyghtmap_${pkgver}.orig.tar.gz") sha256sums=('54e71c243d152eee9eb888137fde78950860f42905155b553dbc44ecb4ec6caa') package() { cd "$srcdir/$pkgname-$pkgver" - python2 setup.py install --root="$pkgdir/" --optimize=1 + python setup.py install --root="$pkgdir/" --optimize=1 } # vim:set ts=2 sw=2 et:

fordprefect commented on 2015-08-04 17:40 (UTC)

i see this is updated upstream, but since i am on vacation with barely any internet (windows only etc) this version bumb will have to wait until i return late august. version bump sould be fairly easy. thanks for flagging!