Scikit-image: AttributeError: module 'skimage' has no attribute 'transform'

Created on 15 Oct 2019  路  4Comments  路  Source: scikit-image/scikit-image

Description

It only happens with version 0.16.1. There is no such problem with version 0.15.0.

Version information

# Paste the output of the following python commands
3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)]
Windows-10-10.0.18362-SP0
scikit-image version: 0.16.1
numpy version: 1.16.5
# your output here
AttributeError: module 'skimage' has no attribute 'transform'

Most helpful comment

I suspect you are doing:

import skimage
skimage.transform.(whatever)

but that was never designed to work: scikit-image uses "lazy importing", so you have to explicitly import submodules:

import skimage.transform
skimage.transform.(whatever)

If it worked before it was an implementation error, not a design flaw.

Please let me know if my intuition above is correct and that fixes your issue...

All 4 comments

@rathaROG what command gave you that output?

I suspect you are doing:

import skimage
skimage.transform.(whatever)

but that was never designed to work: scikit-image uses "lazy importing", so you have to explicitly import submodules:

import skimage.transform
skimage.transform.(whatever)

If it worked before it was an implementation error, not a design flaw.

Please let me know if my intuition above is correct and that fixes your issue...

Hi @jni ! import skimage.transform works. Thanks!

import skimage.transform works .thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

soupault picture soupault  路  4Comments

FirefoxMetzger picture FirefoxMetzger  路  4Comments

sakvaua picture sakvaua  路  4Comments

jfflanagan picture jfflanagan  路  5Comments

emmanuelle picture emmanuelle  路  4Comments