gunpadawan / gunconf Goto Github PK
View Code? Open in Web Editor NEWConfiguration utility for Aimtrak light gun
License: MIT License
Configuration utility for Aimtrak light gun
License: MIT License
I ran the entire command prompt, however along the way it gave me error messages. Then it wouldn't launch. I assumed some files were missing, so I went ahead and downloaded the files directly, then dropped them into the mini sd in the exact location the files had downloaded under the command prompt attempt. I've tried to launch gunconf.sh several different ways (yes, it is exactly where it is supposed to be) and it's never worked. I tried it through the command, I tried it though the lxde desktop, I tried it from the setup screen (where gunconfig does show, but goes to a black screen then stops when entered).
I've tried altering permissions. Using some of these methods it tells me that I don't have permission, while others say no such directory exists. I wouldn't bother you if I hadn't exhausted myself trying to get it to run, but I'm exhausted trying.
When I try to install the python module, it throws an error.
pi@retropie:~/gunconf $ python setup.py install
Traceback (most recent call last):
File "setup.py", line 1, in
from setuptools import setup, find_packages
ImportError: No module named setuptools
I realize this is not the best place to ask questions, but I don't know of any other way for this project so I'll ask a few basic ones here and hope it's okay. Feel free to redirect them to somewhere else if appropriate. My decision to purchase the hardware gunconf supports depend strongly on some of the answers here.
Questions are as follows:
I noticed Gunconf has only been tested with something called "AdvanceMAME" but is there any reason to believe it wouldn't work with stock MAME? That would be far more useful and have broader reach (including to me).
Are there plans for Gunconf to support firmware updates at some point in the future?
Does Gunconf support multiple guns/players?
Could I still use the guns at some basic level even if I don't install Gunconf? If so, what would I miss?
Are there plans to collaborate with Ultimarc on future updates (assuming any are in the works)? I know they can supply any low-level communication/code if needed.
I'm following the instructions to install gunconf on my new retropie 4.7.1 image but when I execute the command:
sudo python setup.py install
I receive this error stack:
`Installed /usr/local/lib/python2.7/dist-packages/gunconf-0.2.0rc2-py2.7.egg
Processing dependencies for gunconf==0.2.0rc2
Searching for pyusb>=1.0.0
Reading https://pypi.org/simple/pyusb/
Downloading https://files.pythonhosted.org/packages/b9/8d/25c4e446a07e918eb39b5af25c4a83a89db95ae44e4ed5a46c3c53b0a4d6/pyusb-1.1.1.tar.gz#sha256=7d449ad916ce58aff60b89aae0b65ac130f289c24d6a5b7b317742eccffafc38
Best match: pyusb 1.1.1
Processing pyusb-1.1.1.tar.gz
Writing /tmp/easy_install-VOW2cB/pyusb-1.1.1/setup.cfg
Running pyusb-1.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-VOW2cB/pyusb-1.1.1/egg-dist-tmp-2BO4u2
/tmp/easy_install-VOW2cB/pyusb-1.1.1/temp/easy_install-00RmU5/setuptools_scm-6.0.1/src
<pkg_resources.WorkingSet object at 0x75ad2f10>
Traceback (most recent call last):
File "setup.py", line 56, in
'data/theme/HD/*']
File "/usr/lib/python2.7/dist-packages/setuptools/init.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 117, in do_egg_install
cmd.run()
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 443, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 685, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 732, in install_item
self.process_distribution(spec, dist, deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 777, in process_distribution
[requirement], self.local_index, self.easy_install
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 782, in resolve
replace_conflicting=replace_conflicting
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 1065, in best_match
return self.obtain(req, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 1077, in obtain
return installer(requirement)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 704, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 730, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 915, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1183, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1169, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 253, in run_setup
raise
File "/usr/lib/python2.7/contextlib.py", line 35, in exit
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python2.7/contextlib.py", line 35, in exit
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 166, in save_modules
saved_exc.resume()
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 141, in resume
six.reraise(type, exc, self._tb)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 154, in save_modules
yield saved
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-VOW2cB/pyusb-1.1.1/setup.py", line 117, in
File "/usr/lib/python2.7/dist-packages/setuptools/init.py", line 144, in setup
_install_setup_requires(attrs)
File "/usr/lib/python2.7/dist-packages/setuptools/init.py", line 139, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 724, in fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 782, in resolve
replace_conflicting=replace_conflicting
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 1065, in best_match
return self.obtain(req, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 1077, in obtain
return installer(requirement)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 791, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 704, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 730, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 915, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1183, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1169, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 253, in run_setup
raise
File "/usr/lib/python2.7/contextlib.py", line 35, in exit
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python2.7/contextlib.py", line 35, in exit
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 166, in save_modules
saved_exc.resume()
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 141, in resume
six.reraise(type, exc, self._tb)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 154, in save_modules
yield saved
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-VOW2cB/pyusb-1.1.1/temp/easy_install-00RmU5/setuptools_scm-6.0.1/setup.py", line 52, in
# have to be included in MANIFEST.in as well.
File "/tmp/easy_install-VOW2cB/pyusb-1.1.1/temp/easy_install-00RmU5/setuptools_scm-6.0.1/setup.py", line 29, in scm_config
# How mature is this project? Common values are
File "/tmp/easy_install-VOW2cB/pyusb-1.1.1/temp/easy_install-00RmU5/setuptools_scm-6.0.1/src/setuptools_scm/init.py", line 8, in
File "/tmp/easy_install-VOW2cB/pyusb-1.1.1/temp/easy_install-00RmU5/setuptools_scm-6.0.1/src/setuptools_scm/config.py", line 6, in
File "/tmp/easy_install-VOW2cB/pyusb-1.1.1/temp/easy_install-00RmU5/setuptools_scm-6.0.1/src/setuptools_scm/utils.py", line 41
print(*k)
^
SyntaxError: invalid syntax`
When I launch Gunconf it loads and tells me that it detected the gun and to pull the trigger to configure then it just sits at "gun detected loading configuration" . It isn't frozen because I can select quit. I have have let it sit like that over night and it still never loads.
I have an issue with getting this program to detect my controller. I plugged it into my windows computer and got it calibrated and it worked just fine but it doesnt work in ubuntu 16.04 lts rig. Any ideas? I unplugged and re plugged in the controller several times and I dont have it connected to a splitter.
I installed this on a Raspberry Pi4 running Retropie. Upon launching, the application launches fine. But it refuses to load the gun configuration. Just sit there, not frozen, just loading. Some users here also reported this. When I quite the application, I get the following log:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/local/lib/python2.7/dist-packages/gunconf-0.2.0rc2-py2.7.egg/gunconf/controller.py", line 108, in run
trans - self._machine.handle()
File "/usr/local/lib/python2.7/dist-packages/gunconf-0.2.0rc2-py2.7.egg/gunconf/util/statemachine.py", line 54, in handle
return handler()
File "/usr/local/lib/python2.7/dist-packages/gunconf-0.2.0rc2-py2.7.egg/gunconf/controller.py", line 184, in state_loading
cnf = self._gun.getConfig()
File "/usr/local/lib/python2.7/dist-packages/gunconf-0.2.0rc2-py2.7.egg/gunconf/drivers/aimtrak.py", line 81, in getConfig
cnf = config_from_buffer(self._getConfig())
File "/usr/local/lib/python2.7/dist-packages/gunconf-0.2.0rc2-py2.7.egg/gunconf/drivers/conversion.py", line 66, in config_from_buffer
cnf[' onCalTrig'] = ((pBuf[11] & 0x1) != 0)
IndexError: list index out of range
Is this a Python version error thing? What is happening here?
Thanks in advance.
After I input this step, I get -bash: repo: no such file or directory
I'm pretty sure I put it in right
git clone repo/gunconf.git
What am I doing wrong???
I do use these symbols <>
Not showing up in this comment
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.