I am trying to install the carla package in pyCharm. I get this error:
Collecting carla
Using cached carla-0.9.5.tar.gz (3.9 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/g7/zcxwx2kd1271sjr_g1z45lqw0000gn/T/pip-install-2o7825mv/carla_f852b9e62105468aa17c77b2df74f144/setup.py", line 114, in <module>
ext_modules=get_libcarla_extensions(),
File "/private/var/folders/g7/zcxwx2kd1271sjr_g1z45lqw0000gn/T/pip-install-2o7825mv/carla_f852b9e62105468aa17c77b2df74f144/setup.py", line 31, in get_libcarla_extensions
linux_distro = platform.dist()[0] # pylint: disable=W1505
AttributeError: module 'platform' has no attribute 'dist'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
I do not know what the problem is. I have the latest oio, wheel and setuptool (23.1.2, 0.40.0, 67.7.2)
I have macOS? could that be the problem? What can I do to find the source of the error?