• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login

dbar4gun: new Wii remote userspace driver as lightgun

Scheduled Pinned Locked Moved Ideas and Development
driverlightgunwiimotedolphinbar
19 Posts 5 Posters 1.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    mitu Global Moderator @RynoRoe
    last edited by 13 Jan 2025, 05:10

    @RynoRoe What errors do you get when installing the package ?

    R 1 Reply Last reply 15 Jan 2025, 19:31 Reply Quote 0
    • R
      RynoRoe @mitu
      last edited by 15 Jan 2025, 19:31

      @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).

      M 1 Reply Last reply 15 Jan 2025, 20:05 Reply Quote 0
      • M
        mitu Global Moderator @RynoRoe
        last edited by 15 Jan 2025, 20:05

        @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.

        R 1 Reply Last reply 16 Jan 2025, 04:07 Reply Quote 0
        • R
          RynoRoe @mitu
          last edited by 16 Jan 2025, 04:07

          @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/pi

          Log ended at: Sun 12 Jan 21:46:34 GMT 2025
          Total running time: 0 hours, 0 mins, 10 secs

          M 1 Reply Last reply 16 Jan 2025, 04:41 Reply Quote 0
          • M
            mitu Global Moderator @RynoRoe
            last edited by mitu 16 Jan 2025, 04:41

            @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/simple

            OK, 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 ?

            R 1 Reply Last reply 17 Jan 2025, 03:22 Reply Quote 0
            • R
              RynoRoe @mitu
              last edited by 17 Jan 2025, 03:22

              @mitu so does this mean I need to somehow install an older version of dbar4gun?

              M 1 Reply Last reply 17 Jan 2025, 04:18 Reply Quote 0
              • M
                mitu Global Moderator @RynoRoe
                last edited by 17 Jan 2025, 04:18

                @RynoRoe At the moment, yes.
                You can try this version of dbar4gun.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.

                1 Reply Last reply Reply Quote 0
                • Z
                  zipstick
                  last edited by 29 Jan 2025, 11:35

                  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 ?

                  1 Reply Last reply Reply Quote 0
                  • M
                    mitu Global Moderator
                    last edited by 4 Feb 2025, 16:32

                    @RynoRoe the installation should work now without futher modifications, just update RetroPie-Setup and re-try the installation.

                    C 1 Reply Last reply 17 Feb 2025, 16:18 Reply Quote 0
                    • C
                      Chef Otis @mitu
                      last edited by 17 Feb 2025, 16:18

                      @mitu

                      I get the same errors as @RynoRoe , just on a rpi4 4.8.9

                      M 1 Reply Last reply 17 Feb 2025, 16:20 Reply Quote 0
                      • M
                        mitu Global Moderator @Chef Otis
                        last edited by 17 Feb 2025, 16:20

                        @Chef-Otis said in dbar4gun: new Wii remote userspace driver as lightgun:

                        I get the same errors as @RynoRoe , just on a rpi4 4.8.9

                        Are you fully up-to-date ?

                        C 1 Reply Last reply 17 Feb 2025, 18:52 Reply Quote 0
                        • C
                          Chef Otis @mitu
                          last edited by 17 Feb 2025, 18:52

                          @mitu Yessir, always up to date and official

                          M 1 Reply Last reply 17 Feb 2025, 19:03 Reply Quote 0
                          • M
                            mitu Global Moderator @Chef Otis
                            last edited by 17 Feb 2025, 19:03

                            @Chef-Otis Please post the exact error message. The latest version shouldn't have that error anymore.

                            C 1 Reply Last reply 17 Feb 2025, 20:40 Reply Quote 0
                            • C
                              Chef Otis @mitu
                              last edited by 17 Feb 2025, 20:40

                              @mitu ah yes, I see it now

                              Log started at: Mon 17 Feb 15:37:11 EST 2025

                              RetroPie-Setup version: 4.8.9 (38102024)
                              System: rpi4 (armv7l) - Raspbian GNU/Linux 10 (buster) - Linux retropie 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 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 '45860d93fcc1d2d55e915c9352710685c791ffd8'
                              /home/pi
                              /home/pi/RetroPie-Setup/tmp/build/dbar4gun /home/pi
                              The virtual environment was not created successfully because ensurepip is not
                              available. On Debian/Ubuntu systems, you need to install the python3-venv
                              package using the following command.

                              apt-get install python3-venv
                              

                              You may need to use sudo with that command. After installing the python3-venv
                              package, recreate your virtual environment.

                              Failing command: ['/opt/retropie/supplementary/dbar4gun/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

                              /home/pi/RetroPie-Setup/scriptmodules/supplementary/dbar4gun.sh: line 29: /opt/retropie/supplementary/dbar4gun/bin/activate: No such file or directory
                              /home/pi/RetroPie-Setup/scriptmodules/supplementary/dbar4gun.sh: line 30: pip3: command not found
                              /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/pi

                              Log ended at: Mon 17 Feb 15:37:13 EST 2025
                              Total running time: 0 hours, 0 mins, 2 secs

                              1 Reply Last reply Reply Quote 0
                              • M
                                mitu Global Moderator
                                last edited by 18 Feb 2025, 04:31

                                @Chef-Otis you have the latest version indeed, bu the error is puzzling since the package's dependencies specifically install python3-virtualenv and python3-dev. I can't reproduce it here.

                                What's the output of the locale -a command ? Did you change the system/user language ?

                                C 1 Reply Last reply 18 Feb 2025, 15:29 Reply Quote 0
                                • C
                                  Chef Otis @mitu
                                  last edited by 18 Feb 2025, 15:29

                                  @mitu

                                  pi@retropie:~ $ locale -a
                                  C
                                  C.UTF-8
                                  en_GB.utf8
                                  POSIX

                                  this is what I get with that command. I don't think I've change any sort of system/user language..

                                  After applying apt-get install python3-venv I was able to install dbar4gun successfully, but I still can't actually get the wiimote working.

                                  L 1 Reply Last reply 1 Mar 2025, 11:18 Reply Quote 0
                                  • L
                                    lowlevel1989 @Chef Otis
                                    last edited by 1 Mar 2025, 11:18

                                    @Chef-Otis, have you followed the steps in the README? Were you able to start the service, or what issue are you facing exactly?

                                    I usually respond faster when the error is reported through this channel: GitHub Issues.

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post

                                    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.

                                      This community forum collects and processes your personal information.
                                      consent.not_received