Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Feb 2017 20:29:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 217238] devel/py-pathlib2 is missing a dependency on sysutils/py-scandir
Message-ID:  <bug-217238-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217238

            Bug ID: 217238
           Summary: devel/py-pathlib2 is missing a dependency on
                    sysutils/py-scandir
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: Andrew@FreeBSD.org
                CC: rene@FreeBSD.org, yuri@rawbw.com
                CC: rene@FreeBSD.org, yuri@rawbw.com

Python earlier than 3.5 is unable to use pathlib2 due to a missing dependen=
cy.
I'm getting the following error when I try to import it.

% python2
Python 2.7.13 (default, Jan  5 2017, 01:52:49)=20
[GCC 4.2.1 Compatible FreeBSD Clang 3.9.1 (tags/RELEASE_391/final 289601)] =
on
freebsd12
Type "help", "copyright", "credits" or "license" for more information.
>>> import pathlib2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/pathlib2.py", line 46, in
<module>
    from scandir import scandir as os_scandir
ImportError: No module named scandir
>>>=20

It seems pathlib2 2.2.1 added a dependency in
https://github.com/mcmtroffaes/pathlib2/commit/ebc97b37d4f3441624eaef0a17b9=
7470c7264d06#diff-26e76055fe3b754cfe171b269e04d00c.
It tries to use the new python 3.5 os.scandir, then if that fails uses
scandir.scandir.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217238-13>