Distributed self-replicating programs in Python
Go to file
David Wilson ad5a80f200 Use virtualenv Python for stub connections to workaround problem
../data/stubs/stub-kubectl.py exec -it localhost -- /usr/bin/python -c "...":

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    LookupError: unknown encoding: base64

It's not clear why this is happening. "stub-kubectl.py" is executed with
the 2.7 virtualenv, while the exec() that happens inside stub-kubectl
was for "/usr/bin/python".

That second Python can't find chunks of its stdlib:

    stat("/usr/lib/python2.7/encodings/base64", 0x7ffde8744c60) = -1 ENOENT (No such file or directory)
    open("/usr/lib/python2.7/encodings/base64.so", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/python2.7/encodings/base64module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/python2.7/encodings/base64.py", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/python2.7/encodings/base64.pyc", O_RDONLY) = -1 ENOENT (No such file or directory)
    write(2, "Traceback (most recent call last):\n", 35) = 35
    write(2, "  File \"<string>\", line 1, in <module>\n", 39) = 39
2019-06-04 13:37:00 +01:00
.ci ci: Ansible 2.8 jobs aren't running against all host types. 2019-06-02 19:53:12 +01:00
.github issue #574: fix ISSUE_TEMPLATE link 2019-04-02 14:09:40 +01:00
ansible_mitogen ansible: prevent tempfile.mkstemp() leaks. 2019-06-03 23:43:15 +01:00
docs issue #578: update Changelog. 2019-06-03 20:42:59 +01:00
examples issue #589: remove outdated/incomplete examples 2019-06-03 18:06:17 +01:00
mitogen issue #589: ensure real FileService/PushFileService are in the docs 2019-06-03 18:06:17 +01:00
scripts Import debug helper macros. 2019-05-19 15:50:02 +01:00
tests Use virtualenv Python for stub connections to workaround problem 2019-06-04 13:37:00 +01:00
.gitignore update gitignore again 2019-06-03 23:42:25 +01:00
.lgtm.yml compat: ignore LGTM checks on third party 2018-03-19 21:58:31 +05:45
.travis.yml ci: Ansible 2.8 requires Python 2.7. 2019-06-04 00:50:06 +01:00
LICENSE Update copyright year everywhere. 2019-02-13 16:16:49 +00:00
MANIFEST.in setup.py: include LICENSE; closes #538. 2019-02-12 16:15:52 +00:00
README.md Update README link 2019-05-19 15:50:02 +01:00
dev_requirements.txt Split dev_requirements.txt up according to test mode. 2018-11-06 17:00:17 +00:00
preamble_size.py stable: fix preamble_size on stable docs. 2019-02-10 23:11:20 +00:00
run_tests Allow independant control of coverage erase and reporting 2019-02-09 19:49:01 +00:00
setup.cfg Ignore another annoying flake8 message. 2018-05-28 02:33:47 +01:00
setup.py Update copyright year everywhere. 2019-02-13 16:16:49 +00:00
tox.ini Aggregate code coverage data across tox all runs 2019-02-09 20:03:29 +00:00

README.md