# How to call the robot framework in MAC pC from Windows

**URL:** <https://forum.robotframework.org/t/how-to-call-the-robot-framework-in-mac-pc-from-windows/9157>\
**Category:** Robot Framework\
**Created:** [12 August 2025 13:17 UTC](https://forum.robotframework.org/t/how-to-call-the-robot-framework-in-mac-pc-from-windows/9157 "2025-08-12T13:17:42Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vicky](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@Vicky](https://forum.robotframework.org/u/Vicky)\
**Post date:** [12 August 2025 13:17 UTC](https://forum.robotframework.org/t/how-to-call-the-robot-framework-in-mac-pc-from-windows/9157/1 "2025-08-12T13:17:42Z")

</div>

Hi, I have setup robot framework in mac and now i am trying to run the tests from windows PC using fabric connection.

Can someone support me , how to call the scripts

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [12 August 2025 14:09 UTC](https://forum.robotframework.org/t/how-to-call-the-robot-framework-in-mac-pc-from-windows/9157/2 "2025-08-12T14:09:46Z")

</div>

> [@Vicky](#):
>
> fabric connection

Well, I don’t know what is this. I would use SSH that MacOS has or VNC (remote connection) also included in Mac.

But the best orchestration solution I know, is using Jenkins (you can set the Mac as a node/agent).

---

<div class="post-metadata">

**Author:** ![Vicky](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@Vicky](https://forum.robotframework.org/u/Vicky)\
**Post date:** [12 August 2025 14:20 UTC](https://forum.robotframework.org/t/how-to-call-the-robot-framework-in-mac-pc-from-windows/9157/3 "2025-08-12T14:20:19Z")

</div>

Thank you, I am using SSH

I am calling the .robot file from Windows but I am getting an error like filename is not found. But I have the file in the same location

Previously I used the same approach to call .py files, but with. .Robot I am facing issues

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [12 August 2025 15:29 UTC](https://forum.robotframework.org/t/how-to-call-the-robot-framework-in-mac-pc-from-windows/9157/4 "2025-08-12T15:29:11Z")

</div>

Best is to reference paths in RF using `${CURDIR}` and always use `/` as path separator.

---

<div class="post-metadata">

**Author:** ![Vicky](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@Vicky](https://forum.robotframework.org/u/Vicky)\
**Post date:** [12 August 2025 17:21 UTC](https://forum.robotframework.org/t/how-to-call-the-robot-framework-in-mac-pc-from-windows/9157/5 "2025-08-12T17:21:06Z")

</div>

I am new to robot framework

my script is in the following path

python3 /Users/PycharmProjects/PythonProject/robotframework/Tests/Script.robot when i try to run this one from windows PC, i am getting syntax error

\*\*\* Settings \*\*\*  
^  
SyntaxError: invalid syntax

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [12 August 2025 18:20 UTC](https://forum.robotframework.org/t/how-to-call-the-robot-framework-in-mac-pc-from-windows/9157/6 "2025-08-12T18:20:19Z")

</div>

You have to install Robot Framework.

`python3 -m pip install robotframework`

Then you can run:

`robot /Users/PycharmProjects/PythonProject/robotframework/Tests/Script.robot`

But you need to read more documentation. Start by [robotframework.org](http://robotframework.org)

---

<div class="post-metadata">

**Author:** ![Vicky](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@Vicky](https://forum.robotframework.org/u/Vicky)\
**Post date:** [13 August 2025 11:06 UTC](https://forum.robotframework.org/t/how-to-call-the-robot-framework-in-mac-pc-from-windows/9157/7 "2025-08-13T11:06:39Z")

</div>

Thanks, From windows PC command line i can be able to call the script on mac

cd /Users/PycharmProjects/PythonProject/robotframework/Tests/Script.robot

then python3 -m robot -s Script Script.robot # I just kept test case and test suite has same name.

with this its working. but when i try to run the same script using another application in windows PC then i am facing error like  
[ERROR] Parsing ‘/Users/mac/Script.robot’ failed: File or directory to execute does not exist.  
here i am trying run(cd /Users/PycharmProjects/PythonProject/robotframework/Tests)

run(python3 -m robot -s Script Script.robot)

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [13 August 2025 11:19 UTC](https://forum.robotframework.org/t/how-to-call-the-robot-framework-in-mac-pc-from-windows/9157/8 "2025-08-13T11:19:05Z")

</div>

> [@Vicky](#):
>
> Parsing ‘/Users/mac/Script.robot’ failed: File or directory to execute does not exist.

You can see it is looking at the Home in Mac. You have to pass absolute path, or making sure your application run the commands in the same shell.

> [@Vicky](#):
>
> cd /Users/PycharmProjects/PythonProject/robotframework/Tests

This was done in a different shell, and the next command will run in a new shell.

---

<div class="post-metadata">

**Author:** ![Vicky](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@Vicky](https://forum.robotframework.org/u/Vicky)\
**Post date:** [13 August 2025 11:24 UTC](https://forum.robotframework.org/t/how-to-call-the-robot-framework-in-mac-pc-from-windows/9157/9 "2025-08-13T11:24:58Z")

</div>

> [@Vicky](#):
>
> cd /Users/PycharmProjects/PythonProject/robotframework/Tests)
> 
> run(python3 -m robot -s Script Script.robot

Okay shall i try like this as a single shell command below

run(cd /Users/PycharmProjects/PythonProject/robotframework/Tests -m robot -s Script Script.robot)

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [13 August 2025 12:34 UTC](https://forum.robotframework.org/t/how-to-call-the-robot-framework-in-mac-pc-from-windows/9157/10 "2025-08-13T12:34:59Z")

</div>

> [@Vicky](#):
>
> run(cd /Users/PycharmProjects/PythonProject/robotframework/Tests -m robot -s Script Script.robot)

You must separate commands with ; to run in sequence, or with && meaning logical AND.

---

<div class="post-metadata">

**Author:** ![Vicky](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@Vicky](https://forum.robotframework.org/u/Vicky)\
**Post date:** [13 August 2025 12:51 UTC](https://forum.robotframework.org/t/how-to-call-the-robot-framework-in-mac-pc-from-windows/9157/11 "2025-08-13T12:51:01Z")

</div>

c.run(‘python3 /Users/mac658/PycharmProjects/PythonProject/robotframework/Tests && -m robot -s Script Script.robot’)

now i ‘m getting the below error, can you please guide me, what could be the issue here

can’t find ‘\__main_\_’ module in ‘/Users/mac658/PycharmProjects/PythonProject/robotframework/Tests’

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [13 August 2025 13:08 UTC](https://forum.robotframework.org/t/how-to-call-the-robot-framework-in-mac-pc-from-windows/9157/12 "2025-08-13T13:08:02Z")

</div>

You have to be more careful with the commands.

You are trying to execute a directory.

> [@Vicky](#):
>
> c.run(‘python3 /Users/mac658/PycharmProjects/PythonProject/robotframework/Tests && -m robot -s Script Script.robot’)

`c.run(‘cd /Users/mac658/PycharmProjects/PythonProject/robotframework/Tests && python3 -m robot -s Script Script.robot’)`
