Issue with delta-plugin when installing graphics-overhaul with portmod

Post about your mods, learn about OpenMW mod compatibility, check for problematic mods, discuss issues, and give us feedback about your experience with modded OpenMW.
User avatar
Eldy
Posts: 9
Joined: 06 Dec 2022, 22:09

Issue with delta-plugin when installing graphics-overhaul with portmod

Post by Eldy »

I'm trying to install the meta-momw/graphics-overhaul list with portmod.

I'm running the following command and getting the following error:

Code: Select all

C:\Users\olivi>portmod openmw merge --no-confirm meta-momw/graphics-overhaul

Calculating Dependencies…
Done!
These are the packages to be installed, in order:
[ N] bin/delta-plugin-0.16.1
[ N] common/fix_maps-1.1
...
[ N] patches/omwllf-1.0-r2
Total: 142 packages (0 updates, 142 new, 0 reinstalls, 0 removals),
Size of downloads: 242,022 MiB
>>> Executing pkg_pretend for package sys-bin/java-1.8
>>> Executing pkg_pretend for package sys-bin/magick-7.0
>>> Executing pkg_pretend for package sys-bin/perl-0
WARNING: Unable to find executable perl\nPlease download and install it using your package manager\nor from the following location(s):\n    https://www.perl.org/get.html\n
>>> Starting installation of bin/delta-plugin-0.16.1
>>> Unpacking package…
>>> Preparing source in "C:\Users\olivi\AppData\Local\Temp\portmod\bin\delta-plugin-0.16.1\work"…
Traceback (most recent call last):
File "C:\Users\olivi\AppData\Local\portmod\portmod\repos\openmw\bin\delta-plugin\delta-plugin-0.16.1.pybuild", line 38, in src_prepare
os.stat(exe_name).st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH,
FileNotFoundError: [WinError 2] Le fichier spécifié est introuvable: 'delta_plugin'
ERROR: An error was encountered when execuring code inside the sandbox: C:\Users\olivi\AppData\Local\portmod\portmod\repos\openmw\bin\delta-plugin\delta-plugin-0.16.1.pybuild prepare failed!
For the sentence in French, "Le fichier spécifié est introuvable" = "The specified file could not be found".

Could someone help me with that?
User avatar
bmw
Posts: 81
Joined: 04 Jan 2019, 19:42
Contact:

Re: Issue with delta-plugin when installing graphics-overhaul with portmod

Post by bmw »

It looks to me like you're using Windows, and it should be looking for delta_plugin.exe on windows, but it's possible it's not detecting that properly. Are you using something like cygwin or WSL (neither of which are really supported at the moment, but if they are actually working then we could support them)?

The most useful piece of info is probably the platform detected by python, which you can view using `portmod openmw info` (the PLATFORM variable).
User avatar
Eldy
Posts: 9
Joined: 06 Dec 2022, 22:09

Re: Issue with delta-plugin when installing graphics-overhaul with portmod

Post by Eldy »

I am neither using cygwin nor WSL, just the standard command line interface on Windows.

This is the output of the command:

Code: Select all

C:\Users\olivi>portmod openmw info
Portmod 2.4.2
Python 3.10.0 (tags/v3.10.0:b494f59, Oct  4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)]    

Repositories:
    Repo(name='python'
        sync_type='git'
        sync_uri='https://gitlab.com/portmod/python.git'
        priority=-999
        location='C:\\Users\\olivi\\AppData\\Local\\portmod\\portmod\\repos\\python'
        auto_sync=True)
    Timestamp: 2022-12-06 19:55:38-05:00
    Head commit: 369d8bdde1e639939c1992feeb37b7163c83329d

    Repo(name='openmw'
            sync_type='git' 
            sync_uri='https://gitlab.com/portmod/openmw-mods.git'
            priority=-1000
            location='C:\\Users\\olivi\\AppData\\Local\\portmod\\portmod\\repos\\openmw'
            auto_sync=True)
    Timestamp: 2022-12-06 15:49:21+00:00
    Head commit: 31b2b5fa723d4319678ee3e49efbdff22930d1bf

    Repo(name='meta'
            sync_type='git' 
            sync_uri='https://gitlab.com/portmod/meta.git'
            priority=-1000
            location='C:\\Users\\olivi\\AppData\\Local\\portmod\\portmod\\repos\\meta'
            auto_sync=True)
    Timestamp: 2022-10-07 13:31:35+00:00
    Head commit: 1c1df1b50905323a409f29f0fe24e7715f250a76

TMP_DIR = ~\AppData\Local\Temp\portmod
CACHE_DIR = ~\AppData\Local\portmod\portmod\Cache
CONFIG_DIR = ~\AppData\Local\portmod\portmod\openmw
ROOT = ~\AppData\Local\portmod\portmod\openmw 
User avatar
bmw
Posts: 81
Joined: 04 Jan 2019, 19:42
Contact:

Re: Issue with delta-plugin when installing graphics-overhaul with portmod

Post by bmw »

Oh. You appear to be missing all the stuff that should be set in the profile, so it's not that the platform is set to something unexpected, but that the hidden use flag representing the platform is not being set at all. But the profile must be set to something, otherwise there would be an error message. Is your profile pointing to an empty or unrelated directory or something? ("portmod openmw select profile" and its subcommands can be used to display and modify your profile).
User avatar
Eldy
Posts: 9
Joined: 06 Dec 2022, 22:09

Re: Issue with delta-plugin when installing graphics-overhaul with portmod

Post by Eldy »

Code: Select all

$ portmod openmw select profile show
Current C:\Users\olivi\AppData\Local\portmod\portmod\openmw\profile symlink:
  default\openmw\2.0\morrowind-tb-bm
Not sure what this is, I don't think the "default\openmw\2.0\morrowind-tb-bm" directory exists.

What should this symlink target?
User avatar
Eldy
Posts: 9
Joined: 06 Dec 2022, 22:09

Re: Issue with delta-plugin when installing graphics-overhaul with portmod

Post by Eldy »

Actually it exists (I switched to mingw64 to run those commands but note that this is not the environment I'm using to run portmod commands).

Code: Select all

olivier@Desktop-Olivier MINGW64 ~/AppData/Local/portmod/portmod/repos/openmw/profiles/default/openmw/2.0/morrowind-tb-bm (master)
$ ls
parent

olivier@Desktop-Olivier MINGW64 ~/AppData/Local/portmod/portmod/repos/openmw/profiles/default/openmw/2.0/morrowind-tb-bm (master)
$ cat parent
..
../../../../games/morrowind
../../../../games/tribunal
../../../../games/bloodmoon
User avatar
bmw
Posts: 81
Joined: 04 Jan 2019, 19:42
Contact:

Re: Issue with delta-plugin when installing graphics-overhaul with portmod

Post by bmw »

That looks exactly like I'd expect it to. I'll see if I can figure out where else it could be failing.
User avatar
Eldy
Posts: 9
Joined: 06 Dec 2022, 22:09

Re: Issue with delta-plugin when installing graphics-overhaul with portmod

Post by Eldy »

Thanks, tell me if you need more information.
User avatar
bmw
Posts: 81
Joined: 04 Jan 2019, 19:42
Contact:

Re: Issue with delta-plugin when installing graphics-overhaul with portmod

Post by bmw »

What exactly have you managed to do so far? Assuming that you followed the setup guide, was anything installed when you ran portmod openmw merge -uD @world? Did you modify portmod.conf at all, or did portmod prompt you to make any configuration changes?

Your portmod openmw info output is missing both the INFO_VARS from the profile (even if it was reading the values, they'd only be shown if they were in INFO_VARS) and also the packages in the @system set (though those also wouldn't show up if they weren't installed yet). What bothers me is that if it's unable to read INFO_VARS for some reason, then it also wouldn't be able to read some of the other default configuration values in the profile which are set via the same mechanism, some of which are mandatory and will break installation at a much earlier stage if they're not set. But that's obviously not happening either, so I feel like there must be multiple issues, both the installation issue you ran into, and some issue with the info subcommand, and the profile itself must be more or less working.

Did you run this multiple times, and did it download the delta-plugin archive file in an earlier run (it would be in the downloads subdirectory of CACHE_DIR)? I don't see it in the log you posted, but it wouldn't be there if it was already downloaded, and while it's possible that it skipped it due to platform_win32 not being set (same thing that caused the error), that happens in a different scope, so if it did get downloaded that could help narrow down the problem.
User avatar
Eldy
Posts: 9
Joined: 06 Dec 2022, 22:09

Re: Issue with delta-plugin when installing graphics-overhaul with portmod

Post by Eldy »

I'll try to answer your questions.

Regarding portmod.conf, I encountered an earlier issue and had to modify it to bypass that issue. Here is my current portmod.conf file:

Code: Select all

# This is a placeholder config file for Portmod 2.4.2 This file is created if no
# config file is found, and not updated when Portmod updates. To regenerate this
# config file for the latest version of Portmod, delete it and run `portmod
# openmw info`.
# This file contains optional config values that override those set by your
# profile. See https://gitlab.com/portmod/portmod/wikis/Portmod-Config for a
# full description of the options used by Portmod itself. Note that some
# variables may be used for specific packages and may not be listed on the wiki

# Valid global use flags can be found in the profiles/use.yaml file of the
# repository Default USE flag configurations vary with the profile
# USE=""

# Valid TEXTURE_SIZE options are
# max
# min
# max <= SIZE (e.g. 2048)
# min >= SIZE
# The default is "min"
TEXTURE_SIZE="min"

# Keywords to accept. Valid choices at the global level are arch (stable
# packages only) and ~arch (stable and testing packages). Defaults to arch
ACCEPT_KEYWORDS="openmw"

# Licenses to accept. Packages with licenses not accepted here will not be able
# to be installed unless overridden by a package-specific rule in
# package.accept_license
# Defaults to "* -EULA"
ACCEPT_LICENSE="* -EULA"

# Auto-detected by default, however if it fails to detect the location, specify
# it here
# OPENMW_CONFIG_DIR="/path/to/config"

# Auto-detected by default, however if it fails to detect the location, specify
# it here Note that this should be the root where the executable is found, not
# the data files directory Note that this only applies to the `base/morrowind`
# package in the `openmw` repo.
# MORROWIND_PATH="/path/to/Morrowind"
REPOS = "openmw"
Yes, I just uncommented the default value. I don't remember the error message I was getting, but doing that fixed that error.

Regarding the delta-plugin archive, it does seem to be here:

C:\Users\olivi\AppData\Local\portmod\portmod\Cache\downloads\delta-plugin-0.16.1-windows-amd64.zip
Post Reply