Failed to import LineModel, ransac

40 views
Skip to first unread message

Jean-Patrick Pommier

unread,
Jul 17, 2013, 1:34:01 PM7/17/13
to scikit...@googlegroups.com
Hi,

When doing from ipython:

print skimage.__version__
from skimage.measure import LineModel

I get:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-55-c6b2bd2de1ce> in <module>()
      1 print skimage.__version__
----> 2 from skimage.measure import LineModel

ImportError: cannot import name LineModel

0.9dev

Is it a version problem ?

Jean-Patrick

Michael Aye

unread,
Jul 17, 2013, 7:43:53 PM7/17/13
to scikit...@googlegroups.com
I also have 0.9dev via EPD, and also do not have LineModel or ransac inside the measure module.

Tony Yu

unread,
Jul 17, 2013, 10:56:05 PM7/17/13
to scikit...@googlegroups.com
On Wed, Jul 17, 2013 at 6:43 PM, Michael Aye <kmicha...@gmail.com> wrote:
I also have 0.9dev via EPD, and also do not have LineModel or ransac inside the measure module.

I didn't think EPD offered dev versions of packages. I can only see 0.8.2. In any case, it depends on how recently the dev version was updated. The RANSAC code was only merged into master about 2 months ago. (Any pulls from master in the last 4 months will be labeled 0.9dev.)

Best,
-Tony

On Wednesday, July 17, 2013 10:34:01 AM UTC-7, Jean-Patrick Pommier wrote:
Hi,

When doing from ipython:

print skimage.__version__
from skimage.measure import LineModel

I get:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-55-c6b2bd2de1ce> in <module>()
      1 print skimage.__version__
----> 2 from skimage.measure import LineModel

ImportError: cannot import name LineModel

0.9dev

Is it a version problem ?

Jean-Patrick

--
You received this message because you are subscribed to the Google Groups "scikit-image" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scikit-image...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jean-Patrick Pommier

unread,
Jul 18, 2013, 6:42:12 AM7/18/13
to scikit...@googlegroups.com
I forget to mention that skimage is running on ubuntu 13.04 and was installed with easy_install.


2013/7/18 Tony Yu <tsy...@gmail.com>

--
You received this message because you are subscribed to a topic in the Google Groups "scikit-image" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scikit-image/24fxSmErl1c/unsubscribe.
To unsubscribe from this group and all of its topics, send an email to scikit-image...@googlegroups.com.

Stéfan van der Walt

unread,
Jul 18, 2013, 9:17:28 AM7/18/13
to scikit-image
We should update the online docs to point to the last stable version
instead of to dev (as has been suggested by others in the past)--I see
it causes some confusion.

Stéfan

Jean-Patrick Pommier

unread,
Jul 18, 2013, 2:42:13 PM7/18/13
to scikit...@googlegroups.com
The example using LineModel mentions skimage 0.9. To use LineModel, should I try to use the stable version ?


2013/7/18 Stéfan van der Walt <ste...@sun.ac.za>

Johannes Schönberger

unread,
Jul 18, 2013, 3:10:43 PM7/18/13
to <scikit-image@googlegroups.com>, scikit...@googlegroups.com
@all You must download the latest development version on github to use the Line, Circle and EllipseModel and ransac. They were added just about 1 month ago. 0.9 is the dev version. 0.8 the stable version. 

Johannes Schönberger

Tony Yu

unread,
Jul 18, 2013, 4:44:01 PM7/18/13
to scikit...@googlegroups.com

Michael Aye

unread,
Jul 18, 2013, 7:09:45 PM7/18/13
to scikit...@googlegroups.com

I didn't think EPD offered dev versions of packages. I can only see 0.8.2. In any case, it depends on how recently the dev version was updated. The RANSAC code was only merged into master about 2 months ago. (Any pulls from master in the last 4 months will be labeled 0.9dev.)

 
Yeah, sorry for that. Must have pulled master in at sometime for some interesting feature. I am still regularly confused by the fact that enpkg --remove does leave the egg in site-packages, and for some reason I don't have the git folder of skimage anymore, so I thought it must have come via enpkg.
Reply all
Reply to author
Forward
0 new messages