Opened 6 years ago

Closed 3 years ago

#2071 closed defect (fixed)

SciTools IRIS 2.10 missing from Python3

Reported by: darkblueb Owned by: osgeolive@…
Priority: major Milestone: OSGeoLive14.0
Component: OSGeoLive Keywords: python, IRIS, scitools
Cc: osgeolive@…


the OSGeoLive version 12 based on Ubuntu Bionic (1804) currently installs Scitools IRIS via dot-deb packaging found here [0]

IRIS [1] "may be broken for Python3" in this environment per the packager Angelos Tzotsos. This ticket is a place to find a workaround or longer-term fix.



Change history (15)

comment:1 by darkblueb, 6 years ago

Phil Elson writes:

Thanks for letting us know. I’m sorry to say I can’t find the detail regarding the python 3 issue. 
If I were to guess though, I suspect the problem is that pyke forked itself and maintains two branches 
for its python 2 -> python 3 journey (don’t know why one would choose to do that). 

As a result, pyke for python 3 needs to come from a different source. 
To see how to work around that, the conda-forge build for this is done in

Hopefully my guess is on target, but if not, 
could you point me at the detail and I’ll try to help?

Philip Elson | Scientific Python Technical Lead
Analysis, Visualisation and Data Team (AVD)
Met Office  FitzRoy Road  Exeter  Devon  EX1 3PB  United Kingdom
Email:  Website:
Our magazine Barometer is now available online at

comment:2 by darkblueb, 6 years ago

Priority: majornormal

12dev beta2

defer until after RC 12.0

comment:3 by kalxas, 5 years ago

Milestone: OSGeoLive12.0OSGeoLive13.0

Ticket retargeted after milestone closed

comment:4 by darkblueb, 5 years ago

open in o13 alpha2

comment:5 by kalxas, 5 years ago

Thank you for the information that there is a separate source for python3.

I am now trying to make a python3-pyke package.

comment:6 by kalxas, 5 years ago

Iris 2.2.1 has landed in our ppa.

python3-pyke has also been created, but python3-iris fails to build.

comment:7 by kalxas, 5 years ago

Milestone: OSGeoLive13.0OSGeoLive14.0

comment:8 by kalxas, 3 years ago

During the OSGeo Virtual Code Sprint we decided: we will try to package py3 version (pike etc), else we will include as py2 in VM. e-mail to project to ask about 20.04

comment:9 by kalxas, 3 years ago

Cc: osgeolive@… added
Priority: normalcritical

comment:11 by kalxas, 3 years ago

Current Iris build error:

Unable to create '/usr/lib/python3/dist-packages/pyke/krb_compiler/'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pyke/krb_compiler/'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/pyke/", line 108, in __init__
  File "/usr/lib/python3/dist-packages/pyke/", line 285, in compile
  File "/usr/lib/python3/dist-packages/pyke/", line 265, in do_by_ext
    return getattr(self, "%s_%s" % (prefix, ext))(filename, *args)
  File "/usr/lib/python3/dist-packages/pyke/", line 298, in compile_krb
    return krb_compiler.compile_krb(rb_name, self.package_name,
  File "/usr/lib/python3/dist-packages/pyke/krb_compiler/", line 114, in compile_krb
    ast = krbparser.parse(krbparser, filename)
  File "/usr/lib/python3/dist-packages/pyke/krb_compiler/", line 595, in parse
    scanner.init(scanner, debug, check_tables)
  File "/usr/lib/python3/dist-packages/pyke/krb_compiler/", line 688, in init
    lexer = lex.lex(module=this_module, optimize=1,
  File "/usr/lib/python3/dist-packages/pyke/krb_compiler/ply/", line 1004, in lex
  File "/usr/lib/python3/dist-packages/pyke/krb_compiler/ply/", line 176, in writetab
    tf = open(filename,"w")
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pyke/krb_compiler/'
error: command '/usr/bin/python3' failed with exit status 1
Version 0, edited 3 years ago by kalxas (next)

comment:12 by kalxas, 3 years ago

We need to reach out to IRIS team, perhaps they will have some feedback on the above error.

comment:13 by kalxas, 3 years ago

feedback from sebastic:

The build script is writing outside the build/install directory, it mustn't do that. The build is broken by design, because if an unpriviledged user builds the project it will fail as well. The iris people will need to help you to make it behave more appropriately.

comment:14 by kalxas, 3 years ago

Priority: criticalmajor

Based on the above feedback I propose we move Iris to VM only, where we can build it in a virtualenv

Note: See TracTickets for help on using tickets.