Package Details: portmod 2.8.0-1

Git Clone URL: https://aur.archlinux.org/portmod.git (read-only, click to copy)
Package Base: portmod
Description: A cli tool to manage mods for OpenMW
Upstream URL: https://gitlab.com/portmod/portmod
Licenses: GPL3
Replaces: openmmm
Submitter: bmwinger
Maintainer: bmwinger
Last Packager: bmwinger
Votes: 8
Popularity: 0.000037
First Submitted: 2019-08-11 01:45 (UTC)
Last Updated: 2024-12-12 23:00 (UTC)

Latest Comments

« First ‹ Previous 1 2 3

churro commented on 2022-05-17 23:13 (UTC)

I'm having the same issue as ubervision, in my case the folder where the .so file is being built is different, instead of "$PWD/portmod/src/portmod-v2.3.3/build/lib/portmodlib/" the actual folder is "$PWD/portmod/src/portmod-v2.3.3/build/lib.linux-x86_64-3.10/portmodlib/" and as a result it can't find it.

gyscos commented on 2022-03-31 19:40 (UTC)

For info, tests were failing for me because patool was last installed when I still had python 3.9 (I now have python 3.10), and was not properly detected by python 3.10. Re-building and installing patool solved the issue.

bmwinger commented on 2022-03-31 13:37 (UTC)

@ubervision: That's what I get for not doing a clean build... It's fixed now. The other directory must have been generated by a different command.

Also, I did see your other build error, but I wasn't able to reproduce it.

ubervison commented on 2022-03-31 07:57 (UTC) (edited on 2022-03-31 07:58 (UTC) by ubervison)

Me again :) The command cp "$PWD/build/lib.linux-$CARCH-${python_version}/portmodlib/portmod.cpython-${python_version/./}-$CARCH-linux-gnu.so" portmodlib/ at line 29 in the PKGBUILD fails with a file not found error. Changing this line to cp "$PWD/build/lib/portmodlib/portmod.cpython-${python_version/./}-$CARCH-linux-gnu.so" portmodlib/ fixes the issue.

ubervison commented on 2022-03-24 08:52 (UTC)

When running the build() stage of the PKGBUILD, I encouter the following error with stacktrace :

Traceback (most recent call last):
  File "/home/vison/.cache/pikaur/build/portmod/src/portmod-v2.3.0/setup.py", line 58, in <module>
    setup(
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 152, in setup
    _install_setup_requires(attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 806, in fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 733, in resolve
    requirements = list(requirements)[::-1]
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3098, in parse_requirements
    yield Requirement(line)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3108, in __init__
    super(Requirement, self).__init__(requirement_string)
  File "/usr/lib/python3.10/site-packages/packaging/requirements.py", line 113, in __init__
    req = REQUIREMENT.parseString(requirement_string)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 1100, in parse_string
    loc, tokens = self._parse(instring, 0)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 790, in _parseNoCache
    loc, tokens = self.parseImpl(instring, pre_loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 3810, in parseImpl
    loc, exprtokens = e._parse(instring, loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 790, in _parseNoCache
    loc, tokens = self.parseImpl(instring, pre_loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 4024, in parseImpl
    return e._parse(
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 790, in _parseNoCache
    loc, tokens = self.parseImpl(instring, pre_loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 3810, in parseImpl
    loc, exprtokens = e._parse(instring, loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 790, in _parseNoCache
    loc, tokens = self.parseImpl(instring, pre_loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 4854, in parseImpl
    loc, tokens = self_expr._parse(instring, loc, doActions, callPreParse=False)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 790, in _parseNoCache
    loc, tokens = self.parseImpl(instring, pre_loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 3810, in parseImpl
    loc, exprtokens = e._parse(instring, loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 827, in _parseNoCache
    tokens = fn(instring, tokens_start, ret_tokens)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 283, in wrapper
    ret = func(*args[limit:])
  File "/usr/lib/python3.10/site-packages/packaging/requirements.py", line 81, in <lambda>
    lambda s, l, t: Marker(s[t._original_start : t._original_end])
TypeError: slice indices must be integers or None or have an __index__ method

commit 79aea27563d2 (latest version)

bmwinger commented on 2021-06-03 17:47 (UTC)

Looks like a regression in setuptools-rust 0.12, and it's been fixed, but the fix hasn't been released yet (as of 0.12.1).

For the moment, I'm not sure if there's anything that can be done other than downgrading to setuptools-rust 0.11 (see https://archive.archlinux.org/packages/p/python-setuptools-rust/ if you don't still have the old version cached).

PopeRigby commented on 2021-06-03 17:02 (UTC)

Latest version fails to build:

Traceback (most recent call last):
  File "/home/cassidy/.cache/paru/clone/portmod/src/portmod-v2.0_rc10/setup.py", line 16, in <module>
    setup(
  File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.9/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.9/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.9/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.9/site-packages/setuptools_rust/command.py", line 52, in run
    self.run_for_extension(ext)
  File "/usr/lib/python3.9/site-packages/setuptools_rust/build.py", line 81, in run_for_extension
    if self.plat_name.startswith("macosx-") and arch_flags:
AttributeError: 'NoneType' object has no attribute 'startswith'

lunchbox commented on 2019-11-02 19:22 (UTC)

fyi my issue was resolved when the patool package updated the egg-info directory as you suggested in your comment on that page. Thank you for your help.

lunchbox commented on 2019-10-18 16:03 (UTC) (edited on 2019-10-18 16:21 (UTC) by lunchbox)

Getting an error when I tried to run omwmerge:

[lunchbox@arch1 ~]$ omwmerge -s tamriel Traceback (most recent call last): File "/usr/bin/omwmerge", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 3250, in <module> @_call_aside File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 3234, in _call_aside f(*args, kwargs) File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 3263, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 574, in _build_master ws = cls() File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 567, in init self.add_entry(entry) File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 623, in add_entry for dist in find_distributions(entry, True): File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 2065, in find_on_path for dist in factory(fullpath): File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 2135, in distributions_from_metadata root, entry, metadata, precedence=DEVELOP_DIST, File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 2592, in from_location py_version=py_version, platform=platform, kw File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 2994, in _reload_version md_version = self._get_version() File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 2772, in _get_version version = _version_from_file(lines) File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 2556, in _version_from_file line = next(iter(version_lines), '') File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 2767, in _get_metadata for line in self.get_metadata_lines(name): File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 1432, in get_metadata_lines return yield_lines(self.get_metadata(name)) File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 1420, in get_metadata value = self._get(path) File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 1616, in _get with open(path, 'rb') as stream: PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.7/site-packages/patool-1.12-py3.7.egg-info/PKG-INFO'

I decided to check the patool folder permissions and I noticed the were 640. Is that correct? I noticed someone mentioned that in the comments for patool in the AUR, but I didn't see a response:

[lunchbox@arch1 /usr/lib/python3.7/site-packages/patool-1.12-py3.7.egg-info]$ ls -ahl total 44K drwxr-xr-x 2 root root 4.0K Oct 18 11:57 . drwxr-xr-x 189 root root 20K Oct 18 11:57 .. -rw-r----- 1 root root 1 Apr 11 2019 dependency_links.txt -rw-r----- 1 root root 2.1K Apr 11 2019 PKG-INFO -rw-r----- 1 root root 4.2K Apr 11 2019 SOURCES.txt -rw-r----- 1 root root 9 Apr 11 2019 top_level.txt