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.

['Win10', 'Py3.72', 'pipx-0.12.3.1'] FileNotFoundError when installing package with deps without binary

See original GitHub issue
C:\Projects\Python\_helping\pipx>pipx list
nothing has been installed with pipx

C:\Projects\Python\_helping\pipx>pipx install --include-deps tox-venv
Traceback (most recent call last):
  File "C:\Python37\Scripts\pipx-script.py", line 11, in <module>
    load_entry_point('pipx', 'console_scripts', 'pipx')()
  File "c:\projects\python\_helping\pipx\pipx\main.py", line 496, in cli
    exit(run_pipx_command(parsed_pipx_args, binary_args))
  File "c:\projects\python\_helping\pipx\pipx\main.py", line 157, in run_pipx_command
    include_deps=args.include_deps,
  File "c:\projects\python\_helping\pipx\pipx\commands.py", line 319, in install
    _run_post_install_actions(venv, package, local_bin_dir, venv_dir, include_deps)
  File "c:\projects\python\_helping\pipx\pipx\commands.py", line 345, in _run_post_install_actions
    _expose_binaries_globally(local_bin_dir, binary_paths, package)
  File "c:\projects\python\_helping\pipx\pipx\commands.py", line 470, in _expose_binaries_globally
    _copy_package_binaries(local_bin_dir, binary_paths, package)
  File "c:\projects\python\_helping\pipx\pipx\commands.py", line 485, in _copy_package_binaries
    shutil.copy(src, dest)
  File "c:\python37\lib\shutil.py", line 245, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "c:\python37\lib\shutil.py", line 120, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Nebu\\.local\\pipx\\venvs\\tox-venv\\Scripts\\tox'

C:\Projects\Python\_helping\pipx>pipx install --include-deps tox-venv
Not installing to existing directory 'C:\\Users\\Nebu\\.local\\pipx\\venvs\\tox-venv'. Pass '--force' to force installation

Added what’s hopefully the solution to my pull request: https://github.com/pipxproject/pipx/pull/97

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cs01commented, Feb 25, 2019

Oh sorry I should have mentioned, not a big deal but you generally want to put a summary followed by the issue number. Something like “fix FileNotFoundError on windows (#97)”.

1reaction
cs01commented, Feb 25, 2019

Thanks! For future reference you can put “#97” in the text of the commit message and GitHub will automatically add a link to this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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