JSubelj / g910-gkey-macro-support

GKey support for Logitech G910 Keyboard on Linux
GNU General Public License v3.0
99 stars 31 forks source link

[Issue] Can't install on Ubuntu 18.10 #10

Closed Gitnotrekt closed 5 years ago

Gitnotrekt commented 5 years ago

Describe the bug When I run chmod +x installer.sh; sudo ./installer.sh or sudo python setup.py install --record files.txt it gives me an error code:" Traceback (most recent call last): File "setup.py", line 8, in import lib.PROJECT_INFO as PROJECT_INFO File "/home/leon/Schreibtisch/g910key/g910-gkey-macro-support/lib/PROJECT_INFO.py", line 5 SyntaxError: Non-ASCII character '\xc5' in file /home/leon/Schreibtisch/g910key/g910-gkey-macro-support/lib/PROJECT_INFO.py on line 5, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details " , and that's why I can't get it to install.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://github.com/JSubelj/g910-gkey-macro-support/wiki and follow the steps.'
  2. Click on '....'
  3. Scroll down to 'Installation'
  4. See error

Expected behavior It should install without any problems.

Screenshots Bildschirmfoto von 2019-03-24 12-53-33

Additional info

Desktop (please complete the following information):

Additional context When I installed uinput I could only run the python install command with sudo to install it. (http://tjjr.fi/sw/python-uinput/#download-and-install at "Download and install", see image read the error code.) Bildschirmfoto von 2019-03-24 13-00-48

JSubelj commented 5 years ago

Hey, thank you for a thorough report. As i can see from the second screenshot you are using python2.7 and not python3. This can be also tested with python --version. Python 3.7 is needed for the driver to run. This was already reported in issue: https://github.com/JSubelj/g910-gkey-macro-support/issues/3 and issue: https://github.com/JSubelj/g910-gkey-macro-support/issues/5 Try the steps that are written in those two issues (running python3 setup.py install should suffice).

About running the setup.py command as normal user: It is normal that you have to run the command as super user (root) because you are installing software, that means that you are tempering with system files which means that you need root privilege.

If the methods in the referenced issues do not work please do not hesitate to reply to this issue and post the error messages.

Thank you for trying my software.

Gitnotrekt commented 5 years ago

I partly uninstalled Python 2.7 and tried it with the command "python" and "python3.7", but now it gives me an other error code. I will attach the error codes soon.

Gitnotrekt commented 5 years ago

Ok, here is the error code: Bildschirmfoto von 2019-03-31 11-32-24

I had the g810-led thing installed before I tried installing this program. I could even press the G5 key and my browser window would reload, so I now tried disabling the Gkey to Fkey mapping and now I obviously can't reload my browser windows anymore with G5. But it still doesn't install.

JSubelj commented 5 years ago

The error says you dont have setuptools installed. Install it first with sudo pip3 install setuptools then try sudo python3 setup.py install.

Gitnotrekt commented 5 years ago

Thanks, that worked.