Opened 4 years ago

Last modified 4 years ago

#61389 closed defect

missing dependency for port 'thefuck' — at Version 2

Reported by: psylum (Perry Rajnovic) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc:
Port: thefuck

Description (last modified by psylum (Perry Rajnovic))

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.

Change History (2)

comment:1 Changed 4 years ago by psylum (Perry Rajnovic)

there's a chance that MacPorts is missing the six dependency as a downstream dependency of a direct one, but i'm not sure which it would be expecting to have it from. it's not in the original requirements.txt, but it shows up in most issue tickets as being installed (from thefuck), and the code itself explicitly imports the six package in many source files.

comment:2 Changed 4 years ago by psylum (Perry Rajnovic)

Description: modified (diff)
Note: See TracTickets for help on using tickets.