Closed thunderrd closed 4 years ago
The needed dependency seems to exist. Did you removed dev-python/setuptools?
sudo equery depends dev-python/setuptools
[…]
* These packages depend on dev-python/setuptools:
[…]
app-misc/openrazer-9999 (dev-python/setuptools[python_targets_python3_5(-)?,python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python3_5(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)])
[…]
No, as I said in the OP, it is installed:
Installed versions: 42.0.2^t(11:38:56 PM 12/12/2019)(-test PYTHON_TARGETS="python2_7 python3_6 -pypy -pypy3 -python3_5 -python3_7 -python3_8"
Does it require python-3.5 use flag?
Well, that's not it. I rebuilt setuptools with python3_5 flag, and the other 12 packages it needed to rebuild, but get the same failure when openrazer tries to build.
root@Q6600: ~# eix setuptools [I] dev-python/setuptools Installed versions: 42.0.2^t(10:37:10 AM 12/14/2019)(-test PYTHON_TARGETS="python2_7 python3_5 python3_6 -pypy -pypy3 -python3_7 -python3_8")
root@Q6600: ~# emerge -av openrazer These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N #] app-misc/openrazer-9999::vifino-overlay PYTHON_TARGETS="python3_5 python3_6 -python3_7" 0 KiB
Results in identical failure:
Traceback (most recent call last): File "setup.py", line 3, in <module> from setuptools import setup, find_packages ModuleNotFoundError: No module named 'setuptools' make[1]: *** [Makefile:20: install] Error 1 make: *** [Makefile:59: daemon_install] Error 2
Hey @thunderrd,
I'm not sure how you get that failure, it builds fine for me on =sys-kernel/pf-sources-5.4_p2
in less than 20 seconds, seems to work for others as well.
I am on profile default/linux/amd64/17.1/hardened
, with python3_6
instead of python3_5
, perhaps try it with python3_6
instead?
While I don't see a reason why it wouldn't work with 3_5
, that might be worth a shot.
It has both 3_5 and 3_6 use flags: root@Q6600: ~# emerge -av openrazer These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N #] app-misc/openrazer-9999::vifino-overlay PYTHON_TARGETS="python3_5 python3_6 -python3_7" 0 KiB
If anything occurs to you, let me know. I can't imagine why it's happening.
Hello @thunderrd ! I think I have found your issue. When I have this :
sudo eselect python list
Available Python interpreters, in order of preference:
[1] python3.7
[2] python3.6
[3] python2.7 (fallback)
… it is impossible to build openrazer, same error as you.
But when I have :
sudo eselect python list
Available Python interpreters, in order of preference:
[1] python3.6
[2] python3.7
[3] python2.7 (fallback)
… it is finaly possible to build openrazer. :grin:
Can you try something like this sudo eselect python set python3.6
?
That does indeed solve the problem, thank you for reporting here.
However, I don't understand why it does not build with use flag python_single_target3.6, I have tried this and all other combinations of python use flags without success.
Must be a problem in the ebuild deps, but it's beyond me; I don't see any obvious problem there. Good thing I don't have to build this very often - I'd forget to change the active interpreter back, and cause all kinds of other issues :)
Thanks again. If there is more to test, let me know in this space.
Had the same problem but temporary switching python to 3.6 via eselect solved it.
I've had this for ages as well, I have just temporarily compiled setuptools with python3_7 or python3_8 (whichever is top in your interpreter list) before building openrazer, in the hope that gentoo would make this the default sometime soon. This avoids changing the interpreter, and updating world the next time re-builds setuptools as the profile dictates.
I ran into the same issue today when I wanted to try this program out using this ebuild. The problem is that the shebang in setup.py
or the Makefile generated by the project needs to be fixed to point to the correct version of Python. It just calls python3
which on my ~amd64 system was 3.9. The ebuild works fine if I eselect python set python3.7
then emerge again.
I'm pretty sure there's a Python ebuild function to fix shebangs? I've never worked with a Python package and I don't want to further debug the ebuild right this minute but this smells like a minor oversight.
Hey there. Very busy ever since December, but I'll attempt to clean up the ebuild later today. I'll switch it from using the Makefile to a more helper-functions based approach, this should fix the python issues but could cause issues in the future if upstream ever changes the source layout in an incompatible way. I'll let you all know when it's done.
Hello again. This should be fixed as of 0895a479b4082207a486c433abce5c8d92a67293, please test! Closing this, you can reopen if it's still broken, though I doubt it.
Attempting to emerge the openrazer package results in build failure as stated above. dev-python/setuptools-42.0.2 installed. Build error here: