[MacPorts] #61389: missing dependency for port 'thefuck'

MacPorts noreply at macports.org
Sat Oct 31 03:28:33 UTC 2020


#61389: missing dependency for port 'thefuck'
----------------------+-------------------------------
  Reporter:  psylum   |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.6.3
Resolution:           |   Keywords:  python dependency
      Port:  thefuck  |
----------------------+-------------------------------
Description changed by psylum:

Old description:

> fresh install of port `thefuck @3.30_0`, on macOS 10.15.8.
>
> Added alias to tcsh, and tested with a known 'fix' it supplies.
> Expected Output:
> {{{
> $ cat code
> cat: code: Is a directory
> $ fuck
> ls code [enter/↑/↓/ctrl+c]
> <contents of code directory>
> }}}
> Actual Output:
> {{{
> $ cat code
> cat: code: Is a directory
> $ fuck
> Traceback (most recent call last):
>   File "/opt/local/bin/thefuck", line 9, in <module>
>     from thefuck.entrypoints.main import main
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
> /site-packages/thefuck/entrypoints/main.py", line 8, in <module>
>     from .. import logs  # noqa: E402
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
> /site-packages/thefuck/logs.py", line 8, in <module>
>     from .conf import settings
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
> /site-packages/thefuck/conf.py", line 5, in <module>
>     from six import text_type
> ModuleNotFoundError: No module named 'six'
> }}}
>
> After manually installing `py38-six`, the application works as expected.
> I believe the port deps just need to include `py{version}-six`.

New description:

 fresh install of port `thefuck @3.30_0`, on macOS 10.15.8.

 Added alias to tcsh, and tested with a known 'fix' it supplies.

 Expected Output:
 {{{
 $ cat code
 cat: code: Is a directory
 $ fuck
 ls code [enter/↑/↓/ctrl+c]
 <contents of code directory>
 }}}
 Actual Output:
 {{{
 $ cat code
 cat: code: Is a directory
 $ fuck
 Traceback (most recent call last):
   File "/opt/local/bin/thefuck", line 9, in <module>
     from thefuck.entrypoints.main import main
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/thefuck/entrypoints/main.py", line 8, in <module>
     from .. import logs  # noqa: E402
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/thefuck/logs.py", line 8, in <module>
     from .conf import settings
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/thefuck/conf.py", line 5, in <module>
     from six import text_type
 ModuleNotFoundError: No module named 'six'
 }}}

 After manually installing `py38-six`, the application works as expected.
 I believe the port deps just need to include `py{version}-six`.

--

-- 
Ticket URL: <https://trac.macports.org/ticket/61389#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list