Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488698 - =sci-physics/lhapdf-5.8.9 with Python 3 - lhapdf-getdata --dest=/usr/share/lhapdf/PDFsets --all: File "/usr/bin/lhapdf-getdata", line 44 except urllib2.URLError, e: ^ SyntaxError: invalid syntax
Summary: =sci-physics/lhapdf-5.8.9 with Python 3 - lhapdf-getdata --dest=/usr/share/lh...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Physics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-20 10:32 UTC by Andrew Savchenko
Modified: 2013-10-30 17:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,8.04 KB, text/plain)
2013-10-20 10:33 UTC, Andrew Savchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2013-10-20 10:32:54 UTC
Hello,

I just want to fetch PDF data files as described in lhapdf einfo message:
 * To install data files, you have to run as root:
 * lhapdf-getdata --dest=/usr/share/lhapdf/PDFsets --all

But looks like lhapdf is not compatible with python3, when python-3.2 or 3.3 is active:

# lhapdf-getdata --dest=/usr/share/lhapdf/PDFsets --all
  File "/usr/bin/lhapdf-getdata", line 44
    except urllib2.URLError, e:
                           ^
SyntaxError: invalid syntax

With python-2.7 set as system default works fine.
Comment 1 Andrew Savchenko gentoo-dev 2013-10-20 10:33:51 UTC
Created attachment 361416 [details]
emerge --info
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2013-10-30 17:16:35 UTC
+*lhapdf-5.9.1 (30 Oct 2013)
+
+  30 Oct 2013; Sébastien Fabbro <bicatali@gentoo.org> -lhapdf-5.8.8.ebuild,
+  lhapdf-5.8.9.ebuild, +lhapdf-5.9.1.ebuild:
+  Version bump, switch to EAPI5 and python-r1, fixing bug #488698
+