# Error DiaMetAlyzer Python Source node

**URL:** <https://forum.knime.com/t/error-diametalyzer-python-source-node/43103>\
**Category:** Community Extensions\
**Tags:** openms\
**Created:** [May 18, 2022, 12:50pm UTC](https://forum.knime.com/t/error-diametalyzer-python-source-node/43103 "2022-05-18T12:50:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdrianBrun](https://forum-cdn.knime.com/user_avatar/forum.knime.com/adrianbrun/32/40232_2.png) [@AdrianBrun](https://forum.knime.com/u/AdrianBrun)\
**Post date:** [May 18, 2022, 12:50pm UTC](https://forum.knime.com/t/error-diametalyzer-python-source-node/43103/1 "2022-05-18T12:50:23Z")

</div>

**strong text** Hello all,

when I try to test the DiaMetAlyzer (latest version (openms 2.7.0, Sirius 4.9.0, …), I get an error message in the “python source” node:

**Python Source Error:**

C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\*.osw  
[‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step10Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step10Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step10Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step1Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step1Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step1Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step2Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step2Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step2Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step3Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step3Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step3Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step4Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step4Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step4Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step5Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step5Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step5Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step6Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step6Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step6Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step7Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step7Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step7Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step8Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step8Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step8Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step9Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step9Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step9Plasma3SWATH20-50.osw’]  
[‘C:\Users\Adrianbrun\anaconda3\envs\py39\Scripts/pyprophet’, ‘merge’, ‘–template’, ‘/C:/Users/Adrianbrun/AppData/Local/Temp/knime\_DIAMetAlyzer%20\_249474/fs-Assay\_0-375-49486/000/000/AssayGeneratorMetabo\_0/sirius.pqp’, ‘–out’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\merged\_osw.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step10Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step10Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step10Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step1Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step1Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step1Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step2Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step2Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step2Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step3Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step3Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step3Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step4Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step4Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step4Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step5Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step5Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step5Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step6Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step6Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step6Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step7Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step7Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step7Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step8Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step8Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step8Plasma3SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step9Plasma1SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step9Plasma2SWATH20-50.osw’, ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\PestMix1\_8Step9Plasma3SWATH20-50.osw’]  
merging  
Calling pre scored osws merge function  
Traceback (most recent call last):  
File “C:\Users\Adrianbrun\anaconda3\envs\py39\lib\runpy.py”, line 197, in \_run\_module\_as\_main  
return \_run\_code(code, main\_globals, None,  
File “C:\Users\Adrianbrun\anaconda3\envs\py39\lib\runpy.py”, line 87, in _run\_code  
exec(code, run\_globals)  
File "C:\Users\Adrianbrun\anaconda3\envs\py39\Scripts\pyprophet.exe\_main_.py", line 7, in   
File “C:\Users\Adrianbrun\anaconda3\envs\py39\lib\site-packages\click\core.py”, line 1130, in **call**  
return self.main(\*args, \*\*kwargs)  
File “C:\Users\Adrianbrun\anaconda3\envs\py39\lib\site-packages\click\core.py”, line 1055, in main  
rv = self.invoke(ctx)  
File “C:\Users\Adrianbrun\anaconda3\envs\py39\lib\site-packages\click\core.py”, line 1688, in invoke  
rv.append(sub\_ctx.command.invoke(sub\_ctx))  
File “C:\Users\Adrianbrun\anaconda3\envs\py39\lib\site-packages\click\core.py”, line 1404, in invoke  
return ctx.invoke(self.callback, \*\*ctx.params)  
File “C:\Users\Adrianbrun\anaconda3\envs\py39\lib\site-packages\click\core.py”, line 760, in invoke  
return \_\_callback(\*args, \*\*kwargs)  
File “C:\Users\Adrianbrun\anaconda3\envs\py39\lib\site-packages\pyprophet\main.py”, line 273, in merge  
merge\_osw(infiles, outfile, templatefile, same\_run, merged\_post\_scored\_runs)  
File “C:\Users\Adrianbrun\anaconda3\envs\py39\lib\site-packages\pyprophet\levels\_contexts.py”, line 555, in merge\_osw  
merge\_osws(infiles, outfile, templatefile, same\_run)  
File “C:\Users\Adrianbrun\anaconda3\envs\py39\lib\site-packages\pyprophet\levels\_contexts.py”, line 560, in merge\_osws  
copyfile(templatefile, outfile)  
File “C:\Users\Adrianbrun\anaconda3\envs\py39\lib\shutil.py”, line 264, in copyfile  
with open(src, ‘rb’) as fsrc:  
**OSError: [Errno 22] Invalid argument: ‘/C:/Users/Adrianbrun/AppData/Local/Temp/knime\_DIAMetAlyzer%20\_249474/fs-Assay\_0-375-49486/000/000/AssayGeneratorMetabo\_0/sirius.pqp’**  
**scoring**  
**Usage: pyprophet score [OPTIONS]**  
**Try ‘pyprophet score --help’ for help.**  
**Error: Invalid value for ‘–in’: Path ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\merged\_osw.osw’ does not exist.**  
**exporting**  
**Usage: pyprophet export-compound [OPTIONS]**  
**Try ‘pyprophet export-compound --help’ for help.**  
**Error: Invalid value for ‘–in’: Path ‘C:\Volumes\DiaMetAlyzer\Output Folder Quantification\OSW\scored\_ms1ms2.osw’ does not exist.**

**Knime Console Error:**  
WARN Python Source 0:344:342 Node created an empty data table.

Can someone help me fix this error?  
Many thanks in advance!

Best regards,

Adrian Brun

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [May 18, 2022, 8:44pm UTC](https://forum.knime.com/t/error-diametalyzer-python-source-node/43103/2 "2022-05-18T20:44:58Z")

</div>

@AdrianBrun welcome to the KNIME forum. Could you [give us an example](https://forum.knime.com/t/reproducible-minimal-workflow-example/24482) of the code or workflow you want to use.

The log says something about a missing path or file. Can you check which paths are used and if they are there.

For log files it might be best to set that to debug mode and attach it to your entry. Would make the text much easier to read.

> **[Bug Reporting Best Practices | KNIME](https://www.knime.com/node/20488)**
>
> In order to speed up finding a solution for an issue, we kindly ask you to provide the following details when reporting a bug:

---

<div class="post-metadata">

**Author:** ![AdrianBrun](https://forum-cdn.knime.com/user_avatar/forum.knime.com/adrianbrun/32/40232_2.png) [@AdrianBrun](https://forum.knime.com/u/AdrianBrun)\
**Post date:** [May 19, 2022, 8:18am UTC](https://forum.knime.com/t/error-diametalyzer-python-source-node/43103/3 "2022-05-19T08:18:28Z")

</div>

@mlauber71 Thanks for your quick reply.  
I have uploaded the workflow. All codes are visible here.  
I have checked all the paths. The path and the file for sirius.pqp is there. For the error message of …/merged\_osw.osw & …/scored\_ms1ms2.osw the path is there but not the file.

Best regards,  
Adrian

[DIAMetAlyzer\_AB.knwf](https://forum.knime.com/uploads/short-url/yUfCyWz5jqFprhyJvoloXpfN7z1.knwf) (633.6 KB)

---

<div class="post-metadata">

**Author:** ![jpfeuffer](https://forum-cdn.knime.com/user_avatar/forum.knime.com/jpfeuffer/32/171_2.png) [@jpfeuffer](https://forum.knime.com/u/jpfeuffer)\
**Post date:** [May 19, 2022, 10:43am UTC](https://forum.knime.com/t/error-diametalyzer-python-source-node/43103/4 "2022-05-19T10:43:33Z")

</div>

> [@AdrianBrun](#):
>
> OSError: [Errno 22] Invalid argument: '/C:/Users/Adrianbrun/AppData/Local/Temp/knime\_DIAMetAlyzer%20\_249474/fs-Assay\_0-375-49486/000/000/AssayGeneratorMetabo\_0/sirius.pqp’

Hi!

Windows will probably not like the starting slash in the filename. I am not sure if the pipeline was tested on Windows yet. There might be some assumptions in the code for Linux/macOS.

Best wishes  
Julianus

---

<div class="post-metadata">

**Author:** ![AdrianBrun](https://forum-cdn.knime.com/user_avatar/forum.knime.com/adrianbrun/32/40232_2.png) [@AdrianBrun](https://forum.knime.com/u/AdrianBrun)\
**Post date:** [May 20, 2022, 11:45am UTC](https://forum.knime.com/t/error-diametalyzer-python-source-node/43103/5 "2022-05-20T11:45:09Z")

</div>

Hello,

Thank you for your reply!  
Then I will try to remove the slash at the beginning in the file name or adapt the code for windows. I thought that the pipeline was also tested on windows since the tutorial included a description for the windows version.  
Nevertheless thank you.

Kind regards  
Adrian

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [August 18, 2022, 11:45am UTC](https://forum.knime.com/t/error-diametalyzer-python-source-node/43103/6 "2022-08-18T11:45:21Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
