[scikit-image] Import error of threshold_niblack & threshold_sauvola

Juan Nunez-Iglesias jni.soma at gmail.com
Mon Feb 13 00:44:15 EST 2017


Ah! Well good work on troubleshooting compilation!

Typically when this happens the problem is that Python is picking up your "standard" install of scikit image. Are you using Anaconda? If so maybe you should try conda uninstall scikit-image and then, in your skimage source directory:

pip install -U [--no-deps] -e .

(Including the dot at the end. The no-deps is optional and good when you're sure you already have the dependencies.)

This is now the preferred way to make an editable install of a package. Updating the docs to reflect this might make a great first contribution! =)

Juan.

On 13 Feb 2017, 3:09 PM +1000, Sarwat Fatima <sarwatfatimam at gmail.com>, wrote:
> Yes, it's an import error. However, I cloned scikit-image and build the source using python setup.py develop. It was successful after installing the right compilers, but I am still receiving the import error.
>
> On 13/02/2017 3:19 AM, <scikit-image-request at python.org (mailto:scikit-image-request at python.org)> wrote:
> > Send scikit-image mailing list submissions to
> > scikit-image at python.org (mailto:scikit-image at python.org)
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > https://mail.python.org/mailman/listinfo/scikit-image
> > or, via email, send a message with subject or body 'help' to
> > scikit-image-request at python.org (mailto:scikit-image-request at python.org)
> >
> > You can reach the person managing the list at
> > scikit-image-owner at python.org (mailto:scikit-image-owner at python.org)
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of scikit-image digest..."
> >
> >
> > Today's Topics:
> >
> > 1. Re: Installing scikit-image dev (Stefan van der Walt)
> > 2. Re: Installing scikit-image dev (Juan Nunez-Iglesias)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Sun, 12 Feb 2017 12:07:55 -0800
> > From: Stefan van der Walt <stefanv at berkeley.edu (mailto:stefanv at berkeley.edu)>
> > To: scikit-image at python.org (mailto:scikit-image at python.org)
> > Subject: Re: [scikit-image] Installing scikit-image dev
> > Message-ID:
> > <1486930075.84793.878619048.772F0B2B at webmail.messagingengine.com (mailto:1486930075.84793.878619048.772F0B2B at webmail.messagingengine.com)>
> > Content-Type: text/plain; charset="utf-8"
> >
> > Hi,
> >
> >
> >
> > Can you please post the error you get when trying to import those
> > filters?
> >
> >
> > Thanks
> >
> > St?fan
> >
> >
> >
> >
> >
> > On Sat, Feb 11, 2017, at 14:22, Sarwat Fatima wrote:
> >
> > > Hello,
> >
> > >
> >
> > > I wanted to try out the example code of
> > > filters.threshold_{niblack,sauvola}from the dev docs but it gave an
> > > import error for both threshold filters. So I cloned scikit-image
> > > repository and tried python setup.py develop from the root directory
> > > but it resulted in an error i.e. "Unable to find vcvarsall.bat".
> > >
> >
> > > I am using Anaconda 4.0.0 version, Python 3.5, Windows 8.1.
> >
> > >
> >
> > > How can I install 0.13 version of scikit-image?
> >
> > >
> >
> > > Thankyou.
> >
> > > _________________________________________________
> >
> > > scikit-image mailing list
> >
> > > scikit-image at python.org (mailto:scikit-image at python.org)
> >
> > > https://mail.python.org/mailman/listinfo/scikit-image
> >
> >
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: <http://mail.python.org/pipermail/scikit-image/attachments/20170212/eb58b956/attachment-0001.html>
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Mon, 13 Feb 2017 08:17:44 +1000
> > From: Juan Nunez-Iglesias <jni.soma at gmail.com (mailto:jni.soma at gmail.com)>
> > To: scikit-image at python.org (mailto:scikit-image at python.org), Stefan van der Walt
> > <stefanv at berkeley.edu (mailto:stefanv at berkeley.edu)>
> > Subject: Re: [scikit-image] Installing scikit-image dev
> > Message-ID: <109338f2-2756-42a1-a46d-8a84d6975ebc at Spark>
> > Content-Type: text/plain; charset="utf-8"
> >
> > I'm pretty sure it'll be an import error since those aren't in 0.12...
> >
> > On 13 Feb 2017, 6:08 AM +1000, Stefan van der Walt <stefanv at berkeley.edu (mailto:stefanv at berkeley.edu)>, wrote:
> > > Hi,
> > >
> > > Can you please post the error you get when trying to import those filters?
> > >
> > > Thanks
> > > St?fan
> > >
> > >
> > > On Sat, Feb 11, 2017, at 14:22, Sarwat Fatima wrote:
> > > > Hello,
> > > >
> > > > I wanted to try out the example code of filters.threshold_{niblack,sauvola}from the dev docs but it gave an import error for both threshold filters. So I cloned scikit-image repository and tried python setup.py develop from the root directory but it resulted in an error i.e. "Unable to find vcvarsall.bat".
> > > >
> > > > I am using Anaconda 4.0.0 version, Python 3.5, Windows 8.1.
> > > >
> > > > How can I install 0.13 version of scikit-image?
> > > >
> > > > Thankyou.
> > > > _______________________________________________
> > > > scikit-image mailing list
> > > > scikit-image at python.org (mailto:scikit-image at python.org) (mailto:scikit-image at python.org)
> > > > https://mail.python.org/mailman/listinfo/scikit-image
> > >
> > > _______________________________________________
> > > scikit-image mailing list
> > > scikit-image at python.org (mailto:scikit-image at python.org)
> > > https://mail.python.org/mailman/listinfo/scikit-image
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: <http://mail.python.org/pipermail/scikit-image/attachments/20170213/6efc0e31/attachment.html>
> >
> > ------------------------------
> >
> > Subject: Digest Footer
> >
> > _______________________________________________
> > scikit-image mailing list
> > scikit-image at python.org (mailto:scikit-image at python.org)
> > https://mail.python.org/mailman/listinfo/scikit-image
> >
> >
> > ------------------------------
> >
> > End of scikit-image Digest, Vol 5, Issue 6
> > ******************************************
>
> _______________________________________________
> scikit-image mailing list
> scikit-image at python.org
> https://mail.python.org/mailman/listinfo/scikit-image
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20170213/435aea45/attachment-0001.html>


More information about the scikit-image mailing list