dbar4gun: new Wii remote userspace driver as lightgun
-
@lowlevel1989 this no longer seems to install from the retropie script module. How can I get this to install on my retropie setup?
-
@RynoRoe What errors do you get when installing the package ?
-
@mitu it gives me this error:
Could not successfully install dbargun - dbargun is a Linux userspace driver for the wiimote with DolphinBar support.
(opt/retropie/supplementary/dbar4gun/bin/dbar4gun not found). -
@RynoRoe said in dbar4gun: new Wii remote userspace driver as lightgun:
Could not successfully install dbargun - dbargun is a Linux userspace driver for the wiimote with DolphinBar support.
The previous messages are showing the actual error. Try to post them also, along with the your setup info as requested in https://retropie.org.uk/forum/topic/3/read-this-first.
-
@mitu ok I’m running the newest install of retropie on a pi3 while running usb rom service with all my roms on an external drive. Here is the log file text:
Log started at: Sun 12 Jan 21:46:24 GMT 2025
RetroPie-Setup version: 4.8.9 (86607a2c)
System: rpi3 (armv7l) - Raspbian GNU/Linux 10 (buster) - Linux retropie 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux= = = = = = = = = = = = = = = = = = = = =
Installing dependencies for 'dbar4gun' : dbar4gun is a Linux userspace driver for the wiimote with DolphinBar support.
= = = = = = = = = = = = = = = = = = = = =/home/pi/RetroPie-Setup/tmp/build/dbar4gun /home/pi
= = = = = = = = = = = = = = = = = = = = =
Getting sources for 'dbar4gun' : dbar4gun is a Linux userspace driver for the wiimote with DolphinBar support.
= = = = = = = = = = = = = = = = = = = = =git clone --recursive --depth 1 --shallow-submodules --branch master "https://github.com/lowlevel-1989/dbar4gun" "/home/pi/RetroPie-Setup/tmp/build/dbar4gun"
Cloning into '/home/pi/RetroPie-Setup/tmp/build/dbar4gun'...
HEAD is now in branch 'master' at commit '94f3312cab0c2105c1797069407f3a51607b3bdd'
/home/pi
/home/pi/RetroPie-Setup/tmp/build/dbar4gun /home/pi
/home/pi/RetroPie-Setup/scriptmodules/supplementary/dbar4gun.sh: line 28: virtualenv: command not found
/home/pi/RetroPie-Setup/scriptmodules/supplementary/dbar4gun.sh: line 29: /opt/retropie/supplementary/dbar4gun/bin/activate: No such file or directory
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing /home/pi/RetroPie-Setup/tmp/build/dbar4gun
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-a9rpexj5/setup.py", line 5, in <module>
import dbar4gun
File "/tmp/pip-req-build-a9rpexj5/dbar4gun/init.py", line 14, in <module>
from dbar4gun import calibration
File "/tmp/pip-req-build-a9rpexj5/dbar4gun/calibration/init.py", line 1, in <module>
from dbar4gun.calibration.base import CalibrationBase
File "/tmp/pip-req-build-a9rpexj5/dbar4gun/calibration/base.py", line 12, in <module>
class CalibrationBase(object):
File "/tmp/pip-req-build-a9rpexj5/dbar4gun/calibration/base.py", line 45, in CalibrationBase
acc : tuple[int, int, int]) -> tuple[bool, int]:
TypeError: 'type' object is not subscriptable----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-a9rpexj5/
/home/pi/RetroPie-Setup/scriptmodules/supplementary/dbar4gun.sh: line 31: deactivate: command not found
Could not successfully install dbar4gun - dbar4gun is a Linux userspace driver for the wiimote with DolphinBar support. (/opt/retropie/supplementary/dbar4gun/bin/dbar4gun not found).
/home/piLog ended at: Sun 12 Jan 21:46:34 GMT 2025
Total running time: 0 hours, 0 mins, 10 secs -
@RynoRoe said in dbar4gun: new Wii remote userspace driver as lightgun:
/home/pi/RetroPie-Setup/scriptmodules/supplementary/dbar4gun.sh: line 28: virtualenv: command not found
/home/pi/RetroPie-Setup/scriptmodules/supplementary/dbar4gun.sh: line 29: /opt/retropie/supplementary/dbar4gun/bin/activate: No such file or directory
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simpleOK, I see the error. Should be fixable - I'll take a look at it.
EDIT: it seems the new code is not compatible anymore with RaspiOS Buster and needs Python 3.8 as a minimum.
@lowlevel1989 we can install the 0.13 version for older RaspiOS, before the calibration code was added - is that ok ?
-
@mitu so does this mean I need to somehow install an older version of dbar4gun?
-
@RynoRoe At the moment, yes.
You can try this version ofdbar4gun.sh
which you can replace the$RetroPie-Setup/scriptmodules/supplementary/dbar4gun.sh
and re-try the installation. Make a backup of$HOME/RetroPie-Setup
first, before replacing the file, and restore it afterwards. -
Hi, im really curious about this and wanting to try it out. If i understand correctly this will enable you to use two lightguns simultaneously? I have retropie setup on a Pi400 which only has 3 USB ports, and all mine are currently in use (2 controllers+ mouse). Would this work with the Dolphinbar connected through a USB dongle?
@RynoRoe did you get this working with the older version ? -
@RynoRoe the installation should work now without futher modifications, just update RetroPie-Setup and re-try the installation.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.