# Errors with running the demo of the Classic Image Segmentation

**URL:** <https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207>\
**Category:** Segmenter\
**Tags:** segmentation\
**Created:** [June 2, 2020, 4:34pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207 "2020-06-02T16:34:24Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![mramsahoye](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@mramsahoye](https://forum.allencell.org/u/mramsahoye)\
**Post date:** [June 2, 2020, 4:34pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/1 "2020-06-02T16:34:24Z")

</div>

Hello!

I’ve been having some issues with the classic image segmentation demos. No matter which of the three kernels I have that are currently available to me, I cannot get it to run because the libraries are not downloading.

This error is produced with the Python3 interpreter and the Python[conda env: segmentation]\* interpreters:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/allencell/original/1X/4c4784d56fcdcd2ca1d4ba1200e801ea352480f3.png)

This error is produced with the Python[conda env: root] kernel: No module named itkwidgets. (Sorry, new users can only post one image…).

Anyone have any hints into getting this to work?

Thanks!

---

<div class="post-metadata">

**Author:** ![jianxu\_chen](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@jianxu\_chen](https://forum.allencell.org/u/jianxu_chen)\
**Post date:** [June 4, 2020, 9:15pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/2 "2020-06-04T21:15:18Z")

</div>

I would be happy to help. First of all, I would like to know more about the details.

I assume `segmentation` is the environment you installed `aicssegmentation`? If so, under the `segmentation` environment, can you try `pip show aicsimageio` and `pip show tifffile` and post the output here?

Also, just FYI. I just found some recent update of `tifffile`, `aicsimageio`, `aicsimageprocessing` cause some version conflict. We just made an update.

> <https://github.com/AllenInstitute/aics-segmentation/commit/a9d64c2a18531e6d65c64c15246c4a164248df7f>

You may try this out? (basically, `git pull` in your local repo, then re-install the package.)

Thanks,  
Jianxu

---

<div class="post-metadata">

**Author:** ![mramsahoye](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@mramsahoye](https://forum.allencell.org/u/mramsahoye)\
**Post date:** [June 5, 2020, 1:24pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/3 "2020-06-05T13:24:32Z")

</div>

I think this worked!!!  
I’m no longer getting those errors 🙂 well timed update, thank you!

---

<div class="post-metadata">

**Author:** ![lynn](https://avatars.discourse-cdn.com/v4/letter/l/e274bd/32.png) [@lynn](https://forum.allencell.org/u/lynn)\
**Post date:** [June 9, 2020, 9:31pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/4 "2020-06-09T21:31:29Z")

</div>

Hi there, I’m experiencing similar version conflicts when installing the machine learning version segmenter. Upon a fresh install, I got the error:  
ERROR: aicsimageio 0.6.4 has requirement tifffile==0.15.1, but you’ll have tifffile 2020.6.3 which is incompatible.

If I revert to tifffile==0.15.1, I receive another error:  
ERROR: scikit-image 0.17.2 has requirement tifffile\>=2019.7.26, but you’ll have tifffile 0.15.1 which is incompatible.

I had a similar problem when installing the classic segmenter a last week, but with a fresh install today, it seems to be fixed. Maybe the machine learning version needs a similar update to account for the new versions? (Could also be something wrong on my end of course - I tried to be careful following the installation instructions!)

---

<div class="post-metadata">

**Author:** ![jianxu\_chen](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@jianxu\_chen](https://forum.allencell.org/u/jianxu_chen)\
**Post date:** [June 9, 2020, 11:07pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/5 "2020-06-09T23:07:54Z")

</div>

Great thanks for your feedback. There is indeed a dependency version issue. It has been fixed. See this [https://github.com/AllenInstitute/aics-ml-segmentation/commit/2ec5d9e7aa1b4922652863ec6e05b083a7204074](https://github.com/AllenInstitute/aics-ml-segmentation/commit/2ec5d9e7aa1b4922652863ec6e05b083a7204074)

Could you give it one more try? Let me know if there is any issue.

Thanks,  
Jianxu

---

<div class="post-metadata">

**Author:** ![lynn](https://avatars.discourse-cdn.com/v4/letter/l/e274bd/32.png) [@lynn](https://forum.allencell.org/u/lynn)\
**Post date:** [June 10, 2020, 8:31pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/6 "2020-06-10T20:31:29Z")

</div>

Wow, thank you for the rapid response and update! I think that fixed it - I’m no longer getting errors for dependency conflicts during installation of the machine learning version.

---

<div class="post-metadata">

**Author:** ![jianxu\_chen](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@jianxu\_chen](https://forum.allencell.org/u/jianxu_chen)\
**Post date:** [June 10, 2020, 8:39pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/7 "2020-06-10T20:39:42Z")

</div>

Glad to hear. Feel free to leave a message if there is any bug, issue or question. Would be happy to help.

Thanks,  
Jianxu

---

<div class="post-metadata">

**Author:** ![mramsahoye](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@mramsahoye](https://forum.allencell.org/u/mramsahoye)\
**Post date:** [June 25, 2020, 8:19pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/8 "2020-06-25T20:19:52Z")

</div>

![error2](https://canada1.discourse-cdn.com/flex027/uploads/allencell/original/1X/7f6c23dbc11831c67ccc9127ace58c7300fb7bc5.png)

Hello there again!  
Uh…I’m not sure where this error is coming from now. Any ideas?  
It kind of just appeared one day last week; I haven’t changed the code and redownloaded just to make sure it wasn’t me having accidentally altered something.

Thanks!

---

<div class="post-metadata">

**Author:** ![jianxu\_chen](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@jianxu\_chen](https://forum.allencell.org/u/jianxu_chen)\
**Post date:** [June 25, 2020, 8:36pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/9 "2020-06-25T20:36:03Z")

</div>

it look like a dimension problem. Is your image single channel or multilple channel? 2d or 3d?

or you can simply try `IMG.shape`, which will tell the size of your image.

Jianxu

---

<div class="post-metadata">

**Author:** ![mramsahoye](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@mramsahoye](https://forum.allencell.org/u/mramsahoye)\
**Post date:** [June 25, 2020, 8:53pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/10 "2020-06-25T20:53:08Z")

</div>

It’s 3-D (so I’d figure 3 channels) but for whatever reason, the only number that will output any result is 0.  
Is this a feasible number to use?  
I apologize for so many questions; I’m still an undergrad 😅

---

<div class="post-metadata">

**Author:** ![jianxu\_chen](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@jianxu\_chen](https://forum.allencell.org/u/jianxu_chen)\
**Post date:** [June 25, 2020, 9:05pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/11 "2020-06-25T21:05:02Z")

</div>

Can you try `IMG.shape`?

---

<div class="post-metadata">

**Author:** ![mramsahoye](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@mramsahoye](https://forum.allencell.org/u/mramsahoye)\
**Post date:** [June 25, 2020, 9:07pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/12 "2020-06-25T21:07:26Z")

</div>

![shape](https://canada1.discourse-cdn.com/flex027/uploads/allencell/original/1X/a6c9b5f6a03eca052c70dc246784f16cb0cee422.png)

---

<div class="post-metadata">

**Author:** ![jianxu\_chen](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@jianxu\_chen](https://forum.allencell.org/u/jianxu_chen)\
**Post date:** [June 25, 2020, 9:11pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/13 "2020-06-25T21:11:44Z")

</div>

Look like your image is a single channel 3d image. So, only channel 0 works

---

<div class="post-metadata">

**Author:** ![mramsahoye](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@mramsahoye](https://forum.allencell.org/u/mramsahoye)\
**Post date:** [June 25, 2020, 9:16pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/14 "2020-06-25T21:16:39Z")

</div>

Ohhhhhhh. Ok, thank you!

---

<div class="post-metadata">

**Author:** ![mramsahoye](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@mramsahoye](https://forum.allencell.org/u/mramsahoye)\
**Post date:** [September 25, 2020, 12:25pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/15 "2020-09-25T12:25:33Z")

</div>

![error](https://canada1.discourse-cdn.com/flex027/uploads/allencell/original/1X/682b9ab784baa6e0cc9bd1e5f812913c4c0d03a8.png)

Hi there!

So I’m fresh installing again on another computer but I’m coming across this error; I’m assuming this means there was a change in that import? With a fresh install, it should have the most recent updates, right?

Thanks!

---

<div class="post-metadata">

**Author:** ![jianxu\_chen](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@jianxu\_chen](https://forum.allencell.org/u/jianxu_chen)\
**Post date:** [September 25, 2020, 2:29pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/16 "2020-09-25T14:29:11Z")

</div>

Sorry for the inconvinience. We are in the process of cleaning up the code to accommendate new aicsimageio API. For now, the easiest solution will be switching to the ‘dev’ branch after cloning the repo, then install the ‘dev’ branch. Let me know if more help is needed.

Thanks,  
Jianxu

---

<div class="post-metadata">

**Author:** ![jianxu\_chen](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@jianxu\_chen](https://forum.allencell.org/u/jianxu_chen)\
**Post date:** [September 28, 2020, 8:41pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/17 "2020-09-28T20:41:47Z")

</div>

hi @mramsahoye, we just deployed a new version which cleans up the issue you encountered. If you update your local repo, everything will be updated and should work now. Let me know if you have any more questions.

Jianxu

---

<div class="post-metadata">

**Author:** ![mramsahoye](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@mramsahoye](https://forum.allencell.org/u/mramsahoye)\
**Post date:** [September 28, 2020, 9:25pm UTC](https://forum.allencell.org/t/errors-with-running-the-demo-of-the-classic-image-segmentation/207/18 "2020-09-28T21:25:19Z")

</div>

Thanks so much for the fast reply!!
