Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make PythonAPI does not work on Windows 10 #2463

Closed
xuyanwen2012 opened this issue Feb 12, 2020 · 16 comments
Closed

make PythonAPI does not work on Windows 10 #2463

xuyanwen2012 opened this issue Feb 12, 2020 · 16 comments
Labels
stale Issue has not had recent activity

Comments

@xuyanwen2012
Copy link

Hello there,
My lab members and I have been stuck on this for many days already.
We are trying to build Carla on Windows 10 machines, and the CarlaUE4 actually runs ok. make launch works perfectly, and Unreal is working, and we can play it. However, when trying to make the PythonAPI, make PythonAPI, we have encountered many issues.

image

It is telling me Carla lib has been successfully installed but it is showing tons of linker errors. And I don't see any dist files been generated.

And I therefore could not run the example python scripts.

image

  • I am using the x64 Native Tools Command Prompt for VS 2017
  • I have Desktop Development with C++ && Windows 8.1 SDK checked
  • I am using ```Python 3.7.6``

Does anyone have encountered similar situations before? Please advise what should I do next.

Thank you very much.

@ixfd64
Copy link

ixfd64 commented Feb 14, 2020

I'm also getting an error, although it's not the same.

Traceback (most recent call last): File "setup.py", line 131, in <module> ext_modules=get_libcarla_extensions(), File "setup.py", line 91, in get_libcarla_extensions libs = [x for x in os.listdir('dependencies/lib') if any(d in x for d in required_libs)] FileNotFoundError: [WinError 3] The system cannot find the path specified: 'dependencies/lib'

Could it be related?

@robogast
Copy link
Contributor

I'm not sure if this exactly the issue, but it smells like it. See #1466.

The errors you show above smell specifically like errors with boost, although I'm not entirely sure what a fix for those would be.

@Julian9875
Copy link

@xuyanwen2012 I have the exact same issue. Have you found the solution yet?

@xuyanwen2012
Copy link
Author

@xuyanwen2012 I have the exact same issue. Have you found the solution yet?

Not yet, I am temporary getting around with this by switching to Linux (WSL). Although WSL have other issues that does not let me to launch the UE4editor, but at least the make PythonAPI can work. So I had my server running on Windows and the client running in WSL (kinda sucks, but at least it works).

@CowBoy4mH3LL
Copy link

Same here....seems like Windows was never built for driving simulator APIs :) ... possibly PACMan at the most.... Also, if we try the pypi version or the one that ships with the latest windows release i.e. carla 0.9.5 it throws the same "dependencies/lib" error..... made me believe I need to build it from scratch.. suffered miserably.... switched to linux instead...

@carfloresp
Copy link

Hi @xuyanwen2012 , I faced the same problem and managed to get around it. After compiling Carla client and server, instead of "make PythonAPI", I did:

cd PythonAPI/carla
python setup.py install

This generated the /dist folder and the ".egg" file within. I am able to run the .py examples now.
Hope this helps in your case.

@stale
Copy link

stale bot commented Jun 3, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue has not had recent activity label Jun 3, 2020
@stale stale bot closed this as completed Jun 10, 2020
@gn01121991
Copy link

Hi, I faced a similar issue recently, i solved the issue my opening the command prompt x64 Native Tools Command Prompt for VS 2017 with admin rights and followed steps mention in comment from @carfloresp ( path to carla\PythonAPI\carla and run python setup.py install)

@kartikeyshaurya
Copy link

Thanks for the help i faced the similar issue now its working 💯

@MarissaCampa
Copy link

Hi @xuyanwen2012 , I faced the same problem and managed to get around it. After compiling Carla client and server, instead of "make PythonAPI", I did:

cd PythonAPI/carla
python setup.py install

This generated the /dist folder and the ".egg" file within. I am able to run the .py examples now.
Hope this helps in your case.

Thanks for the help @carfloresp , this method worked for me too!

@arogyaGurkha
Copy link

arogyaGurkha commented Sep 17, 2022

I'm also getting an error, although it's not the same.

Traceback (most recent call last): File "setup.py", line 131, in <module> ext_modules=get_libcarla_extensions(), File "setup.py", line 91, in get_libcarla_extensions libs = [x for x in os.listdir('dependencies/lib') if any(d in x for d in required_libs)] FileNotFoundError: [WinError 3] The system cannot find the path specified: 'dependencies/lib'

Could it be related?

@ixfd64 Its been a few years but did you find way to solve this?

@jzl20
Copy link

jzl20 commented Sep 27, 2022 via email

@dhruv-g334
Copy link

Hi @xuyanwen2012 , I faced the same problem and managed to get around it. After compiling Carla client and server, instead of "make PythonAPI", I did:

cd PythonAPI/carla python setup.py install

This generated the /dist folder and the ".egg" file within. I am able to run the .py examples now. Hope this helps in your case.

I am still facing the dependencies error. The dependencies folder is still not created.

@Nighttell
Copy link

@dhruv-g334 Do you know how to solve it now?i met it today :(

@ixfd64
Copy link

ixfd64 commented Jan 11, 2023

I'm also getting an error, although it's not the same.
Traceback (most recent call last): File "setup.py", line 131, in <module> ext_modules=get_libcarla_extensions(), File "setup.py", line 91, in get_libcarla_extensions libs = [x for x in os.listdir('dependencies/lib') if any(d in x for d in required_libs)] FileNotFoundError: [WinError 3] The system cannot find the path specified: 'dependencies/lib'
Could it be related?

@ixfd64 Its been a few years but did you find way to solve this?

I don't remember the exact details as it's been a while. However, I think the issue went away for me after I pulled the latest code several months later.

@Sakzayn
Copy link

Sakzayn commented Feb 25, 2023

hi @ixfd64 I have this same issue. How did you fix it Please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issue has not had recent activity
Projects
None yet
Development

No branches or pull requests