question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'pipx install twisted' gets spurious binaries

See original GitHub issue

Running pipx install twisted on a MacOS10.14.3 system (with Homebrew’s python3.7) leads to some additional binaries being installed into ~/.local/bin/ that shouldn’t be there:

% pipx install twisted
  installed package twisted 18.9.0, Python 3.7.2
  These binaries are now globally available
    - __init__.py
    - _twistd_unix.py
    - _twistw.py
    - cftp
    - cftp.py
    - ckeygen
    - ckeygen.py
    - conch
    - conch.py
    - htmlizer.py
    - mailmail
    - mailmail.py
    - pyhtmlizer
    - tkconch
    - tkconch.py
    - trial
    - trial.py
    - twist
    - twistd
    - twistd.py
⚠️  Note: '/Users/warner/.local/bin' is not on your PATH environment variable. These binaries will not be globally accessible until your PATH is updated. Run `pipx ensurepath` to automatically add it, or manually modify your PATH in your shell's config file (i.e. ~/.bashrc).
done! ✨ 🌟 ✨
%
  • all those *.py files shouldn’t have been installed, especially the __init__.py
  • my $PATH actually has that directory already (and pipx install of other packages does not complain about it), so I wonder if whatever bug is causing the first problem might also be causing the second

I’m guessing that however pipx learns about the executables is getting confused by something unusual that Twisted might be doing. I’ll try to dive into this further this weekend.

thanks for the great project! -Brian

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

1reaction
warnercommented, Mar 7, 2019

cool, I’ll dig in

0reactions
warnercommented, Mar 8, 2019

thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

pipx install erroneously exposing binaries of dependencies ...
Currently when installing a package all of it's included apps (dependencies?) are exposed to $PATH , even though when I for instance want...
Read more >
Pip Install Twisted Error 1 - python - Stack Overflow
FWIW I was getting the same bogus error trying to install twisted: distutils.errors.DistutilsError: Could not find suitable distribution for ...
Read more >
Twisted-binary - PyPI
Installing. To install the latest version of Twisted using pip: $ pip install twisted. Additional instructions for installing this software ...
Read more >
Installation - pipx
The default binary location for pipx-installed apps is ~/.local/bin . This can be overridden with the environment variable PIPX_BIN_DIR . pipx's default virtual...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found