# Error when computing dose \[Not Found Error\]

**URL:** <https://opentps.discourse.group/t/error-when-computing-dose-not-found-error/108>\
**Category:** General\
**Created:** [October 24, 2025, 9:10am UTC](https://opentps.discourse.group/t/error-when-computing-dose-not-found-error/108 "2025-10-24T09:10:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronald](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Ronald](https://opentps.discourse.group/u/Ronald)\
**Post date:** [October 24, 2025, 9:10am UTC](https://opentps.discourse.group/t/error-when-computing-dose-not-found-error/108/1 "2025-10-24T09:10:36Z")

</div>

Dear Developers,

Thanks for providing the powerful OpenTPS tool. I have problems when computing the MC2 dose. I have attached the screenshot of the terminal for your reference. Seems that the three ‘not found’ cause the issue but I cannot locate the ‘not found‘ warning. Thanks in advance for your help.

Ronald

 ![螢幕截圖 2025-10-24 下午4.56.58](https://global.discourse-cdn.com/free1/uploads/opentps/original/1X/94d7319c3353119dafe1e3487282fb96d94d93b0.jpeg)

---

<div class="post-metadata">

**Author:** ![Ronald](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Ronald](https://opentps.discourse.group/u/Ronald)\
**Post date:** [October 27, 2025, 8:52am UTC](https://opentps.discourse.group/t/error-when-computing-dose-not-found-error/108/2 "2025-10-27T08:52:12Z")

</div>

Hi All,

I finally figured out the issue! The ‘Not Found’ message and the syntax error are all caused by the **CRLF (carriage return) of the Windows system** when clicking “Enter”. As the figure ‘Before Modification‘ shows, ‘^M’ appears at the end of each line, which indicates CRLF. However, the Unix system requires LF at the end of each line. Here I provide my solution for you who also uses the Unix system, and I believe it will save lots of time.

1. Go to the directory where the MCsquare shell script is saved (NOT the OpenTPS\_workspace as it will be re-created every time we calculate the dose)
2. Open the terminal under the desired directory
3. Use the command: ‘dos2unix MCsquare’

You may also meet the “permission denied“ issue when executing the mcsquare program. Suppose the shell script will call the MCsquare\_linux\_avx512, then just add ‘chmod +x MCsquare\_linux\_avx512‘ command before calling the MCsquare\_linux\_avx512 program in the shell script.

 ![Before Modification](https://global.discourse-cdn.com/free1/uploads/opentps/original/1X/79c05e951a2c635e87a3da292105c6e8757a0b55.png)

Best,

Ronald

---

<div class="post-metadata">

**Author:** ![Eliot-P](https://yyz2.discourse-cdn.com/free1/user_avatar/opentps.discourse.group/eliot-p/32/6_2.png) [@Eliot-P](https://opentps.discourse.group/u/Eliot-P)\
**Post date:** [October 27, 2025, 9:25am UTC](https://opentps.discourse.group/t/error-when-computing-dose-not-found-error/108/3 "2025-10-27T09:25:22Z")

</div>

Dear Ronald,

Indeed, this is a common bug in OpenTPS. Would you mind sharing how you installed the package so that we can prevent this from happening again?

I recognize a Ubuntu terminal, are you remoting into it, or is it your main OS? Because this issue can also occur if you’re using an _interpreter over SSH_ with PyCharm (it basically works like an `rsync`).

Best regards,  
Eliot

---

<div class="post-metadata">

**Author:** ![Ronald](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Ronald](https://opentps.discourse.group/u/Ronald)\
**Post date:** [October 27, 2025, 9:39am UTC](https://opentps.discourse.group/t/error-when-computing-dose-not-found-error/108/4 "2025-10-27T09:39:43Z")

</div>

Dear Eliot,

I tried both the conda installation (easy quickstart) and the git-clone installation (advanced quickstart), and the issue existed in both installations. Yes, my main OS is Ubuntu.

By the way, I used REGGUI before for mc2 calculation workflow, and it provided the material overridden function and the forcing material function. In the OpenTPS GUI, I can only see the ‘Overwrirte outsie this ROI‘ option. As material overriden is quite common in our center (override implant, couch, and so on), may I ask if this function will be provided explicitly in the future?

Best,

Ronald

---

<div class="post-metadata">

**Author:** ![Eliot-P](https://yyz2.discourse-cdn.com/free1/user_avatar/opentps.discourse.group/eliot-p/32/6_2.png) [@Eliot-P](https://opentps.discourse.group/u/Eliot-P)\
**Post date:** [October 27, 2025, 1:07pm UTC](https://opentps.discourse.group/t/error-when-computing-dose-not-found-error/108/5 "2025-10-27T13:07:17Z")

</div>

Hello,

Bug is fixed in the [merge request 234](https://gitlab.com/openmcsquare/opentps/-/merge_requests/234), that will be available as soon as the new release of OpenTPS is out.

Regarding the feature you ask, I will be sure to bring that up to our next internal meeting and confer with the rest of the development team how to try to bring this feature.

Best,  
Eliot

---

<div class="post-metadata">

**Author:** ![Ronald](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Ronald](https://opentps.discourse.group/u/Ronald)\
**Post date:** [October 27, 2025, 1:31pm UTC](https://opentps.discourse.group/t/error-when-computing-dose-not-found-error/108/6 "2025-10-27T13:31:37Z")

</div>

Hi Eliot,

Thanks so much.

I will also try to implement the features on my side.

Best,

Ronald
