Package Details: python2-pathlib2 2.3.7.post1-2

Git Clone URL: https://aur.archlinux.org/python2-pathlib2.git (read-only, click to copy)
Package Base: python2-pathlib2
Description: Backports of the pathlib module
Upstream URL: https://pypi.python.org/pypi/pathlib2
Licenses: MIT
Submitter: hexd
Maintainer: hexd
Last Packager: hexd
Votes: 4
Popularity: 0.012676
First Submitted: 2022-06-12 06:11 (UTC)
Last Updated: 2022-06-13 04:30 (UTC)

Latest Comments

hexd commented on 2022-06-13 04:55 (UTC) (edited on 2022-06-13 05:03 (UTC) by hexd)

@MarsSeed, thanks! I've found a solution to completely remove the typing dependency, I have just missed the requirement entry in setup.py (that's why python2 -m pytest used to work whereas pytest2 didn't). Now this was fixed (I've just patched setup.py instead of adding "typing" as another dependency), and the python2-bcrypt checking worked here with this new release =)

Formerly, pathlib2 just imported typing to create two private objects _T and _P to do nothing with them, these were just for static checking with # type: comments, so I removed the import and the two useless objects, but if anything goes wrong because of the typing removal, just let me know.

MarsSeed commented on 2022-06-13 00:56 (UTC)

After installing python2-typing, checking python2-bcrypt runs successfully. :)

MarsSeed commented on 2022-06-13 00:32 (UTC) (edited on 2022-06-13 00:55 (UTC) by MarsSeed)

python2-typing is required: pathlib2/requirements.txt.

Otherwise this happens when trying to use python2-pytest during the check() of python2-bcrypt:

==> Starting check()...
Traceback (most recent call last):
File "/usr/bin/pytest2", line 6, in <module>
    from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3251, in <module>
    @_call_aside
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside
    f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'typing' distribution was not found and is required by pathlib2
==> ERROR: A failure occurred in check().
    Aborting...