derrod / legendary

Legendary - A free and open-source replacement for the Epic Games Launcher
https://legendary.gl/discord
GNU General Public License v3.0
4.59k stars 164 forks source link

Cannot install Kerbal Space Program #611

Closed gxapplications closed 1 year ago

gxapplications commented 1 year ago

Platform

Operating system and version: CPU: 2x Intel(R) Pentium(R) CPU G6950 @ 2.80GHz Memory: 3.96 GB (used: 1.75 GB) GPUs: Name: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] IDs: D=1380 V=10de SD=362d SV=1458 OS: Kubuntu

Legendary version (legendary -V): 0.20.33

Expected Behavior

KSP game can be installed: legendary install a1e2ce30defe4a9187ebc14fc9d2bd8b

Current Behavior

Traceback (most recent call last):
  File "/usr/local/bin/legendary", line 33, in <module>
    sys.exit(load_entry_point('legendary-gl==0.20.33', 'console_scripts', 'legendary')())
  File "/usr/local/lib/python3.10/dist-packages/legendary/cli.py", line 3054, in main
    cli.install_game(args)
  File "/usr/local/lib/python3.10/dist-packages/legendary/cli.py", line 802, in install_game
    if not self.core.lgd.lock_installed():
  File "/usr/local/lib/python3.10/dist-packages/legendary/lfs/lgndry.py", line 310, in lock_installed
    self._installed_lock.acquire(blocking=False)
TypeError: BaseFileLock.acquire() got an unexpected keyword argument 'blocking'

Steps to Reproduce

legendary auth then auth process, working well legendary list giving the list :

Available games:
 * Kerbal Space Program (App name: a1e2ce30defe4a9187ebc14fc9d2bd8b | Version: KSP.1.12.5.win64.full)
Total: 1

legendary install a1e2ce30defe4a9187ebc14fc9d2bd8b that fails

derrod commented 1 year ago

Seems like the filelock python library on your system is out of date. Needs to be at least 3.7.0.

gxapplications commented 1 year ago

python -V gives me 3.10.12 The OS has been setup 1 month ago, and python has been installed today. all is quite fresh. If you look into the debug trace, the paths indicate 3.10 for python

gxapplications commented 1 year ago

To test rights, also tested in sudo mode, same result