python3: cannot load pylirc
Hello! pylirc cannot be found during import in python3 scripts. But for python2 it works. I use pip3 to install pylirc because my Linux distribution has no package pylirc for python3. But it has for python2. Is that a bug somewhere in python3? Do you think there is a workaround?
> python3 -c 'import pylirc'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named 'pylirc'
> lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 17.3 Rosa
Release: 17.3
Codename: rosa
> sudo pip3 install pylirc2
Downloading/
Downloading pylirc2-0.1.tar.gz
Running setup.py (path:/
Installing collected packages: pylirc2
Running setup.py install for pylirc2
building 'pylircmodule' extension
x86_
pylircmodule.c: In function ‘initpylirc’:
pylircmodul
(void) Py_InitModule(
^
x86_
Successfully installed pylirc2
Cleaning up...
> find /usr/local/
/usr/local/
/usr/local/
> strace python3 -c 'import pylirc'
...
open("<string>", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("<string>", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/
open("/
open("/
open("/
open("/
write(2, "ImportError: No module named 'py"..., 38ImportError: No module named 'pylirc'
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu pylirc Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Alexander Bubnov
- Solved:
- Last query:
- Last reply: