Opened 4 years ago

Closed 4 years ago

#61178 closed defect (fixed)

py-scikit-image @0.17.2_0: ModuleNotFoundError: No module named 'tifffile'

Reported by: quintusdias (John G Evans) Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: chrstphrchvz (Christopher Chavez)
Port: py-scikit-image

Description

>>> import skimage.io
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/skimage/io/__init__.py", line 7, in <module>
    from .manage_plugins import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/skimage/io/manage_plugins.py", line 23, in <module>
    from .collection import imread_collection_wrapper
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/skimage/io/collection.py", line 13, in <module>
    from tifffile import TiffFile
ModuleNotFoundError: No module named 'tifffile'

In other python distributions, this imports ok. On fedora linux, it actually looks like the tifffile module lies in skimage.external, which does not seem to exist on the macports version.

Change History (9)

comment:1 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

I can reproduce the error. As of version 0.17.0, scikit-image no longer bundles tifffile, and expects it to be installed separately. A port for it will need to be added to MacPorts and specified as a runtime dependency of the pyXX-scikit-image port.

comment:2 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to stromnov
Port: py-scikit-image added; py38-scikit-image removed
Status: newassigned
Summary: Import problem with py38-scikit-image @0.17.2_0py-scikit-image @0.17.2_0: ModuleNotFoundError: No module named 'tifffile'

comment:4 Changed 4 years ago by Schamschula (Marius Schamschula)

I've got a py-tifffile port in my local tree. I'll push it later today.

comment:5 Changed 4 years ago by Schamschula (Marius Schamschula)

comment:6 Changed 4 years ago by Schamschula (Marius Schamschula)

In 71b77a5d3b594dcb53fd9cf785669ff5f8d16fb0/macports-ports (master):

py-scikit-image: add py-tifffile runtime dependency

See: #61178

comment:7 Changed 4 years ago by barrettsa

I'm running into the same problem with py36-scikit-image, which declares a dependency on py36-tifffile, which is not addressed by the py-tifffile port file mentioned above.

comment:8 in reply to:  7 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

Replying to barrettsa:

I'm running into the same problem with py36-scikit-image, which declares a dependency on py36-tifffile, which is not addressed by the py-tifffile port file mentioned above.

This should be resolved by [f01bfa8111/macports-ports] and [07fa310829/macports-ports].

I think this ticket can be closed.

comment:9 Changed 4 years ago by reneeotten (Renee Otten)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.