bayasdev / envycontrol

Easy GPU switching for Nvidia Optimus laptops under Linux
MIT License
1.22k stars 62 forks source link

Error installing on EndeavourOS kernel 5.17.9-arch1-1 #45

Closed edbizarro closed 2 years ago

edbizarro commented 2 years ago
==> Starting package()...
Traceback (most recent call last):
  File "setup.py", line 3, in <module>
    import envycontrol
  File "/home/edbizarro/.cache/yay/envycontrol/src/envycontrol/envycontrol.py", line 139
    TEARING_FIX = f'    Option "ForceCompositionPipeline" "true"\n'
                                                                  ^
SyntaxError: invalid syntax
==> ERROR: A failure occurred in package().
    Aborting...
 -> error making: envycontrol

Version 1.x was working fine.

bayasdev commented 2 years ago

Hello there, what's your Python version?

El mié, 25 de may. de 2022 19:23, Eduardo Bizarro @.***> escribió:

==> Starting package()... Traceback (most recent call last): File "setup.py", line 3, in import envycontrol File "/home/edbizarro/.cache/yay/envycontrol/src/envycontrol/envycontrol.py", line 139 TEARING_FIX = f' Option "ForceCompositionPipeline" "true"\n' ^ SyntaxError: invalid syntax ==> ERROR: A failure occurred in package(). Aborting... -> error making: envycontrol

Version 1.x was working fine.

— Reply to this email directly, view it on GitHub https://github.com/geminis3/envycontrol/issues/45, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALY7IYMJXELUSIUBNEABJ4LVL277HANCNFSM5W7FLZQQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

edbizarro commented 2 years ago

Hi @geminis3, nevermind I have pyenv installed and set my global python to 2.7 (i don't know why), changing it back to 3.9 seems to "fix" de problem :)

bayasdev commented 2 years ago

Changing it back to 3.9 seems to "fix" de problem :)

I wrote the script for Python 3.X so that was to be expected ;)