Missing The 'linux/input.h' - Windows
scorpio1441 opened this issue · 25 comments
I'm trying to run the newest v2.0-rewrite on Windows and apparently evdev
requires linux/input.h
The 'linux/input.h' and 'linux/input-event-codes.h' include files
are missing. You will have to install the kernel header files in
order to continue:
That is a bug that I'll fix today, you can fix it by removing the 'app/plugins/EvdevControler' folder.
This should now be solved in the newest update I did 👍
@Tumppi066 Thanks, but now the First Time Panel won't start:
[�[94m0.031�[0m] [�[92msrc�[93m\logger.py�[0m] - Logger initialized!
[�[94m0.125�[0m] [�[92msrc�[93m\settings.py�[0m] - ('Theme',)
[�[94m0.344�[0m] [�[93mmain.py�[0m] - ("No module named 'evdev'",)
pygame 2.5.0 (SDL 2.28.0, Python 3.9.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
[�[94m0.531�[0m] [�[92msrc�[93m\settings.py�[0m] - ('LSTRDrawLanes',)
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files\Python39\lib\tkinter\__init__.py", line 1892, in __call__
return self.func(*args)
File "D:\Downloads\Euro-Truck-Simulator-2-Lane-Assist-2.0-rewrite\src\mainUI.py", line 59, in <lambda>
helpers.MakeButton(pluginFrame, "First Time Setup", lambda: switchSelectedPlugin("plugins.FirstTimeSetup.main"), 2, 0, width=20, style="Accent.TButton")
File "D:\Downloads\Euro-Truck-Simulator-2-Lane-Assist-2.0-rewrite\src\mainUI.py", line 127, in switchSelectedPlugin
ui = plugin.UI(pluginFrame)
File "D:\Downloads\Euro-Truck-Simulator-2-Lane-Assist-2.0-rewrite\plugins\FirstTimeSetup\main.py", line 47, in __init__
self.page0()
File "D:\Downloads\Euro-Truck-Simulator-2-Lane-Assist-2.0-rewrite\plugins\FirstTimeSetup\main.py", line 71, in page0
self.logo = self.logo.resize((width, height), Image.ANTIALIAS)
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
Have you tried restarting the app?
If so then do this.
Installed with installer:
- Go into
~/venv/Scripts
- Open a command prompt (click the file explorer address bar -> cmd.exe)
- Type
.\pip.exe uninstall pillow
- Type
.\pip.exe install pillow
- Try again
Installed from source:
- Open a command prompt (click the file explorer address bar -> cmd.exe)
- Type
.\pip.exe uninstall pillow
- Type
.\pip.exe install pillow
- Try again
@Tumppi066 Same thing
@rknetwork
Ok that's interesting pillow really should be working.
Can you run this command like you did the last ones?
pip show pillow
And then tell me the version.
Yup I for some reason your pillow doesn't include the default ANTIALIAS ._.
In any case good that you got it fixed, will add that to the FAQ on discord!
@Tumppi066 Also, I just wiped the whole thing and decided to start from scratch using installer, here is what was missing in vdev:
D:\Downloads\Euro-Truck-Simulator-2-Lane-Assist-anaconda-updater\venv\Scripts
pip install sv_ttk psutil pillow pygame cv2 opencv-python
pip install dxcam onnx playsound mss pygments vgamepad wheel
pip install onnxruntime keyboard chlorophyll
This is extremely weird since the installer should just get all of them from the requirements.txt file in the app folder.
I guess I should probably check my installer again xD
This is extremely weird since the installer should just get all of them from the requirements.txt file in the app folder.
I guess I should probably check my installer again xD
Yes, but when 1 package fails (evdev) - rest are ignored 😎
Ah seems that I didn't push the changes yet xD
I added a check for different systems so that it now doesn't do that xD
Anyways, I wasn't able to get it to work properly for weeks now, I tried both ETS2 and ATS, same result... Can you run it on a normal 1080p monitor with 1920x1080 resolution?
What part exactly are you having issues with? And yes it should definitely work on a 1080p monitor :D
- The lanes detecting correctly
- Setting up the app side of the input.
- Setting up the game side of the input.
- Inaccurate / "Bouncy" / Aggressive steering
What part exactly are you having issues with? And yes it should definitely work on a 1080p monitor :D
- The lanes detecting correctly - NO
- Setting up the app side of the input. - YES
- Setting up the game side of the input. - YES
- Inaccurate / "Bouncy" / Aggressive steering - YES
- The capturing camera is following the steering, when too close to the lane markings - it stops detecting lanes or detects wrong, this is when chaos begins
https://github.com/cfzd/Ultra-Fast-Lane-Detection-v2 - Demo is looking good, no matter how the camera is setup, but your lane detection is not even close to that, what's the difference?
Can you send me an image of what the app sees then?
Preferably in a place where it doesn't detect them well and I'll check how it looks.
I'm using a different technique than UFLD called LSTR. It is much more prone to errors if the camera is not set just right. The flipside being it can run without a GPU. I could try and check v2 and see how well it runs and them might implement that as an option 👍
@Tumppi066 I will wait for the new version, I'm giving up on this one.
None of the lane recognition projects look promising at this point.
FYI: I found that CoordinateX,Y are being provided by the telemetry. Maybe it's worth comparing them to the GPS route and adjust steering accordingly. =)
You can actually check how it should look and work here (though I had the sensitivity etc... wrong so it's bouncing)
#25 (comment)
Unfortunately I can't actually get the route from the game (well I get the start and end, but no the route itself) xD
I could do that otherwise 👍
You can actually check how it should look and work here (though I had the sensitivity etc... wrong so it's bouncing) #25 (comment)
I have tried every possible scenario, you know - I'm a maniac...
Unfortunately I can't actually get the route from the game (well I get the start and end, but no the route itself) xD
I could do that otherwise 👍
The game does autosaves right, it should include the route. I'm still researching this
@rknetwork
That's actually genius. Want to come to a discord call tomorrow so I can get your lane assist fixed? I suddenly have an urge to get you onboard with developing some kind of route plugin xD. I already have access to the ETS2 API because of a plugin another person made
@Tumppi066 Let's hold off on this one for now... I lost my patience =))) I think I should write something in Rust hitting the memory directly... SCS is really hiding all these pointers. =)
No worries!
Tell me if you find something, I'm focusing on the tutorials for v2 xD
edit: You can close this if you want, tho we didn't get the issue fixed.
Been a while so I will close this now regardless :)