protonup icon indicating copy to clipboard operation
protonup copied to clipboard

Permission denied & Missing sha512sum? when installing the latest update

Open KhaosPone opened this issue 2 years ago • 39 comments

This is what I get when I try to install the latest protonup I get two different types of messages

Ready to download Proton-GE-Proton7-2 Size : 407.2 MiB Published : 2022-02-27 Continue? (Y/n): y Downloaded 100.00% - 407.2 MiB / 407.2 MiB
Traceback (most recent call last): File "/home/callum/.local/bin/protonup", line 8, in sys.exit(main()) File "/home/callum/.local/lib/python3.9/site-packages/protonup/init.py", line 4, in main return main() File "/home/callum/.local/lib/python3.9/site-packages/protonup/cli.py", line 33, in main get_proton(version=args.tag, yes=args.yes, dl_only=args.download, File "/home/callum/.local/lib/python3.9/site-packages/protonup/api.py", line 152, in get_proton tarfile.open(destination, "r:gz").extractall(install_directory()) File "/usr/lib/python3.9/tarfile.py", line 2036, in extractall self.extract(tarinfo, path, set_attrs=not tarinfo.isdir(), File "/usr/lib/python3.9/tarfile.py", line 2077, in extract self._extract_member(tarinfo, os.path.join(path, tarinfo.name), File "/usr/lib/python3.9/tarfile.py", line 2150, in _extract_member self.makefile(tarinfo, targetpath) File "/usr/lib/python3.9/tarfile.py", line 2191, in makefile with bltn_open(targetpath, "wb") as target: PermissionError: [Errno 13] Permission denied: '/home/callum/.steam/root/compatibilitytools.d/GE-Proton7-2/protonfixes/gamefixes/1434950.py'

Ready to download Proton-GE-Proton7-2 Size : 407.2 MiB Published : 2022-02-27 Continue? (Y/n): Y Downloaded 100.00% - 407.2 MiB / 407.2 MiB
[INFO] Installed in: /root/.steam/root/compatibilitytools.d/Proton-GE-Proton7-2 Traceback (most recent call last): File "/usr/local/bin/protonup", line 33, in sys.exit(load_entry_point('protonup==0.1.4', 'console_scripts', 'protonup')()) File "/usr/local/lib/python3.9/dist-packages/protonup-0.1.4-py3.9.egg/protonup/init.py", line 4, in main File "/usr/local/lib/python3.9/dist-packages/protonup-0.1.4-py3.9.egg/protonup/cli.py", line 33, in main File "/usr/local/lib/python3.9/dist-packages/protonup-0.1.4-py3.9.egg/protonup/api.py", line 154, in get_proton FileNotFoundError: [Errno 2] No such file or directory: '/root/.steam/root/compatibilitytools.d/Proton-GE-Proton7-2/sha512sum'

KhaosPone avatar Feb 28 '22 01:02 KhaosPone

Having the same issue, I tried downloading the Proton GE tarball and extracting it manually but I get the same error when opening the tar. So this could be an issue with Proton GE itself, not protonup.

Random-Chain avatar Feb 28 '22 10:02 Random-Chain

+1 on this issue. Mostly commenting to follow and provide data as needed.

bashfulrobot avatar Feb 28 '22 20:02 bashfulrobot

Also seeing this. Running the command two times in a row generates two different errors.

First, the sha512sum. Second, permission denied.

This is also true for 7.4 that was released as I was going testing (like 5 minutes ago).

BloodBlight avatar Feb 28 '22 20:02 BloodBlight

Additional not, after running it a second time and restarting Steam, it does show up.... Testing now.

BloodBlight avatar Feb 28 '22 20:02 BloodBlight

Can confirm at least one game DOES run.

BloodBlight avatar Feb 28 '22 20:02 BloodBlight

Can confirm at least one game DOES run.

Also something else I noticed the other day while trying to remove old GE-Proton releases that I had installed using Protonup the -r command it was stating that the previous releases were not installed at all even though they showed up with the -l command which was also quite strange (Forgot to mention this yesterday)

KhaosPone avatar Feb 28 '22 20:02 KhaosPone

Having the same issue, I tried downloading the Proton GE tarball and extracting it manually but I get the same error when opening the tar. So this could be an issue with Proton GE itself, not protonup.

I manually installed the latest GE-Proton from their official GitHub page and it works absolutely fine with no known issues which leads me to believe this is potentially a Protonup issues

KhaosPone avatar Feb 28 '22 20:02 KhaosPone

Already made a pull request, have a look here: https://github.com/AUNaseef/protonup/pull/26

cloudishBenne avatar Mar 01 '22 11:03 cloudishBenne

Getting a similar issue when trying to update to GE 7.5 on PopOS! 21

Traceback (most recent call last): File "/home/timothycarruthers/.local/bin/protonup", line 8, in sys.exit(main()) File "/home/timothycarruthers/.local/lib/python3.9/site-packages/protonup/init.py", line 4, in main return main() File "/home/timothycarruthers/.local/lib/python3.9/site-packages/protonup/cli.py", line 33, in main get_proton(version=args.tag, yes=args.yes, dl_only=args.download, File "/home/timothycarruthers/.local/lib/python3.9/site-packages/protonup/api.py", line 152, in get_proton tarfile.open(destination, "r:gz").extractall(install_directory()) File "/usr/lib/python3.9/tarfile.py", line 2036, in extractall self.extract(tarinfo, path, set_attrs=not tarinfo.isdir(), File "/usr/lib/python3.9/tarfile.py", line 2077, in extract self._extract_member(tarinfo, os.path.join(path, tarinfo.name), File "/usr/lib/python3.9/tarfile.py", line 2150, in _extract_member self.makefile(tarinfo, targetpath) File "/usr/lib/python3.9/tarfile.py", line 2191, in makefile with bltn_open(targetpath, "wb") as target: PermissionError: [Errno 13] Permission denied: '/home/timothycarruthers/.steam/root/compatibilitytools.d/GE-Proton7-5/files/lib64/wine/vkd3d-proton/libvkd3d-proton-utils-3.dll'

data-tim avatar Mar 04 '22 10:03 data-tim

Getting a similar issue when trying to update to GE 7.5 on PopOS! 21

Traceback (most recent call last): File "/home/timothycarruthers/.local/bin/protonup", line 8, in sys.exit(main()) File "/home/timothycarruthers/.local/lib/python3.9/site-packages/protonup/init.py", line 4, in main return main() File "/home/timothycarruthers/.local/lib/python3.9/site-packages/protonup/cli.py", line 33, in main get_proton(version=args.tag, yes=args.yes, dl_only=args.download, File "/home/timothycarruthers/.local/lib/python3.9/site-packages/protonup/api.py", line 152, in get_proton tarfile.open(destination, "r:gz").extractall(install_directory()) File "/usr/lib/python3.9/tarfile.py", line 2036, in extractall self.extract(tarinfo, path, set_attrs=not tarinfo.isdir(), File "/usr/lib/python3.9/tarfile.py", line 2077, in extract self._extract_member(tarinfo, os.path.join(path, tarinfo.name), File "/usr/lib/python3.9/tarfile.py", line 2150, in _extract_member self.makefile(tarinfo, targetpath) File "/usr/lib/python3.9/tarfile.py", line 2191, in makefile with bltn_open(targetpath, "wb") as target: PermissionError: [Errno 13] Permission denied: '/home/timothycarruthers/.steam/root/compatibilitytools.d/GE-Proton7-5/files/lib64/wine/vkd3d-proton/libvkd3d-proton-utils-3.dll'

Try to install my patched version. I hope @AUNaseef will respond soon.

cloudishBenne avatar Mar 04 '22 11:03 cloudishBenne

I think it simply looks for the wrong folder, the nomenclature has changed since last GE release

draco@draco-pc:~$ protonup
Ready to download Proton-GE-Proton7-5 
Size      : 395.8 MiB 
Published : 2022-03-02
Continue? (Y/n): 
Downloaded 100.00% - 395.8 MiB / 395.8 MiB   
[INFO] Installed in: /home/draco/.steam/root/compatibilitytools.d/Proton-GE-Proton7-5
Traceback (most recent call last):
  File "/home/draco/.local/bin/protonup", line 8, in <module>
    sys.exit(main())
  File "/home/draco/.local/lib/python3.9/site-packages/protonup/__init__.py", line 4, in main
    return main()
  File "/home/draco/.local/lib/python3.9/site-packages/protonup/cli.py", line 33, in main
    get_proton(version=args.tag, yes=args.yes, dl_only=args.download,
  File "/home/draco/.local/lib/python3.9/site-packages/protonup/api.py", line 155, in get_proton
    open(checksum_dir, 'w').write(download_checksum)
FileNotFoundError: [Errno 2] No such file or directory: '/home/draco/.steam/root/compatibilitytools.d/Proton-GE-Proton7-5/sha512sum'

draco@draco-pc:~$ ls -l /home/draco/.steam/root/compatibilitytools.d/Proton-GE-Proton7-5/sha512sum
ls: cannot access '/home/draco/.steam/root/compatibilitytools.d/Proton-GE-Proton7-5/sha512sum': No such file or directory

draco@draco-pc:~$ ls -l /home/draco/.steam/root/compatibilitytools.d/Proton-GE-Proton7-5
ls: cannot access '/home/draco/.steam/root/compatibilitytools.d/Proton-GE-Proton7-5': No such file or directory

draco@draco-pc:~$ ls -l /home/draco/.steam/root/compatibilitytools.d/
total 12
drwxrwxr-x 4 draco draco 4096 mar  2 01:51 GE-Proton7-5
drwxrwxr-x 5 draco draco 4096 feb  9 21:43 Proton-7.1-GE-2
drwxrwxr-x 5 draco draco 4096 mar  4 13:17 Proton-7.3-GE-1

msarchioto avatar Mar 04 '22 16:03 msarchioto

I think it simply looks for the wrong folder, the nomenclature has changed since last GE release

draco@draco-pc:~$ protonup
Ready to download Proton-GE-Proton7-5 
Size      : 395.8 MiB 
Published : 2022-03-02
Continue? (Y/n): 
Downloaded 100.00% - 395.8 MiB / 395.8 MiB   
[INFO] Installed in: /home/draco/.steam/root/compatibilitytools.d/Proton-GE-Proton7-5
Traceback (most recent call last):
  File "/home/draco/.local/bin/protonup", line 8, in <module>
    sys.exit(main())
  File "/home/draco/.local/lib/python3.9/site-packages/protonup/__init__.py", line 4, in main
    return main()
  File "/home/draco/.local/lib/python3.9/site-packages/protonup/cli.py", line 33, in main
    get_proton(version=args.tag, yes=args.yes, dl_only=args.download,
  File "/home/draco/.local/lib/python3.9/site-packages/protonup/api.py", line 155, in get_proton
    open(checksum_dir, 'w').write(download_checksum)
FileNotFoundError: [Errno 2] No such file or directory: '/home/draco/.steam/root/compatibilitytools.d/Proton-GE-Proton7-5/sha512sum'

draco@draco-pc:~$ ls -l /home/draco/.steam/root/compatibilitytools.d/Proton-GE-Proton7-5/sha512sum
ls: cannot access '/home/draco/.steam/root/compatibilitytools.d/Proton-GE-Proton7-5/sha512sum': No such file or directory

draco@draco-pc:~$ ls -l /home/draco/.steam/root/compatibilitytools.d/Proton-GE-Proton7-5
ls: cannot access '/home/draco/.steam/root/compatibilitytools.d/Proton-GE-Proton7-5': No such file or directory

draco@draco-pc:~$ ls -l /home/draco/.steam/root/compatibilitytools.d/
total 12
drwxrwxr-x 4 draco draco 4096 mar  2 01:51 GE-Proton7-5
drwxrwxr-x 5 draco draco 4096 feb  9 21:43 Proton-7.1-GE-2
drwxrwxr-x 5 draco draco 4096 mar  4 13:17 Proton-7.3-GE-1

You are right! Have a look at https://github.com/AUNaseef/protonup/pull/26 and install my patched version until the pull request gets merged in.

cloudishBenne avatar Mar 04 '22 16:03 cloudishBenne

I tried to change the installation directory. But, it does not work Screenshot_20220308_092959

dnet890 avatar Mar 08 '22 00:03 dnet890

I tried to change the installation directory. But, it does not work Screenshot_20220308_092959

Please show the full logs, maybe i can help you. Did you already installed my patch? (pip list | grep protonup)

cloudishBenne avatar Mar 08 '22 03:03 cloudishBenne

Yeah the patch also does not work

pip list | grep protonup protonup 0.1.4

~ ❯ protonup Ready to download Proton-GE-Proton7-8 Size : 398.8 MiB Published : 2022-03-05 Continue? (Y/n): y Downloaded 100.00% - 398.8 MiB / 398.8 MiB
Traceback (most recent call last): File "/home/user/.local/bin/protonup", line 8, in sys.exit(main()) File "/home/user/.local/lib/python3.8/site-packages/protonup/init.py", line 4, in main return main() File "/home/user/.local/lib/python3.8/site-packages/protonup/cli.py", line 33, in main get_proton(version=args.tag, yes=args.yes, dl_only=args.download, File "/home/user/.local/lib/python3.8/site-packages/protonup/api.py", line 152, in get_proton tarfile.open(destination, "r:gz").extractall(install_directory()) File "/usr/lib/python3.8/tarfile.py", line 2028, in extractall self.extract(tarinfo, path, set_attrs=not tarinfo.isdir(), File "/usr/lib/python3.8/tarfile.py", line 2069, in extract self._extract_member(tarinfo, os.path.join(path, tarinfo.name), File "/usr/lib/python3.8/tarfile.py", line 2141, in _extract_member self.makefile(tarinfo, targetpath) File "/usr/lib/python3.8/tarfile.py", line 2182, in makefile with bltn_open(targetpath, "wb") as target: PermissionError: [Errno 13] Permission denied: '/home/user/.steam/root/compatibilitytools.d/GE-Proton7-8/files/lib64/wine/vkd3d-proton/libvkd3d-proton-utils-3.dll'

dnet890 avatar Mar 08 '22 03:03 dnet890

Yeah the patch also does not work

pip list | grep protonup protonup 0.1.4

~ ❯ protonup Ready to download Proton-GE-Proton7-8 Size : 398.8 MiB Published : 2022-03-05 Continue? (Y/n): y Downloaded 100.00% - 398.8 MiB / 398.8 MiB
Traceback (most recent call last): File "/home/user/.local/bin/protonup", line 8, in sys.exit(main()) File "/home/user/.local/lib/python3.8/site-packages/protonup/init.py", line 4, in main return main() File "/home/user/.local/lib/python3.8/site-packages/protonup/cli.py", line 33, in main get_proton(version=args.tag, yes=args.yes, dl_only=args.download, File "/home/user/.local/lib/python3.8/site-packages/protonup/api.py", line 152, in get_proton tarfile.open(destination, "r:gz").extractall(install_directory()) File "/usr/lib/python3.8/tarfile.py", line 2028, in extractall self.extract(tarinfo, path, set_attrs=not tarinfo.isdir(), File "/usr/lib/python3.8/tarfile.py", line 2069, in extract self._extract_member(tarinfo, os.path.join(path, tarinfo.name), File "/usr/lib/python3.8/tarfile.py", line 2141, in _extract_member self.makefile(tarinfo, targetpath) File "/usr/lib/python3.8/tarfile.py", line 2182, in makefile with bltn_open(targetpath, "wb") as target: PermissionError: [Errno 13] Permission denied: '/home/user/.steam/root/compatibilitytools.d/GE-Proton7-8/files/lib64/wine/vkd3d-proton/libvkd3d-proton-utils-3.dll'

Seems like the installation of the patch did not work, this is the exact same error as before and version number is also still 0.1.4

Try this: git clone https://github.com/cloudishBenne/protonup && cd protonup python3 setup.py install --user

After success please post output of: whereis protonup

cloudishBenne avatar Mar 08 '22 03:03 cloudishBenne

yes it works whereis protonup protonup: /home/user/.local/bin/protonup

dnet890 avatar Mar 08 '22 04:03 dnet890

yes it works whereis protonup protonup: /home/user/.local/bin/protonup

Perfect! "pip list | grep protonup" should now also list 0.2.0

cloudishBenne avatar Mar 08 '22 05:03 cloudishBenne

I don't think so Screenshot_20220308_143452

dnet890 avatar Mar 08 '22 05:03 dnet890

Conversation below was before debugging the script multiple times:

One last try, Copy&Paste this:

First command starts here:

cat > protonup_install_test.sh << EOF
#!/bin/bash

set -e

[ -d protonup ] && rm -rf protonup && printf "clone repo fresh\n" git clone https://github.com/cloudishBenne/protonup >&/dev/null cd protonup

pip uninstall --yes protonup -qq yes | pip install protonup -qq python3 setup.py install --user >&/dev/null

printf "\ntest user on systemwide installation:\n\n" (set -ex; pip list) | grep protonup (set -ex; pip list --user) | grep protonup printf "\n... works\n\n"

pip uninstall --yes protonup -qq yes | pip install --user protonup -qq python3 setup.py install --user >&/dev/null

printf "\ntest user on user installation:\n\n" (set -ex; pip list) | grep protonup (set -ex; pip list --user) | grep protonup EOF

End of first command is here

Second command:

bash protonup_install_test.sh

Tested this on a fresh installed Linux and output is:

clone repo fresh

test user on systemwide installation::

+ pip list protonup 0.1.4 + pip list --user protonup 0.1.4

test user on user installation::

+ pip list protonup 0.2.0 + pip list --user protonup 0.2.0

cloudishBenne avatar Mar 08 '22 11:03 cloudishBenne

not really

Screenshot_20220308_203454 Screenshot_20220308_203442 Screenshot_20220308_203431 Screenshot_20220308_203358

dnet890 avatar Mar 08 '22 11:03 dnet890

I would appreciate if you could post the output of my script, otherwise i can not help you...

cloudishBenne avatar Mar 08 '22 11:03 cloudishBenne

I put this first serial of commands cat > protonup_install_test.sh << EOF #!/bin/bash ∙ ∙ set -e ∙ ∙ if [ -d protonup ]; then ∙ rm -rf protonup ∙ printf "clone repo fresh\n" ∙ fi ∙ git clone https://github.com/cloudishBenne/protonup >&/dev/null cd protonup ∙ ∙ pip uninstall --yes protonup -qq ∙ yes | pip install protonup -qq ∙ python3 setup.py install --user >&/dev/null ∙ ∙ printf "\ntest systemwide installation:\n\n" ∙ (set -ex; pip list) | grep protonup ∙ (set -ex; pip list --user) | grep protonup ∙ ∙ pip uninstall --yes protonup -qq ∙ yes | pip install --user protonup -qq ∙ python3 setup.py install --user >&/dev/null ∙ ∙ printf "\ntest user installation:\n\n" ∙ (set -ex; pip list) | grep protonup ∙ (set -ex; pip list --user) | grep protonup ∙ EOF I got no output

I typed this bash protonup_install_test.sh

I got not output

test it with systemwide installation:

  • pip list and pip list --user

Finally, it shows 0.1.4

dnet890 avatar Mar 08 '22 11:03 dnet890

This is weird.

There should be output of my script. What OS are you using?

cloudishBenne avatar Mar 08 '22 12:03 cloudishBenne

here Screenshot_20220308_210624

dnet890 avatar Mar 08 '22 12:03 dnet890

I put this first serial of commands cat > protonup_install_test.sh << EOF #!/bin/bash ∙ ∙ set -e ∙ ∙ if [ -d protonup ]; then ∙ rm -rf protonup ∙ printf "clone repo fresh\n" ∙ fi ∙ git clone https://github.com/cloudishBenne/protonup >&/dev/null cd protonup ∙ ∙ pip uninstall --yes protonup -qq ∙ yes | pip install protonup -qq ∙ python3 setup.py install --user >&/dev/null ∙ ∙ printf "\ntest systemwide installation:\n\n" ∙ (set -ex; pip list) | grep protonup ∙ (set -ex; pip list --user) | grep protonup ∙ ∙ pip uninstall --yes protonup -qq ∙ yes | pip install --user protonup -qq ∙ python3 setup.py install --user >&/dev/null ∙ ∙ printf "\ntest user installation:\n\n" ∙ (set -ex; pip list) | grep protonup ∙ (set -ex; pip list --user) | grep protonup ∙ EOF I got no output

I typed this bash protonup_install_test.sh

I got not output

test it with systemwide installation:

  • pip list and pip list --user

Finally, it shows 0.1.4

Ok, so please redo my two steps from above and post it in one screenshot of the full process (should include pasted commands, the possible output of the pasted commands and the last fresh command line where you could type a new command - without any cuts, in one picture)

cloudishBenne avatar Mar 08 '22 12:03 cloudishBenne

i found an error in my first command (cat ...), i corrected it in the post above.

cloudishBenne avatar Mar 08 '22 12:03 cloudishBenne

here it is

Screenshot_20220308_215834 Screenshot_20220308_215845

dnet890 avatar Mar 08 '22 12:03 dnet890

Oof, the comment format ate multiple spaces. Could you test again? I hopefully fixed it now...

cloudishBenne avatar Mar 08 '22 13:03 cloudishBenne

here Screenshot_20220308_215845 Screenshot_20220308_222142

dnet890 avatar Mar 08 '22 13:03 dnet890