Closed SSubhnil closed 3 months ago
please cross-verify the python version you are currenty using ( type python in cmd and look at the version ) and the version mentioned in the file named libboost
in the folder PythonAPI\carla\dependencies\lib\
.
If they vary, install the version mentioned in that libboost
file and then make it the default python version ( keep it at the top of environment variables' path
variable list ).
make launch
again. If it didn't work,python setup.py install
in the folder PythonApi\carla
.I have the same problem building 0.9.10.1 under Windows. Previously I had a similar problem with 0.9.9 under Linux (see #3163). The problem is the osm2odr build fails, because cmake doesn't find libxerces when invoked by BuildOSM2ODR.bat (as shown in your error output):`
Failed to find XercesC (missing: XercesC_VERSION)
I'm trying to figure out how to get past this; I've found some tips online about giving hint paths to cmake. I wonder if this commit (last one of several recently) might be relevant?
commit c2cb39afca552b5533f31fd35c8fce4cf655f613
Author: Axel <???@????>
Date: Wed Sep 30 09:42:52 2020 +0200
Removed libxerces-c from prerequisites and documentation
Edit: actually my carla\Build\xerces-c-3.2.3-install
folder just has empty include
and lib
folders. So the problem started before it got to osm2odr.bat I guess. Sorry, will try and figure it out before commenting futher!
Charlie Wartnaby, Applus IDIADA
OK this was a bit of a Heisenbug to me :-) .
I first peppered install_xercesc.bat
with ECHO and PAUSE statements so that I could step through it and see what was going on.
I also deleted carla/Build/xerces*
(I had 3 folders) completely, to force a rebuild of xerces-c.
When I ran 'make PythonAPI' again, the xerces-c build succeeded this time, generating carla\Build\xerces-c-3.2.3-install\lib\xerces-c_3.lib
.
Then I reverted out my changes to install_xercesc.bat
, deleted carla/Build/xerces*
, and again it worked.
However, I have a theory. I have had problems with the other install_*.bat
files, which I'm guessing is due to the action of Kaspersky Endpoint Security on my corporate machine. Those .bat files tend to fail with Access Denied errors when they attempt to delete or rename a folder which they have just created, e.g. by expanding a .zip file. I'm guessing that's because Kaspersky is still scanning the newly-created files, and it has some kind of lock on them (which it probably shouldn't). I fixed those previously by adding TIMEOUT commands to the .bat files before any folder renames or deletes, for several minutes in the case of the enormous boost installation.
So I suggest you try this:
carla/Build/xerces*
and try make PythonAPI
again. You might get lucky this time. install_xercesc.bat
...
rem Remove unnecessary files and folders
echo %FILE_N% Removing "%XERCESC_TEMP_FILE%"
echo CW IDIADA pausing a while in case Kaspersky is still scanning files we are about to delete/rename...
timeout 60
del "%XERCESC_TEMP_FILE_DIR%"
...
As for that recent change to remove libxerces-c from the prerequisites, I understand now that it has been added as one of the packages built from source, hence no need for it to be separately installed any more, so that fits.
All working for me now (except a mysteriously blank pygame window when I run manual_control.py
as a test -- not related, I'm sure).
Charlie Wartnaby, Applus IDIADA
@bernatx could you provide some feedback?
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.
please cross-verify the python version you are currenty using ( type python in cmd and look at the version ) and the version mentioned in the file named
libboost
in the folderPythonAPI\carla\dependencies\lib\
.If they vary, install the version mentioned in that
libboost
file and then make it the default python version ( keep it at the top of environment variables'path
variable list ).
- try
make launch
again. If it didn't work,- try running
python setup.py install
in the folderPythonApi\carla
.
I am sorry that there is not a folder PythonAPI\carla\dependencies\lib\
,I do not know why. So I can not find a file named "libboost". There is only such file as follow:
The error like follow:
please cross-verify the python version you are currenty using ( type python in cmd and look at the version ) and the version mentioned in the file named
libboost
in the folderPythonAPI\carla\dependencies\lib\
.If they vary, install the version mentioned in that
libboost
file and then make it the default python version ( keep it at the top of environment variables'path
variable list ).
- try
make launch
again. If it didn't work,- try running
python setup.py install
in the folderPythonApi\carla
.
And When I make launch, the error is like follow:
What should I do? Thank you advanced!
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.
Still getting the same error
Windows 10 (latest)
Carla: 0.9.13
Command: make PythonAPI
Error:
Also, this comment suggests checking the Python version from libboost
file in the folder PythonAPI\carla\dependencies\lib\
, but this file doesn't exist in this folder.
Still getting the same error Windows 10 (latest) Carla: 0.9.13 Command:
make PythonAPI
Error:
Also, this comment suggests checking the Python version from
libboost
file in the folderPythonAPI\carla\dependencies\lib\
, but this file doesn't exist in this folder.
Did you solve this problem?
Still getting the same error Windows 10 (latest) Carla: 0.9.13 Command:
make PythonAPI
Error:Also, this comment suggests checking the Python version from
libboost
file in the folderPythonAPI\carla\dependencies\lib\
, but this file doesn't exist in this folder.Did you solve this problem?
Hi,guys. I met the same problem recently. But today I knew why it happened in my environment. My Environment: Windows10 Pro Python3.7.9 Carla 0.9.14 UE-Carla master branch At beginning, I downloaded zip file of carla 0.9.14 due to low speed with git. I'm not confirmed that will influnce the compiling process. But when I met the problem, what I did is redownloading the project with git command and recompiling the project again with command "make PythonAPI". And this time, the error was more understandable: "error: invaild command 'bdist_wheel'" which was solved in issue #5542. Seeing the solution mentioned in #5542, I realized I forgot to install 'wheel' python package in former step. So of course, I cannot build wheel file in PythonAPI/carla/dist folder. But I dont know why this time, I successed building the libs in the folder \dependencies\lib. Hope that can help you all.
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.
Version: 0.9.10 OS: Win 10 (latest) GPU: GTX 1050Ti 4 GB
I have the latest assets and
dev
branch code. I had errors with Unreal Editor after building from 0.9.9 to 0.9.10 so I am now building 0.9.10 in a different drive. Themake PythonAPI
encounters following message:It never creates a
dist
anddependencies
folder inPythonAPI\carla
but is somehow successful. It actually deletes thedist
folder containing.egg
file. Note that this message appears after every other process has finished, meaning at the last stages.Then when I do
make launch
, I get the following:I cannot really figure what error 5 means.