# MarkupsCurve with Endoscopy error message

**URL:** <https://discourse.slicer.org/t/markupscurve-with-endoscopy-error-message/14862>\
**Category:** Support\
**Created:** [December 3, 2020, 1:07pm UTC](https://discourse.slicer.org/t/markupscurve-with-endoscopy-error-message/14862 "2020-12-03T13:07:31Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![torquil](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@torquil](https://discourse.slicer.org/u/torquil)\
**Post date:** [December 3, 2020, 1:07pm UTC](https://discourse.slicer.org/t/markupscurve-with-endoscopy-error-message/14862/1 "2020-12-03T13:07:31Z")

</div>

In the Endoscopy module it is possible to choose a MarkupsCurve as the “Input Fiducials”. However, nothing happens when clicking on “Create path”. In addition, I have seven cameras with the same name, so I’m not really sure which one to use. Anyway, when I click on “Create path”, the Python console shows the following:

```
Traceback (most recent call last):
  File "/home/torquil/usr/slicer/lib/Slicer-4.13/qt-scripted-modules/Endoscopy.py", line 222, in onCreatePathButtonClicked
    result = EndoscopyComputePath(fiducialsNode)
  File "/home/torquil/usr/slicer/lib/Slicer-4.13/qt-scripted-modules/Endoscopy.py", line 394, in __init__
    self.calculatePath()
  File "/home/torquil/usr/slicer/lib/Slicer-4.13/qt-scripted-modules/Endoscopy.py", line 414, in calculatePath
    t, p, remainder = self.step(segment, t, remainder)
TypeError: 'NoneType' object is not iterable

```

Btw, I’m using 3D Slicer 4.13.0-2020-11-24 r29485 / 5a52b58 on Linux.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 3, 2020, 8:13pm UTC](https://discourse.slicer.org/t/markupscurve-with-endoscopy-error-message/14862/2 "2020-12-03T20:13:20Z")

</div>

I’ve pushed a [fix](https://github.com/Slicer/Slicer/commit/8bf393e4fee2f8aa3748f73279848d98637ded13) please try again with the Slicer Preview Release tomorrow.

---

<div class="post-metadata">

**Author:** ![torquil](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@torquil](https://discourse.slicer.org/u/torquil)\
**Post date:** [December 3, 2020, 11:31pm UTC](https://discourse.slicer.org/t/markupscurve-with-endoscopy-error-message/14862/3 "2020-12-03T23:31:51Z")

</div>

Hi!

That’s great! I tried it by copying Endoscopy.py to my existing installation. Slicer now generates an endoscopy flight from a markups curve. However, would it be possible to set the “dl”-parameter manually? I found that by reducing it from dl = 0.5 to dl = 0.1 (on line 354 in Endoscopy.py after your modifications) I could achieve the smoothness of the endoscopy flight that I wanted. Could the “dl”-parameter be user adjustable in the Endoscopy module?

Best regards,  
Torquil Sørensen

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 4, 2020, 12:40am UTC](https://discourse.slicer.org/t/markupscurve-with-endoscopy-error-message/14862/4 "2020-12-04T00:40:43Z")

</div>

Endoscopy is a very simple Python scripted module and so you can a `slicer.qMRMLSliderWidget()` to control the sampling distance very easily. If it works well then send us a pull request so that we can add it to Slicer core. Thank you!

---

<div class="post-metadata">

**Author:** ![yee](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/yee/32/9085_2.png) [@yee](https://discourse.slicer.org/u/yee)\
**Post date:** [December 6, 2020, 2:05am UTC](https://discourse.slicer.org/t/markupscurve-with-endoscopy-error-message/14862/6 "2020-12-06T02:05:22Z")

</div>

Hello, I also have this problem, but I can’t download Slicer Preview Release , which display the " 0 kb" in the download directory.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 6, 2020, 4:18am UTC](https://discourse.slicer.org/t/markupscurve-with-endoscopy-error-message/14862/7 "2020-12-06T04:18:49Z")

</div>

I can confirm that Windows and MacOS packages have 0 length. @Sam_Horvath could you have a look?

Until it is fixed, you can download preview release from a few days ago from this link:

> **[3D Slicer Download](https://download.slicer.org/?date=2020-12-03)**

---

<div class="post-metadata">

**Author:** ![yee](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/yee/32/9085_2.png) [@yee](https://discourse.slicer.org/u/yee)\
**Post date:** [December 6, 2020, 5:42am UTC](https://discourse.slicer.org/t/markupscurve-with-endoscopy-error-message/14862/8 "2020-12-06T05:42:58Z")

</div>

Can I use Endoscopy to generate open markup curve from markup nodes? But the Endoscopy report this error:

 ![{E54W@1HD5FZ~OJ6$KX74P7](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/c/9c5da14fd1badec97c87b7af9f401356feb92d1d.png)

Thank you !

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 6, 2020, 5:51am UTC](https://discourse.slicer.org/t/markupscurve-with-endoscopy-error-message/14862/9 "2020-12-06T05:51:05Z")

</div>

The error is fixed in latest Slicer Preview Release but packaging seems to be broken right now, so you can download a preview release from a few days ago and overwrite Endoscopy.py with the [latest version](https://github.com/Slicer/Slicer/blob/master/Modules/Scripted/Endoscopy/Endoscopy.py).

---

<div class="post-metadata">

**Author:** ![Sam\_Horvath](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sam_horvath/32/3092_2.png) [@Sam\_Horvath](https://discourse.slicer.org/u/Sam_Horvath)\
**Post date:** [December 7, 2020, 4:14pm UTC](https://discourse.slicer.org/t/markupscurve-with-endoscopy-error-message/14862/10 "2020-12-07T16:14:44Z")

</div>

Looking into issues with the server:

> [@Extension service is down](https://discourse.slicer.org/t/extension-service-is-down/14914):
>
> It looks like midas is half-broken. The metadata can be retrieved but the downloaded files are empty. Can someone reboot it? "Retrieving extension metadata [extensionId: 405842]" "Downloading extension [itemId: 548410]" "Archive /tmp/29402-linux-amd64-WindowLevelEffect-git39baeae-2016-07-22.tar.gz.mFmokN doesn't contain any files !" Uncaught SyntaxError: missing ) after argument list

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 7, 2020, 4:16pm UTC](https://discourse.slicer.org/t/markupscurve-with-endoscopy-error-message/14862/11 "2020-12-07T16:16:44Z")

</div>

Can we switch to the new server? It would be a better investment of your time to get the new server up and running instead of trying to prop up the old one.
