Package Details: phyghtmap 2.22-1

Git Clone URL: (read-only, click to copy)
Package Base: phyghtmap
Description: Generate OSM contour lines from NASA SRTM data
Upstream URL:
Licenses: GPL2
Submitter: beej
Maintainer: fordprefect (sowieso)
Last Packager: fordprefect
Votes: 4
Popularity: 0.000000
First Submitted: 2013-10-01 18:16
Last Updated: 2021-01-07 16:31

Latest Comments

StephQ commented on 2021-01-07 15:57

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

@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

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/", line 659, in main
    opts, args = parseCommandLine()
  File "/usr/lib/python3.9/site-packages/phyghtmap/", line 302, in parseCommandLine
    earthexplorerUser = configUtil.Config(configFilename).setOrGet(
  File "/usr/lib/python3.9/site-packages/phyghtmap/", line 13, in __init__
  File "/usr/lib/python3.9/site-packages/phyghtmap/", line 46, in parse
    key, value = self._decodeLine(l)
  File "/usr/lib/python3.9/site-packages/phyghtmap/", 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/", line 17, in __del__
  File "/usr/lib/python3.9/site-packages/phyghtmap/", line 50, in write
    if not self.needsWrite:
AttributeError: 'Config' object has no attribute 'needsWrite'

sikmir commented on 2018-07-20 20:20

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/", line 476, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.6/site-packages/pkg_resources/", line 2700, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.6/site-packages/pkg_resources/", line 2318, in load
    return self.resolve()
  File "/usr/lib/python3.6/site-packages/pkg_resources/", line 2324, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.6/site-packages/phyghtmap/", line 17, in <module>
    from phyghtmap import hgt
  File "/usr/lib/python3.6/site-packages/phyghtmap/", 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

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

fordprefect commented on 2017-10-19 14:46

@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

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
@@ -7,19 +7,20 @@ arch=('any')
- 'python2'
- 'python2-beautifulsoup3'
- 'python2-matplotlib'
- 'python2-numpy'
+ 'python'
+ 'python-beautifulsoup4'
+ 'python-matplotlib'
+ 'python-numpy'
+optdepends=('python-gdal: support for GeoTiff input files')

package() {
cd "$srcdir/$pkgname-$pkgver"
- python2 install --root="$pkgdir/" --optimize=1
+ python install --root="$pkgdir/" --optimize=1

# vim:set ts=2 sw=2 et:

fordprefect commented on 2015-08-04 17:40

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!

beej commented on 2013-10-02 20:06

It was working for me with beautifulsoup4, but I'll switch it to 3 and add the build dep. Thanks!

Dragonlord commented on 2013-10-02 19:57

FYI: The correct dependency seems to be python2-beautifulsoup3 and python2-setuptools are needed for successfull build.