Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2018 08:13:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 233104] databases/py-pg8000: requires devel/py-six
Message-ID:  <bug-233104-21822@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 233104
           Summary: databases/py-pg8000: requires devel/py-six
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: jdc@koitsu.org
                CC: python@FreeBSD.org, wen@FreeBSD.org
                CC: python@FreeBSD.org, wen@FreeBSD.org

The databases/py-pg8000 port requires devel/py-six to properly work.

I have not tested Python 2.x, but this is definitely the case for Python 3.=
6.

Example:

$ python3 -V
Python 3.6.7
$ python3
Python 3.6.7 (default, Oct 28 2018, 01:11:16)
[GCC 4.2.1 Compatible FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)] =
on
freebsd11
Type "help", "copyright", "credits" or "license" for more information.
>>> import pg8000
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/site-packages/pg8000/__init__.py", line 1,=
 in
<module>
    from pg8000.core import (
  File "/usr/local/lib/python3.6/site-packages/pg8000/core.py", line 10, in
<module>
    from six.moves import map
ModuleNotFoundError: No module named 'six'

Details:

https://github.com/mfenniak/pg8000/blob/1.11.0/pg8000/core.py#L11

 Looking through git history shows that the six dependency is *at least* 2
years old (likely longer but I didn't feel like going through all their old
commits):

https://github.com/mfenniak/pg8000/blame/1.11.0/pg8000/core.py#L11

Maybe maintainer's system already has py-six installed, thus they didn't no=
tice
this problem?

Solution/workaround:

$ sudo pkg install -y py36-six
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        py36-six: 1.11.0

Number of packages to be installed: 1

18 KiB to be downloaded.
[1/1] Fetching py36-six-1.11.0.txz: 100%   18 KiB  18.2kB/s    00:01
Checking integrity... done (0 conflicting)
[1/1] Installing py36-six-1.11.0...
[1/1] Extracting py36-six-1.11.0: 100%
$ python3
Python 3.6.7 (default, Oct 28 2018, 01:11:16)
[GCC 4.2.1 Compatible FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)] =
on
freebsd11
Type "help", "copyright", "credits" or "license" for more information.
>>> import pg8000
>>>

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



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