Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error executing with Python 3? #5

Open
cgimenes opened this issue Jan 7, 2017 · 3 comments
Open

Error executing with Python 3? #5

cgimenes opened this issue Jan 7, 2017 · 3 comments
Labels

Comments

@cgimenes
Copy link

cgimenes commented Jan 7, 2017

Hi,
when I try to execute any command (even with root permission), the application displays this exception:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/rival/rival.py", line 63, in open_device
    device = Rival100(dev_path = dev_path)
  File "/usr/lib/python3.6/site-packages/rival/rival.py", line 270, in __init__
    Rival.__init__(self, hid_id, dev_path)
  File "/usr/lib/python3.6/site-packages/rival/rival.py", line 176, in __init__
    device = open_hiddevice(hid_id, dev_path)
  File "/usr/lib/python3.6/site-packages/rival/rival.py", line 42, in open_hiddevice
    device =  hidraw.HIDRaw(open(dev_path, 'w+'))
TypeError: expected str, bytes or os.PathLike object, not NoneType

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/rivalctl", line 11, in <module>
    load_entry_point('rivalctl==0.1', 'console_scripts', 'rivalctl')()
  File "/usr/lib/python3.6/site-packages/rival/rivalctl.py", line 66, in main
    _main(args)
  File "/usr/lib/python3.6/site-packages/rival/rivalctl.py", line 19, in _main
    device = open_device()
  File "/usr/lib/python3.6/site-packages/rival/rival.py", line 65, in open_device
    device = Rival(dev_path = dev_path)
  File "/usr/lib/python3.6/site-packages/rival/rival.py", line 176, in __init__
    device = open_hiddevice(hid_id, dev_path)
  File "/usr/lib/python3.6/site-packages/rival/rival.py", line 42, in open_hiddevice
    device =  hidraw.HIDRaw(open(dev_path, 'w+'))
TypeError: expected str, bytes or os.PathLike object, not NoneType

I'm using:
Arch Linux kernel 4.8.13-1
Python 3.6.0

And installed from this AUR's package: https://aur.archlinux.org/packages/rivalctl-git/

@her001 her001 added the bug label Jun 23, 2017
@hymair
Copy link

hymair commented Oct 28, 2017

I have exactly the same issue.

Rival 110
Arch Linux 4.13.9

@cgimenes
Copy link
Author

I'm using this package now: https://aur.archlinux.org/packages/rivalcfg-git/

@hymair
Copy link

hymair commented Oct 29, 2017

It was the first one I tried but "No supported devices found"...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants