Giter Site home page Giter Site logo

pipx is impacted by current dir? about pipx HOT 6 CLOSED

pypa avatar pypa commented on August 18, 2024 1
pipx is impacted by current dir?

from pipx.

Comments (6)

cs01 avatar cs01 commented on August 18, 2024

Oh wow that is surprising. No pipx does not read anything local. That command should be operating entirely out of a temporary directory.

Can you re-run with

pipx --verbose ipython

Thanks for reporting!

from pipx.

cs01 avatar cs01 commented on August 18, 2024

Do you have any environment variables or startup scripts that might be running when Python or pip are invoked?

from pipx.

pawamoy avatar pawamoy commented on August 18, 2024

Do you have any environment variables or startup scripts that might be running when Python or pip are invoked?

No!

I re-ran it with isort instead of ipython (same warning appears):

$ pipx --verbose isort
pipx (run_ephemeral_binary:719): virtualenv is temporary, its location is /tmp/isort_wps9u3v6
pipx (_run:230): running /home/pawamoy/.local/pipx/venvs/pipx-app/bin/python -m venv /tmp/isort_wps9u3v6
pipx (_run:230): running /tmp/isort_wps9u3v6/bin/python -m pip install --upgrade pip
Collecting pip
  Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl
aria2p 0.1.0 requires requests, which is not installed.
Installing collected packages: pip
  Found existing installation: pip 10.0.1
    Uninstalling pip-10.0.1:
      Successfully uninstalled pip-10.0.1
Successfully installed pip-18.1
pipx (_run:230): running /tmp/isort_wps9u3v6/bin/python -m pip install isort
Collecting isort
  Using cached https://files.pythonhosted.org/packages/1f/2c/22eee714d7199ae0464beda6ad5fedec8fee6a2f7ffd1e8f1840928fe318/isort-4.3.4-py3-none-any.whl
Installing collected packages: isort
Successfully installed isort-4.3.4
pipx (_run:230): running /tmp/isort_wps9u3v6/bin/isort
--- /home/pawamoy/Data/git/pawamoy/aria2p/src/aria2p/client.py:before	2018-12-16 21:10:21.034043
+++ /home/pawamoy/Data/git/pawamoy/aria2p/src/aria2p/client.py:after	2018-12-17 18:21:46.491684
@@ -1,6 +1,6 @@
 import json
+
 import requests
-
 
 DEFAULT_MSG_ID = -1
 
Apply suggested changes to '/home/pawamoy/Data/git/pawamoy/aria2p/src/aria2p/client.py' [y/n/q]? q

from pipx.

pawamoy avatar pawamoy commented on August 18, 2024

Just like in #56, I removed theΒ egg-info directory and the warning does not appear anymore. As you said I think it's related to pip and not pipx πŸ™‚ Feel free to close both issues!

from pipx.

cs01 avatar cs01 commented on August 18, 2024

I wonder if it makes sense for pipx to display a warning indicating that the directory name will take precedence over the PyPI package name.

from pipx.

pawamoy avatar pawamoy commented on August 18, 2024

I don't know how much control you have over pip's internals, but yes, if you can detect this type of situation and display a warning it would be great. Otherwise a simple note in the README/docs/wiki about what happens when there is an *.egg-info directory in the current dir could be nice as well.

from pipx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.