Sniper Elite 4 fails to launch.

Asked by scott

I've been playing this game for 2 years now and I took a brake over the past 2 months from playing it and now I came back to find it won't launch. I think this is the issue. My xsession - errors has this in it.

Traceback (most recent call last):
  File "/usr/share/caja-python/extensions/dejadup.py", line 156, in get_file_items
    include_paths = self.dejadup.get_dejadup_paths('include-list')
  File "/usr/share/caja-python/extensions/dejadup.py", line 70, in get_dejadup_paths
    paths = ast.literal_eval([stdout][0]) # Convert shell dump to list
  File "/usr/lib/python3.8/ast.py", line 99, in literal_eval
    return _convert(node_or_string)
  File "/usr/lib/python3.8/ast.py", line 98, in _convert
    return _convert_signed_num(node)
  File "/usr/lib/python3.8/ast.py", line 75, in _convert_signed_num
    return _convert_num(node)
  File "/usr/lib/python3.8/ast.py", line 66, in _convert_num
    _raise_malformed_node(node)
  File "/usr/lib/python3.8/ast.py", line 63, in _raise_malformed_node
    raise ValueError(f'malformed node or string: {node!r}')
ValueError: malformed node or string: b"['$HOME']\n"

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

dejadup is a backup application. Have you configured this recently?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

What is the output of:

lsb_release -a; uname -a; apt-cache policy steam

Thanks

Revision history for this message
Manfred Hampl (m-hampl) said :
#3
Revision history for this message
scott (alban-scott64) said :
#4

Manfred Hampi I tried the bug fix and got this..

root@scott-desktop:~# /usr/share/caja-python/extensions/dejadup.py < dejadup.patch
-bash: dejadup.patch: No such file or directory

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

You have to download the patch file from the bug document first

Revision history for this message
scott (alban-scott64) said :
#6

Manfred Hampl
 I've never had to try and patch a bug before on my own and have no clue how to do this. I have ahd issues before but, someone would come along and give me a line or two to put into the terminal and it was done. This is all new to me. Sorry.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

Do a right click on the following link:
https://bugs.launchpad.net/ubuntu/+source/python-caja/+bug/1863498/+attachment/5376597/+files/dejadup.patch
and on the pop-up select "save link as " or "save target as" (exact wording depend on the used browser) and in the dialogue that you get select the "Downloads" directory to store a copy of that file.
Then open a terminal window and issue the following commands:

cd Downloads
sudo patch /usr/share/caja-python/extensions/dejadup.py < dejadup.patch

That's what you are asking for two lines to execute, but you have to download a file first!

Another possibility is the following:
Open a terminal window and enter the command
sudo gedit /usr/share/caja-python/extensions/dejadup.py
in the editor window that opens scroll down to line 70 and replace the line
paths = ast.literal_eval([stdout][0]) # Convert shell dump to list
by
paths = ast.literal_eval([stdout][0].decode()) # Convert shell dump to list
Save the file and close the editor.

If you are not able to execute either of these, then you have to wait until the problem is repaired centrally.

Revision history for this message
scott (alban-scott64) said (last edit ):
#8

Manfred Hampl

Ok I tried the download link, cd Download and then sudo patch /usr/share/caja-python/extensions/dejadup.py < dejadup.patch that didn't work. However after trying it that way the other sniper elite 3 wouldn't work either. They both had a steam warning about the game file not in sync with the cloud. After that I figured I would shut down steam and see what would happen. It didn't want to let me sign in to staem. it kicked me off twice. After that I restarted my computer twice because it did the same thing again on the fist try. Now I have everything working but for Sniper elite 4.

Revision history for this message
scott (alban-scott64) said (last edit ):
#9
Revision history for this message
Manfred Hampl (m-hampl) said :
#10

"then sudo patch ... didn't work."

"Didn't work" in which sense? Did you receive an error message, or what exactly happened?

Revision history for this message
scott (alban-scott64) said :
#11

   Manfred Hampl
    Let me try to explain this better. I did the whole right click on the link and downloaded the patch. Opened up the terminal and did the cd download then sudo patch.. After I did that I went to steam to see if that fixed it. I tried to open the game SE 4 and it started to launch then I got this "steam warning" about the cloud syncing being off and it would shut down the game. Then I tried SE 3 ( that worked right before I started this) also had the same message and did the same shut down. Then I shut down steam hoping that might fix it and then it wouldn't let me sign in. So then I shut the computer down and tried again and it still wouldn't let me sign in but, after my 2nd try all was back to normal. I could get back on staem and play the games that worked before. So I would say it didn't work to fix the game I wanted to get running.

 I now have all this new stuff in my xsesson errors file.

dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
dbus-update-activation-environment: setting DISPLAY=:0
dbus-update-activation-environment: setting XAUTHORITY=/home/scott/.Xauthority
dbus-update-activation-environment: setting GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting SHELL=/bin/bash
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg
dbus-update-activation-environment: setting XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
dbus-update-activation-environment: setting LANGUAGE=en_US
dbus-update-activation-environment: setting MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path
dbus-update-activation-environment: setting DESKTOP_SESSION=mate
dbus-update-activation-environment: setting GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module
dbus-update-activation-environment: setting PWD=/home/scott
dbus-update-activation-environment: setting XDG_SESSION_DESKTOP=mate
dbus-update-activation-environment: setting LOGNAME=scott
dbus-update-activation-environment: setting QT_QPA_PLATFORMTHEME=gtk2
dbus-update-activation-environment: setting XDG_SESSION_TYPE=x11
dbus-update-activation-environment: setting GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
dbus-update-activation-environment: setting XAUTHORITY=/home/scott/.Xauthority
dbus-update-activation-environment: setting XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/scott
dbus-update-activation-environment: setting GDM_LANG=en_US
dbus-update-activation-environment: setting HOME=/home/scott
dbus-update-activation-environment: setting IM_CONFIG_PHASE=1
dbus-update-activation-environment: setting LANG=en_US.UTF-8
dbus-update-activation-environment: setting XDG_CURRENT_DESKTOP=MATE
dbus-update-activation-environment: setting XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
dbus-update-activation-environment: setting XDG_SESSION_CLASS=user
dbus-update-activation-environment: setting GTK_OVERLAY_SCROLLING=0
dbus-update-activation-environment: setting DEFAULTS_PATH=/usr/share/gconf/mate.default.path
dbus-update-activation-environment: setting USER=scott
dbus-update-activation-environment: setting DISPLAY=:0
dbus-update-activation-environment: setting SHLVL=1
dbus-update-activation-environment: setting UBUNTU_MENUPROXY=1
dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1000
dbus-update-activation-environment: setting COMPIZ_CONFIG_PROFILE=mate
dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop
dbus-update-activation-environment: setting PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
dbus-update-activation-environment: setting GDMSESSION=mate
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
dbus-update-activation-environment: setting _=/usr/bin/dbus-update-activation-environment
** Message: 20:57:15.454: couldn't access control socket: /run/user/1000/keyring/control: No such file or directory
mate-session[963]: WARNING: Unable to find provider '' of required component 'dock'
Window manager warning: Log level 128: unsetenv() is not thread-safe and should not be used after threads are created
Window manager warning: Log level 128: Name com.canonical.AppMenu.Registrar does not exist on the session bus

(process:1405): indicator-sound-WARNING **: 20:57:18.296: volume-control-pulse.vala:744: Unable to connect to dbus server at 'unix:path=/run/user/1000/pulse/dbus-socket': Could not connect: No such file or directory

(caja:1365): Gtk-WARNING **: 20:57:18.621: Failed to register client: GDBus.Error:org.gnome.SessionManager.AlreadyRegistered: Unable to register client

** (process:1505): WARNING **: 20:57:19.400: could not find the desktop file for 'org.gnome.Calendar.desktop'
INFO:root:The HUD is disabled via org.mate.hud in gsettings.
Window manager warning: Log level 16: Visible region is null
Window manager warning: Window 0x5800001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Window 0x5800001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Window 0x5800001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Window 0x5800001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Window 0x5800001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Window 0x5800001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Log level 16: Visible region is null
[3745:3775:0223/205935.448621:ERROR:nss_util.cc(286)] After loading Root Certs, loaded==false: NSS error code: -8018
[3745:3745:0223/205935.918544:ERROR:password_sync_bridge.cc(334)] Passwords datatype error was encountered: Failed to load entries from password store. Encryption service failure.
[3745:3775:0223/205937.933775:ERROR:chrome_browser_main_extra_parts_metrics.cc(227)] START: ReportBluetoothAvailability(). If you don't see the END: message, this is crbug.com/1216328.
[3745:3775:0223/205937.933791:ERROR:chrome_browser_main_extra_parts_metrics.cc(230)] END: ReportBluetoothAvailability()
Window manager warning: Window 0x5800001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Window 0x5800001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Window 0x5800001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Window 0x5800001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Window 0x5800001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Window 0x5800001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Window 0x5800001 (Sniper3) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
[5341:5414:0223/222345.685622:ERROR:nss_util.cc(286)] After loading Root Certs, loaded==false: NSS error code: -8018
[5341:5341:0223/222346.109208:ERROR:password_sync_bridge.cc(334)] Passwords datatype error was encountered: Failed to load entries from password store. Encryption service failure.
[5341:5400:0223/222348.494821:ERROR:chrome_browser_main_extra_parts_metrics.cc(227)] START: ReportBluetoothAvailability(). If you don't see the END: message, this is crbug.com/1216328.
[5341:5400:0223/222348.494836:ERROR:chrome_browser_main_extra_parts_metrics.cc(230)] END: ReportBluetoothAvailability()

(process:1405): indicator-sound-CRITICAL **: 22:24:08.392: media_player_list_mpris_insert: assertion 'desktop_id != NULL' failed
Window manager warning: Window 0x6600001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Window 0x6600001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Window 0x6600001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Window 0x6600001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Window 0x6600001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Window 0x6600001 (Sniper Eli) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
Window manager warning: Window 0x6600001 (Sniper3) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
RuntimeError: object at 0x7f0e76c27440 of type FolderColorMenu is not initialized
RuntimeError: object at 0x7f0e76c1c940 of type RenameMenu is not initialized

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

The python traceback with
ValueError: malformed node or string: b"['$HOME']\n"
does not occur any more, does it?

I suggest that you try a steam forum, e.g. https://steamcommunity.com/discussions/

Can you help with this problem?

Provide an answer of your own, or ask scott for more information if necessary.

To post a message you must log in.