Solaar: could install from source on ubuntu 18.04 'Solaar: missing required package 'python-pyudev'

Created on 4 Jun 2018  路  5Comments  路  Source: pwr-Solaar/Solaar

Hi,

I want to install from source to support anywhere master 2s.

I was using conda python. In order to allow system wide installation, I removed the conda path, so now

$ which python
$ /usr/bin/python
$ python --version
$ Python 3.6.5

I made sure to install python3-pyudev

$ sudo apt install python3-pyudev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-pyudev is already the newest version (0.21.0-1).
0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.

Build and install was successful with python3

$ sudo ./setup.py install --dry-run
running install
running build
running build_py
creating build/lib
creating build/lib/hidapi
copying lib/hidapi/udev.py -> build/lib/hidapi
copying lib/hidapi/__init__.py -> build/lib/hidapi
copying lib/hidapi/hidconsole.py -> build/lib/hidapi
creating build/lib/logitech_receiver
copying lib/logitech_receiver/common.py -> build/lib/logitech_receiver
copying lib/logitech_receiver/receiver.py -> build/lib/logitech_receiver
copying lib/logitech_receiver/settings.py -> build/lib/logitech_receiver
copying lib/logitech_receiver/hidpp10.py -> build/lib/logitech_receiver
copying lib/logitech_receiver/descriptors.py -> build/lib/logitech_receiver
copying lib/logitech_receiver/i18n.py -> build/lib/logitech_receiver
copying lib/logitech_receiver/__init__.py -> build/lib/logitech_receiver
copying lib/logitech_receiver/hidpp20.py -> build/lib/logitech_receiver
copying lib/logitech_receiver/settings_templates.py -> build/lib/logitech_receiver
copying lib/logitech_receiver/notifications.py -> build/lib/logitech_receiver
copying lib/logitech_receiver/base_usb.py -> build/lib/logitech_receiver
copying lib/logitech_receiver/listener.py -> build/lib/logitech_receiver
copying lib/logitech_receiver/base.py -> build/lib/logitech_receiver
copying lib/logitech_receiver/status.py -> build/lib/logitech_receiver
copying lib/logitech_receiver/special_keys.py -> build/lib/logitech_receiver
creating build/lib/solaar
copying lib/solaar/upower.py -> build/lib/solaar
copying lib/solaar/i18n.py -> build/lib/solaar
copying lib/solaar/__init__.py -> build/lib/solaar
copying lib/solaar/async.py -> build/lib/solaar
copying lib/solaar/listener.py -> build/lib/solaar
copying lib/solaar/gtk.py -> build/lib/solaar
copying lib/solaar/configuration.py -> build/lib/solaar
creating build/lib/solaar/ui
copying lib/solaar/ui/pair_window.py -> build/lib/solaar/ui
copying lib/solaar/ui/window.py -> build/lib/solaar/ui
copying lib/solaar/ui/config_panel.py -> build/lib/solaar/ui
copying lib/solaar/ui/tray.py -> build/lib/solaar/ui
copying lib/solaar/ui/__init__.py -> build/lib/solaar/ui
copying lib/solaar/ui/notify.py -> build/lib/solaar/ui
copying lib/solaar/ui/icons.py -> build/lib/solaar/ui
copying lib/solaar/ui/about.py -> build/lib/solaar/ui
copying lib/solaar/ui/action.py -> build/lib/solaar/ui
creating build/lib/solaar/cli
copying lib/solaar/cli/config.py -> build/lib/solaar/cli
copying lib/solaar/cli/unpair.py -> build/lib/solaar/cli
copying lib/solaar/cli/pair.py -> build/lib/solaar/cli
copying lib/solaar/cli/__init__.py -> build/lib/solaar/cli
copying lib/solaar/cli/show.py -> build/lib/solaar/cli
running install_lib
running install_data
running install_egg_info
Removing /usr/local/lib/python3.6/dist-packages/solaar-0.9.2.egg-info
Writing /usr/local/lib/python3.6/dist-packages/solaar-0.9.2.egg-info

But when I run solaar

$ solaar
Solaar: missing required package 'python-pyudev'

BTW I did actually follow the instruction to install python-pyudev, since 18.04 stopped using python2, this actually installed python2. But the problem resists!

Most helpful comment

try:
$ sudo apt install python3-pyudev
$ sudo pip install pyudev

All 5 comments

I had this same error and for whatever reason doing sudo python solaar instead fixed it.

which python is python2 or python3?

try:
$ sudo apt install python3-pyudev
$ sudo pip install pyudev

sudo apt install python3-pyudev worked for me

Is this still a problem? If so, maybe the documentation needs to be updated.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

positron96 picture positron96  路  16Comments

ABotond picture ABotond  路  17Comments

Petross404 picture Petross404  路  5Comments

Mezzle picture Mezzle  路  17Comments

cement-head picture cement-head  路  5Comments