carla-simulator Β· GitHub

tried to compile carla python client natively on mac, did not work. So the workaround is to use a docker container which emulates linux/amd64 on mac. Hacky but works !

proof_of_concept_480p.mov

2 replies

@realmtai

Does this work with ROS? Can this solution work with both ROS and carla?

@nveshaan

Does this work with ROS? Can this solution work with both ROS and carla?

I haven't figured out how to add ros support to wine. You could try:

  • install ros natively on mac and try to see if it can connect with the server
  • install ros in the wine terminal
  • use ros on another device and try to connect to carla server on mac

Docker is out of question as the ros multicast is limited to docker's network.

3 replies

@nveshaan

@nveshaan

You can download the package here

@nveshaan

UPDATE: try installing win10 and cmd in winetricks if you face any issue or need to upgrade

19 replies

@nveshaan

You can download the package here

If you need a version other than v9.15, just download the windows exe and extract it in the wrapper directory

@alexzhuuuu

You can download the package here

Screenshot 2026-01-16 at 19 39 37

Hi, thanks for sharing this!
I downloaded the package and tried to open KegworksConfig inside the content directory, but ran into this issue.
Is this expected, or am I missing something or doing something wrong on my side?
If possible, could you share an email so I can ask you a bit more in private? Thanks!

@nveshaan

You can download the package here

Screenshot 2026-01-16 at 19 39 37 Hi, thanks for sharing this! I downloaded the package and tried to open KegworksConfig inside the content directory, but ran into this issue. Is this expected, or am I missing something or doing something wrong on my side? If possible, could you share an email so I can ask you a bit more in private? Thanks!

I think you can bypass this by clicking open anyway in settings -> privacy & security

@alexzhuuuu

You can download the package here

Screenshot 2026-01-16 at 19 39 37 Hi, thanks for sharing this! I downloaded the package and tried to open KegworksConfig inside the content directory, but ran into this issue. Is this expected, or am I missing something or doing something wrong on my side? If possible, could you share an email so I can ask you a bit more in private? Thanks!

I think you can bypass this by clicking open anyway in settings -> privacy & security

Hi, I think it not an issue about the "privacy & security", it is directly shown damaged package. I am afraid.
I downloaded the link from your latest with a 21GB 'CARLA' package, and I think it is right.
My type is the Mac mini 2024 M4.

@alexzhuuuu

You can download the package here

Screenshot 2026-01-16 at 19 39 37 Hi, thanks for sharing this! I downloaded the package and tried to open KegworksConfig inside the content directory, but ran into this issue. Is this expected, or am I missing something or doing something wrong on my side? If possible, could you share an email so I can ask you a bit more in private? Thanks!

I think you can bypass this by clicking open anyway in settings -> privacy & security

Hi, I think it not an issue about the "privacy & security", it is directly shown damaged package. I am afraid. I downloaded the link from your latest with a 21GB 'CARLA' package, and I think it is right. My type is the Mac mini 2024 M4.

Solved by @potatocodex , thank @nveshaan too!

Hey, I find a way to running python client on the winetrick or winery, I'm not sure about app name. It's no matter, lets implement that.
(Macbook M2 Pro)
Instructions:

Step 1: CARLA Server on Apple Silicon Mac.pdf do this procedure.(install carla 0.9.15 ) thank you so much bro @nveshaan

Step 2: Download Windows 64bit Python 3.10 and open KegworksConfig => click Install Software => click Choose Setup Executable => Select Python exe file => When opened the python installation => click Customize Installation => Select All Checkboxes => next => click Install for all users and Add Python to environment variables (path: C:\Program Files\Python310) => Click Install

Step 3: Then click the Command Line in the KegworksConfig and run this command python c:\program files\windowsnoeditor\pythonapi\examples\vehicle_gallery.py

Problem Fixing:

  1. If you got is error like that:

ModuleNotFoundError: No module named 'shapely'

just dopip install shapely or pip install ........(what you need)

  1. if you have issue like freezing and slow screen you can set this parameter like that :
    "C:\Program Files\WindowsNoEditor\CarlaUE4.exe" -quality-level=Low
Screenshot 2025-08-01 at 23 52 01

And thank you so much for document @nveshaan

3 replies

@nveshaan

Hey! Glad you found it helpful 😁

Yes, I tried this and it works better than docker.

My project depends on ROS. It has nodes for publishing images, position, velocity, etc. from CARLA.

I tried installing ROS in winery, but it didn't work out. So, I've got two options:

  1. Stick with docker.
  2. Use rpyc & zmq, to run a python script in wine, which acts as an API between CARLA on wine and carla scripts on Mac.

Have you got any other ideas?

@ashfakshibli

This is really awesome. I was literally paying for windows server to run CARLA and PythonAPI for my research. Now it is running in my M4 Pro MacBook Pro with 24GB RAM.

Thank you both @nveshaan @canibal1 . I think @nveshaan can include this process in your document for whoever wants to run Python Client except ROS

@potatocodex

Awesome! I can run PythonAPI inside wrapper, running generate_traffic.py and manual_control.py
image

Hey Esaan , can I run on carla on MB Air M1 2020 8gb ram??

1 reply

@nveshaan

Older versions of carla might work.

Hello, I have a project where I need to install Ubuntu 20.04, Python 3.7, ROS Noetic, CARLA, and the CARLA-ROS bridge. All of these installations need to be done using a PC at my university. However, I don’t have a PC at home, so I want to try it on my Mac and see if running it through Windows Parallel will work. Fortunately, I found this! I plan to use my MacBook Air 2020 (8GB RAM). Do you think I can complete my project by following these installation steps?

1 reply

@nveshaan

Getting CARLA and ROS to work together is something I still haven't figured out. CARLA works on Wine (I tried installing ROS in Wine but failed to do so). ROS works on Docker, but ROS multicast is limited to Docker containers.

Things to try!!!

  1. Install ROS natively on mac and see if it can connect to CARLA server on Wine.
  2. Figure out a way to compile and install CARLA client (python api) on mac.

Hello thank you for your kind instruction. However i have an error while i tried to run it. I am using Mac Book Air M3 with OS 26.1(latest) and Carla 0.9.16. I followed all the step including installing win10 and cmd from winetricks. However when i test run it, i can see the fatal error and Carla is opening win-64-shipping.exe. I guess that exe file is essential to run it because when i delete it from the directory there is another error. Could you advise me on this issue? Thank you in advance.

3 replies

@nveshaan

I am not sure what the problem is. I never tested it on mac os 26. I suggest you delete everything and start again from scratch.

If the error still persists, it would be nice if you could attach a screenshot and mention the exact step where it is failing. I will then take a look over it.

@potatocodex

Hi @woonie96 I've succesfull installed in Tahoe 26.2, and Carla 9.16. Make sure call "C:\Program Files\CARLA_0.9.16\CarlaUE4.exe" not "C:\Program Files\CARLA_0.9.16\CarlaUE4\Binaries\Win64\CarlaUE4-Win64-Shipping.exe" .

@nveshaan

Hi @woonie96 I've succesfull installed in Tahoe 26.2, and Carla 9.16. Make sure call "C:\Program Files\CARLA_0.9.16\CarlaUE4.exe" not "C:\Program Files\CARLA_0.9.16\CarlaUE4\Binaries\Win64\CarlaUE4-Win64-Shipping.exe" .

Amazing! Could you please add this point where I attached the manual PDF? thanks!!!

Followed all the steps, some things are now named differently and the CARLA package attempts to install under ~/Applications, not a problem though. Running CarlaUE4.exe on macOS 26 -- no luck here, I end up with a 'fatal error' when running 'Test Run'.

2 replies

@nveshaan

I am not sure what the problem is. This was never tested on mac os 26.

Will report a new solution if I get a chance to test it on the new OS

@potatocodex

Hi @jxcg ; perhaps can try this solution, at least it works for me.

According to your documentation, PythonAPI of Carla does not work yet directly on MAC. Right? It has to be via Docker?

If that is the way isn't it easier put everything in Docker?

Please do share how you used PythonAPI from docker container.

3 replies

@nveshaan

Yeah, Carla server cannot run on docker, but carla python api can be run in docker.

The current best way is to run the carla server through wine and make python api calls from docker.

@ashfakshibli

How about @canibal1 's comment above? I could run python API using Winery Config with few hiccups. What are the disadvantages I haven't faced yet? I will run custom python APIs mainly to generate different type of scenes. I do not need ROS right now which you have issues with.

@nveshaan

Yeah, that also works πŸ‘

Thank you for the guide! Is it possible to run the Carla Additional Maps (for 0.9.15) through Winery? I tried downloading them and manually adding to the Maps directory in Carla 0.9.15, but then the Carla Client wasn't able to find the new maps (using Docker).

3 replies

@nveshaan

Hmm, it should work according to Maps - CARLA Simulator.

Try out different ways and report your findings. We'll figure out something.

@shamakg

Yup, will keep trying...thanks again

@shamakg

Got it working - for anyone in the future, just be careful when extracting the additional maps in the root directory (it worked when i did it through terminal)

Hi @nveshaan and all, I've made a video walkthrough on how to run Carla on macOS Tahoe 26.2 using an MBA M4 with 24GB and a Mac Mini M4 with 16GB.

1 reply

@alexzhuuuu

Hi @nveshaan and all, I've made a video walkthrough on how to run Carla on macOS Tahoe 26.2 using an MBA M4 with 24GB and a Mac Mini M4 with 16GB.

Screenshot 2026-01-17 at 11 25 39

Thank you so much. I changed this file in the picture, and it works. You helps a lot!
Much appreciation!!

Hi @nveshaan and all, I've also made this walkthrough video on how to set up PythonAPI on the wrapper.

0 replies

Read the original on github.com β†—