Closed LostThinker closed 1 month ago
Hi,
The context manager should be installed. Then, you can enable the Python console, and you should get a log similar to the one below. Can you share the log?
Make sure that the plugin is in the correct path and that the extra libraries are also in place. Did you enable the plug-in here:
regards, Adrian
Hi, Thank you for your reply! I checked the output of the Python console, as shown in the following image. I tried to find out why but failed.
It seems that you have an issue with the Python distribution. Did you copy the Dlls and Lib from assetto_corsa_gym\assetto-corsa-autonomous-racing-plugin\windows-libs
to the Steam\steamapps\common\assettocorsa\system\x64
folder?
Follow this README.
It should be something like:
I'm sure I did everything according to the readme, but the error still exists. I don't know much about the python plugin for Assetto Corsa, but it looks like it calls python33.zip as an interpreter. I'm wondering if this interpreter has anything to do with the local python environment? The DLLs folder seems to have the required _ctypes.pyd, but it is not recognized by the python interpreter. Is there any way to make sure it gets read?
Maybe you have a default Python distribution that is conflicting with the one provided by AC. Could you add a few lines to sensor_par.py to print that and share it here? It should be as follows:
import sys
import time
import traceback
import datetime
import ac
import acsys
# setup logger
import ac_logger
ac_logger.setup_logger()
import logging
logger = logging.getLogger(__name__)
logger.info("Starting sensors_par...")
import platform
logger.info("Python version: {}".format(sys.version))
logger.info("Python path: {}".format(sys.executable))
logger.info("Architecture: {}".format(platform.architecture()))
I'm getting this:
I see where the problem is. You will need to update sensor_par.py here with your path. This happened because you have AC installed on the F drive.
Anyway, I pushed a fix. It should automatically detect the path now Thanks for reporting this.
Hi,
I am encountering an issue when trying to configure Assetto Corsa and run the show static info block in test_client.ipynb. Specifically, I get the following error: "ConnectionRefusedError: [WinError 10061] The connection could not be established because the target computer actively refused it."
I followed the tutorial step-by-step, configured Assetto Corsa, and selected the same car and track as specified in the config.yaml. Additionally, I started a race before running the code. The error suggests that the server might not be started.
Could you please provide more detailed instructions on how to properly run the demo?
Thank you!