-
Notifications
You must be signed in to change notification settings - Fork 46
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
Python 3 support. ModuleNotFoundError: No module named 'mpd' #87
Comments
So install a Python 3-compatible |
Excuse me, but do not tell me how to do it? I do not see him having such keys
in system
mpDris2 from git, I tried to use the master and python3 branches my ebuild
|
I'm using https://github.com/Mic92/python-mpd2 with python3 and it works fine |
hm, I'm using
Do you think the problem is in it? |
Maybe, can you list the files installed by the package ?
I suspect the module is not installed in the python3 site-packages.
Le Monday 06 Mar 2017 à 00:56:06 (-0800), Stanislav a écrit :
… hm, I'm using
```
eix python-mpd
[I] dev-python/python-mpd
Доступные версии: 0.5.4 0.5.5 {test PYTHON_TARGETS="pypy python2_7 python3_4 python3_5"}
Установленные версии: 0.5.5(21:47:19 03.03.2017)(-test PYTHON_TARGETS="python2_7 python3_4 -pypy -python3_5")
Домашняя страница: https://github.com/Mic92/python-mpd2
Описание: Python MPD client library
```
Do you think the problem is in it?
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#87 (comment)
|
If I understood correctly |
Seems fine. It should work with python3.4
python -c 'import mpd'
Le Monday 06 Mar 2017 à 01:02:55 (-0800), Stanislav a écrit :
… ```
equery files python-mpd
* Searching for python-mpd ...
* Contents of dev-python/python-mpd-0.5.5:
/usr
/usr/lib64
/usr/lib64/python2.7
/usr/lib64/python2.7/site-packages
/usr/lib64/python2.7/site-packages/mpd.py
/usr/lib64/python2.7/site-packages/mpd.pyc
/usr/lib64/python2.7/site-packages/mpd.pyo
/usr/lib64/python2.7/site-packages/mpd_test.py
/usr/lib64/python2.7/site-packages/mpd_test.pyc
/usr/lib64/python2.7/site-packages/mpd_test.pyo
/usr/lib64/python2.7/site-packages/python_mpd2-0.5.5-py2.7.egg-info
/usr/lib64/python2.7/site-packages/python_mpd2-0.5.5-py2.7.egg-info/PKG-INFO
/usr/lib64/python2.7/site-packages/python_mpd2-0.5.5-py2.7.egg-info/SOURCES.txt
/usr/lib64/python2.7/site-packages/python_mpd2-0.5.5-py2.7.egg-info/dependency_links.txt
/usr/lib64/python2.7/site-packages/python_mpd2-0.5.5-py2.7.egg-info/top_level.txt
/usr/lib64/python3.4
/usr/lib64/python3.4/site-packages
/usr/lib64/python3.4/site-packages/__pycache__
/usr/lib64/python3.4/site-packages/__pycache__/mpd.cpython-34.pyc
/usr/lib64/python3.4/site-packages/__pycache__/mpd.cpython-34.pyo
/usr/lib64/python3.4/site-packages/__pycache__/mpd_test.cpython-34.pyc
/usr/lib64/python3.4/site-packages/__pycache__/mpd_test.cpython-34.pyo
/usr/lib64/python3.4/site-packages/mpd.py
/usr/lib64/python3.4/site-packages/mpd_test.py
/usr/lib64/python3.4/site-packages/python_mpd2-0.5.5-py3.4.egg-info
/usr/lib64/python3.4/site-packages/python_mpd2-0.5.5-py3.4.egg-info/PKG-INFO
/usr/lib64/python3.4/site-packages/python_mpd2-0.5.5-py3.4.egg-info/SOURCES.txt
/usr/lib64/python3.4/site-packages/python_mpd2-0.5.5-py3.4.egg-info/dependency_links.txt
/usr/lib64/python3.4/site-packages/python_mpd2-0.5.5-py3.4.egg-info/top_level.txt
```
If I understood correctly
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#87 (comment)
|
But it does not work either with a master branch or with a branch python3... |
Does the latest command works on your system ?
python -c "import mpd"
Where python is python3.4
Le Monday 06 Mar 2017 à 01:39:31 (-0800), Stanislav a écrit :
… But it does not work either with a master branch or with a branch python3...
I have to change the file after installation or reinstallation and explicitly specify it python version 2.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#87 (comment)
|
Its work after comand final ebuild
This is normal? And how often and when do I need to do this import? |
You don't – the command is only for testing whether Python can import that module. For Python 3.6, you will need to install python-mpd2 (git). |
Need integration for Python 3. When I use any of the branches that get an error
mpDris2
Traceback (most recent call last):
File "/usr/bin/mpDris2", line 29, in
import mpd
ModuleNotFoundError: No module named 'mpd'
as the default in the system python 3.
If you change the file /usr/bin/mpris2 and explicitly specify it python version 2, it works. Please correct it please to at least Python 3 branch worked with Python 3.
The text was updated successfully, but these errors were encountered: