# Renku run gives Error: Invalid parameter value - Cannot execute command '':

**URL:** <https://renku.discourse.group/t/renku-run-gives-error-invalid-parameter-value-cannot-execute-command/747>\
**Category:** RenkuLab\
**Created:** [1 February 2023 16:19 UTC](https://renku.discourse.group/t/renku-run-gives-error-invalid-parameter-value-cannot-execute-command/747 "2023-02-01T16:19:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkuzyakiv](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rkuzyakiv](https://renku.discourse.group/u/rkuzyakiv)\
**Post date:** [1 February 2023 16:19 UTC](https://renku.discourse.group/t/renku-run-gives-error-invalid-parameter-value-cannot-execute-command/747/1 "2023-02-01T16:19:41Z")

</div>

Dear Renku Team.

As a new user of Renku, I have been following the official renku tutorial.  
[https://renku.readthedocs.io/en/stable/tutorials/first\_steps/10\_workflow\_file.html](https://renku.readthedocs.io/en/stable/tutorials/first_steps/10_workflow_file.html)

My project is on [renkulab.io](http://renkulab.io)

Everything was working fine till I reached the step requiring to run: renku run workflow.yml  
I have been getting an error message:  
Error: Invalid parameter value - Cannot execute command ‘’: This is likely because the executable doesn’t exist or has the wrong permissions set.

On my side:  
yml file is the same as in the tutorial.  
The structure of the folders is also similar.  
The permissions for the scripts and files are ok.

I would highly appreciate your help with this issue.  
With best regards.

Rostyslav Kuzyakiv MD, PhD  
ETHZ Zurich

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [1 February 2023 16:46 UTC](https://renku.discourse.group/t/renku-run-gives-error-invalid-parameter-value-cannot-execute-command/747/2 "2023-02-01T16:46:24Z")

</div>

Hi @rkuzyakiv thanks for reporting this and sorry about the confusion! It turns out those particular docs leaked out a little too early into the stable branch of our documentation. The workflow file feature is only being released today! The renku CLI you are using in your project doesn’t have this functionality yet.

You have two options at this point:

1. upgrade your renku CLI to a version that supports the workflow file feature. Some functionality of the renkulab web application might not work correctly in this case and complain that your project’s renku version is incompatible with the platform. However, you can still launch sessions, push changes etc. Your project will work fine again once we deploy the version released today to [renkulab.io](http://renkulab.io) next week.

2. you can refer to [0.21.0 docs](https://renku.readthedocs.io/en/0.21.0/) until the new release gets to renkulab (~1 week from now)

If you have a session running on renkulab, you can update the CLI in your session by running

```auto
$ ~/.renku/venv/pip install renku==1.11.2

```

To persist this change, you will also want to change the version in the `Dockerfile` in your project, i.e. modify the line that sets the renku version to read

```auto
ARG RENKU_VERSION=1.11.2

```

Hope that helps! Let me know if you run into any (other) issues!

---

<div class="post-metadata">

**Author:** ![rkuzyakiv](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rkuzyakiv](https://renku.discourse.group/u/rkuzyakiv)\
**Post date:** [2 February 2023 13:48 UTC](https://renku.discourse.group/t/renku-run-gives-error-invalid-parameter-value-cannot-execute-command/747/3 "2023-02-02T13:48:24Z")

</div>

> [@rrrrrok](#):
>
> `~/.renku/venv/pip install renku==1.11.2`

Hi @rrrrrok Thank you very much for you explanations. I appreciate it a lot. Will give it a try.

---

<div class="post-metadata">

**Author:** ![rkuzyakiv](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rkuzyakiv](https://renku.discourse.group/u/rkuzyakiv)\
**Post date:** [2 February 2023 17:01 UTC](https://renku.discourse.group/t/renku-run-gives-error-invalid-parameter-value-cannot-execute-command/747/4 "2023-02-02T17:01:09Z")

</div>

Hi @rrrrrok I am writing to follow up on a the issue I had reported to you.  
I have tried the steps suggested but the problem persists.  
I am still getting the same error message:  
Error: Invalid parameter value - Cannot execute command ‘’: This is likely because the executable doesn’t exist or has the wrong permissions set.

Thank you for your prompt attention to this matter.  
I look forward to hearing from you soon.  
Regards.  
Rostyslav

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [2 February 2023 17:05 UTC](https://renku.discourse.group/t/renku-run-gives-error-invalid-parameter-value-cannot-execute-command/747/5 "2023-02-02T17:05:13Z")

</div>

Hi @rkuzyakiv,

could you please post exactly the command you are trying to run together with the full stack trace as well as the output of

```auto
$ renku --version

```

If you are trying to run a workflow file, could you please post that as well? Thanks!!

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [2 February 2023 17:28 UTC](https://renku.discourse.group/t/renku-run-gives-error-invalid-parameter-value-cannot-execute-command/747/6 "2023-02-02T17:28:54Z")

</div>

Oh I just realized I made a typo in my instructions 🤦‍♂️

If you are trying to install the new version of Renku, it should be

```auto
$ ~/.renku/venv/bin/pip install renku==1.11.2

```

(note the `bin/` which was missing in my original post above!)

---

<div class="post-metadata">

**Author:** ![rkuzyakiv](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rkuzyakiv](https://renku.discourse.group/u/rkuzyakiv)\
**Post date:** [3 February 2023 14:31 UTC](https://renku.discourse.group/t/renku-run-gives-error-invalid-parameter-value-cannot-execute-command/747/7 "2023-02-03T14:31:48Z")

</div>

Hi @rrrrrok Thank you for the hints. I have applied them. Nothing changed.  
My set up:

> renku --version  
> 1.11.2

workflow.yml file  
name: data-pipeline  
steps:  
filter:  
command: python src/filter.py data/input/flights.csv data/output/filtered.csv  
inputs:  
- src/filter.py  
- data/input/flights.csv  
outputs:  
- data/output/filtered.csv  
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

The python scrip filter.py  
#!/usr/bin/env python  
#coding: utf-8

# 

#Usage: python flights.py

# 

import pandas as pd  
import sys

#It would be more robust to use argparse or click, but we want this to be simple  
if len(sys.argv) \< 3:  
sys.exit(“Please invoke with two arguments: input and output paths”)

input\_path = sys.argv[1]  
output\_path = sys.argv[2]

#Read in the data  
df = pd.read\_csv(input\_path)

#Select only flights to Austin (AUS)  
df = df[df[‘DEST’] == ‘AUS’]

#Save the result  
df.to\_csv(output\_path, index=False)

* * *

after running: renku run ./workflow.yml  
the output of print:

**Renku version:** 1.11.2  
**OS:** Linux (#58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022)  
**Python:** 3.9.12

###Traceback

```auto
Traceback (most recent call last):
  File "[...]/site-packages/renku/ui/cli/exception_handler.py", line 133, in main
    return super().main(*args, **kwargs)
  File "[...]/site-packages/renku/ui/cli/exception_handler.py", line 92, in main
    return super().main(*args, **kwargs)
  File "[...]/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "[...]/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "[...]/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "[...]/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "[...]/site-packages/renku/ui/cli/run.py", line 641, in run
    command.with_communicator(communicator)
  File "[...]/site-packages/renku/command/command_builder/command.py", line 252, in execute
    output = self._operation(*args, **kwargs) # type: ignore
  File "[...]/site-packages/inject/ __init__.py", line 342, in injection_wrapper
    return sync_func(*args, **kwargs)
  File "pydantic/decorator.py", line 40, in pydantic.decorator.validate_arguments.validate.wrapper_function
  File "pydantic/decorator.py", line 134, in pydantic.decorator.ValidatedFunction.call
  File "pydantic/decorator.py", line 206, in pydantic.decorator.ValidatedFunction.execute
  File "[...]/site-packages/renku/core/workflow/run.py", line 298, in run_command_line
    return_code = call(
  File "[...]/subprocess.py", line 349, in call
    with Popen(*popenargs, **kwargs) as p:
  File "[...]/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "[...]/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: './workflow.yml'

```

##Additional context  
Add any other context about the problem.

I hope you find this info useful.

Best.  
Rostyslav

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [3 February 2023 15:59 UTC](https://renku.discourse.group/t/renku-run-gives-error-invalid-parameter-value-cannot-execute-command/747/8 "2023-02-03T15:59:48Z")

</div>

Hi @rkuzyakiv,

I tried now to follow the tutorial myself and with renku version `1.11.2` it works out-of-the-box. I tried to reproduce your error and it took a bit of creativity! Finally I think I figured out what the reason is:

```auto
# this works
$ renku run workflow.yml 
Executing step 'flights-processing-pipeline.filter': 'python src/filter.py data/flight-data/2019-01-flights.csv.zip data/output/flights-filtered.csv' ...

$ chmod u+x workflow.yml
$ git commit -am 'update workflow'

# this fails
$ renku run workflow.yml
Error: Invalid parameter value - Cannot execute command '': This is likely because the executable doesn't exist or has the wrong permissions set.
$ renku run ./workflow.yml 
...
OSError: [Errno 8] Exec format error: './workflow.yml'

# this fixes it
$ chmod a-x workflow.yml 
$ renku run ./workflow.yml 
Executing step 'flights-processing-pipeline.filter': 'python src/filter.py data/flight-data/2019-01-flights.csv.zip data/output/flights-filtered.csv' ...

```

So, to summarize - my guess is that at some point, because `renku` complained about not being able to execute the workflow you made the file executable - now, with the correct version of `renku`, since the file is executable, `renku` tries to run it _as an executable_ instead of interpreting it as a workflow.

tl;dr - run `chmod a-x workflow.yml` and it should be fine 😅

---

<div class="post-metadata">

**Author:** ![rkuzyakiv](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rkuzyakiv](https://renku.discourse.group/u/rkuzyakiv)\
**Post date:** [3 February 2023 16:52 UTC](https://renku.discourse.group/t/renku-run-gives-error-invalid-parameter-value-cannot-execute-command/747/9 "2023-02-03T16:52:32Z")

</div>

> [@rrrrrok](#):
>
> chmod a-x workflow.yml

Did: chmod a-x workflow.yml  
run: renku run workflow.yml

New error:  
File “[…]/site-packages/renku/core/workflow/workflow\_file.py”, line 62, in run\_workflow\_file  
workflow = workflow\_file.to\_plan()  
File “[…]/site-packages/inject/ **init**.py”, line 342, in injection\_wrapper  
return sync\_func(\*args, \*\*kwargs)  
File “[…]/site-packages/renku/core/workflow/model/workflow\_file.py”, line 78, in to\_plan  
project\_id = project\_gateway.get\_project().id  
File “[…]/site-packages/renku/infrastructure/gateway/project\_gateway.py”, line 33, in get\_project  
raise ValueError(“Cannot get project”) from e  
ValueError: Cannot get project

```auto
I am just thinking about killing the current renku session and starting a new one.
I hope it will work. 

Best. 
R
```
