[opensuse] What is Python 'backports.tempfile'
I just tried running a local Python app, and I now get this error: Traceback (most recent call last): File "/opt/rsoft/lib/rmt/stat/rmtstat.pyw", line 43, in <module> from z3c.rml import rml2pdf File "/usr/lib/python2.7/site-packages/z3c/rml/__init__.py", line 6, in <module> __version__ = pkg_resources.require('z3c.rml')[0].version File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 892, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 778, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'backports.tempfile' distribution was not found and is required by z3c.rml I do not know when this may have started. Could it be that I need a new python package? -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Mon, Mar 26, 2018 at 9:58 AM, Roger Oberholtzer <roger.oberholtzer@gmail.com> wrote:
I just tried running a local Python app, and I now get this error:
Traceback (most recent call last): File "/opt/rsoft/lib/rmt/stat/rmtstat.pyw", line 43, in <module> from z3c.rml import rml2pdf File "/usr/lib/python2.7/site-packages/z3c/rml/__init__.py", line 6, in <module> __version__ = pkg_resources.require('z3c.rml')[0].version File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 892, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 778, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'backports.tempfile' distribution was not found and is required by z3c.rml
I do not know when this may have started. Could it be that I need a new python package?
Issue solved with a work-around: I see that the issue is with the python-z3c-rml package (which I have in OBS). The newer version uses some python 3 things. When I reverted to an older version of python-z3c-rml, the complaint went away. For future issues: I also tried installing the python-backports package. But I guess it does not have a backport of the tempfile command? Is DistributionNotFound like the openSUSE cnf (command not found) in that any missing function is first checked to see if its available as a backport? And if that fails, you get the error I saw? -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
Roger Oberholtzer