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.

installation failure in travis-ci

See original GitHub issue
1.45s$ curl https://raw.githubusercontent.com/cs01/pipx/master/get-pipx.py | python
Installing pipx
Traceback (most recent call last):
  File "<stdin>", line 231, in <module>
  File "<stdin>", line 215, in main
  File "<stdin>", line 136, in install
  File "<stdin>", line 52, in create_venv
  File "<stdin>", line 64, in upgrade_package
  File "<stdin>", line 70, in _run_pip
  File "<stdin>", line 36, in _run
  File "/opt/python/3.6.3/lib/python3.6/subprocess.py", line 403, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/opt/python/3.6.3/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/opt/python/3.6.3/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: PosixPath('/home/travis/.local/pipx/venvs/pipx/bin/pip'): PosixPath('/home/travis/.local/pipx/venvs/pipx/bin/pip')

I suspect get-pipx.py probably needs to use https://docs.python.org/3/library/os.html#os.makedirs somewhere to ensure that the full path exists.

For reference, the WIP travis config in my PR in my project - https://github.com/guykisel/inline-plz/blob/8956751a942ce3088fbb81a563d63d8aa545073f/.travis.yml

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
r-darwishcommented, Oct 25, 2018

I looked into that a bit. These problem is stated here and here but there doesn’t seem to be any solution.

As stated here, the Travis file already runs inside a virtualenv. It appears that invoking venv from inside an exiting virtualenv creates a new virtual environment in which pip isn’t present.

Perhaps get-pipx should not create a virtualenv of its own if get-pipx is already being run inside a virtualenv?

0reactions
cs01commented, Oct 28, 2018

It appears that invoking venv from inside an exiting virtualenv creates a new virtual environment in which pip isn’t present.

@r-darwish I tested this theory, but it does not match what’s happening on my computer. No matter how I create a new virtual env, pip is always there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Build Problems - Travis CI Docs
If your build is failing due to unexpected segmentation faults in the language interpreter, this may be caused by corrupt or invalid caches...
Read more >
npm install fail · Issue #3130 · travis-ci/travis-ci - GitHub
npm install fail again and again due to the following errors. but will I re-run the test, it is ok. Is it a...
Read more >
Travis CI failed because installing dependencies timed out
Travis CI for my Github repo keeps failing and I didn't know why, until I read through the Job log and figured out...
Read more >
Install of openjdk11 is failing (again) - Travis CI Community
cache/install-jdk" --feature "11" --license "GPL" --cacerts install-jdk.sh 2019-04-17 Couldn't determine a download url for 11-GPL on linux-x64 ...
Read more >
Travis-ci various build fails with install - Plugins traffic
I'm experiencing build fails on travis-ci.org. The only changes to travis.yml are on moodle branches (added 37 branch) and php version (checks ...
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