Package Details: python-pypdf3 1.0.6-4

Git Clone URL: https://aur.archlinux.org/python-pypdf3.git (read-only, click to copy)
Package Base: python-pypdf3
Description: Pure-Python PDF library for splitting, merging, cropping, and transforming PDF pages.
Upstream URL: https://github.com/sfneal/PyPDF3
Keywords: pdf python
Licenses: custom
Submitter: hv15
Maintainer: hv15
Last Packager: hv15
Votes: 2
Popularity: 0.006702
First Submitted: 2021-03-10 15:48 (UTC)
Last Updated: 2023-02-26 14:46 (UTC)

Latest Comments

1 2 Next › Last »

kayprish commented on 2023-04-19 15:38 (UTC)

My version is: '67.6.1'

hv15 commented on 2023-04-19 13:36 (UTC)

@kayprish hmm this is curious, as far as I can tell the error message is coming from setuptools, what version of setuptools do you have installed?

kayprish commented on 2023-04-19 08:44 (UTC)

I've tried uninstalling all of my user packages and then installing pypdf3 and it's still failing, so I assume it's not that

kayprish commented on 2023-04-13 09:27 (UTC)

@hv15 hi, this is my pip list:

Package            Version
------------------ -----------
asttokens          2.2.1
backcall           0.2.0
boto3              1.26.89
botocore           1.29.89
capstone           5.0.0rc2
certifi            2022.12.7
charset-normalizer 3.1.0
colored-traceback  0.3.0
decorator          5.1.1
exceptiongroup     1.1.0
executing          1.2.0
idna               3.4
iniconfig          2.0.0
intervaltree       3.1.0
ipython            8.11.0
jedi               0.18.2
jmespath           1.0.1
jwt                1.3.1
Mako               1.2.4
MarkupSafe         2.1.2
matplotlib-inline  0.1.6
Naked              0.1.32
paramiko           3.1.0
parso              0.8.3
pexpect            4.8.0
pickleshare        0.7.5
pluggy             1.0.0
plumbum            1.8.1
prompt-toolkit     3.0.38
psutil             5.9.4
ptyprocess         0.7.0
pure-eval          0.2.2
pyasn1             0.4.8
pycryptodome       3.17
pyelftools         0.29
Pygments           2.14.0
pygore             0.5.0
PyNaCl             1.5.0
pyserial           3.5
PySocks            1.7.1
pytest             7.2.2
python-dateutil    2.8.2
PyYAML             6.0
QDarkStyle         3.1
QtPy               2.3.0
requests           2.28.2
ROPGadget          7.3
rpyc               5.3.1
s3transfer         0.6.0
shellescape        3.8.1
six                1.16.0
sortedcontainers   2.4.0
stack-data         0.6.2
tabulate           0.9.0
traitlets          5.9.0
unicorn            2.0.1.post1
urllib3            1.26.15
wcwidth            0.2.6

hv15 commented on 2023-04-13 08:13 (UTC)

@kayprish I can build in a clean chroot fine (using python 3.10), could you give a list of locally installed pip packages: pip list --user I suspect there is some conflict coming from there.

kayprish commented on 2023-04-10 10:40 (UTC)

For me, the package won't build, it generates the following error:

python-pypdf3-1.0.6-4: parsing pkg list...
==> Making package: python-pypdf3 1.0.6-4 (Mon 10 Apr 2023 12:38:59 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
* Getting build dependencies for wheel...
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
    main()
  File "/usr/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
  File "/usr/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
    return hook(config_settings)
  File "/usr/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
    return self._get_build_requires(config_settings, requirements=['wheel'])
  File "/usr/lib/python3.10/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
    self.run_setup()
  File "/usr/lib/python3.10/site-packages/setuptools/build_meta.py", line 484, in run_setup
    super(_BuildMetaLegacyBackend,
  File "/usr/lib/python3.10/site-packages/setuptools/build_meta.py", line 335, in run_setup
    exec(code, locals())
  File "<string>", line 32, in <module>
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 147, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 486, in __init__
    for ep in metadata.entry_points(group='distutils.setup_keywords'):
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 1021, in entry_points
    return SelectableGroups.load(eps).select(**params)
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 459, in load
    ordered = sorted(eps, key=by_group)
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 1018, in <genexpr>
    eps = itertools.chain.from_iterable(
  File "/usr/lib/python3.10/importlib/metadata/_itertools.py", line 16, in unique_everseen
    k = key(element)
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 943, in _normalized_name
    or super()._normalized_name
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 622, in _normalized_name
    return Prepared.normalize(self.name)
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 871, in normalize
    return re.sub(r"[-_.]+", "-", name).lower().replace('-', '_')
  File "/usr/lib/python3.10/re.py", line 209, in sub
    return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object

ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'python-pypdf3-1.0.6-4': 
error: packages failed to build: python-pypdf3-1.0.6-4

I assume something has changed about python 3.10, which makes the old setup code invalid.

hv15 commented on 2023-03-10 13:39 (UTC)

@kernelisstrong awesome, I was really confused there for a moment :P

kernelisstrong commented on 2023-03-10 13:38 (UTC)

It seems that it was picking the user's setuptools and not the system one. Fixed it. Sorry for reporting this.

kernelisstrong commented on 2023-03-10 13:33 (UTC)

I got the one in the official repos. 67.4.0-1

hv15 commented on 2023-03-10 13:28 (UTC)

@kernelisstrong hmm the log message seems to indicate that the version of setuptools you have is too old, what version do you have installed?