Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#61389 closed defect (fixed)

missing dependency for port 'thefuck'

Reported by: psylum (Perry Rajnovic) Owned by: iefdev (Eric F)
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 (5)

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)

comment:3 Changed 4 years ago by iefdev (Eric F)

comment:4 Changed 4 years ago by iefdev (Eric F)

Owner: set to iefdev
Resolution: fixed
Status: newclosed

In ed1406a8659074c985849317ac4c73911479d58f/macports-ports (master):

thefuck: add missing dep

  • add py-six (appears to be a missing dep)
  • Closes: #61389

comment:5 Changed 4 years ago by mf2k (Frank Schima)

Keywords: python dependency removed
Note: See TracTickets for help on using tickets.