[CentralOH] 2017-09-07 道場 Scribbles 落書/惡文? pyvenv versus venv versus virtualenv; github backups; brandon's adventure; check writing

jep200404 at columbus.rr.com jep200404 at columbus.rr.com
Sun Sep 10 21:46:23 EDT 2017


pyvenv versus venv

    I have been so confused about pyvenv versus venv for virtual environments
    for Python3 that I shunned both of them.
    Also, pyvenv but not venv would work on one distro,
    and venv but not pyvenv would work on another distro.
    Now venv works on both distros.
    Also, "28.3. venv — Creation of virtual environments"[1] says:

        Note The pyvenv script has been deprecated as of Python 3.6 in favor of
        using python3 -m venv ...

    So "python3 -m venv /path/to/new/virtual/environment"
    is the way preferred by the Python Software Foundation.

    Unfortunately, venv is not happy on a Centos 7 installation:

        [doj at sbc ~]$ python3
        Python 3.4.5 (default, Nov  9 2016, 16:24:59) 
        [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux
        Type "help", "copyright", "credits" or "license" for more information.
        >>> 
        [doj at sbc ~]$ python3 -m venv mobyvenv
        Error: Command '['/home/doj/mobyvenv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1
        [doj at sbc ~]$ 

    so I resort to something like:

        virtualenv env -p `which python3`

systemd is the best example of Suck.
http://suckless.org/sucks/systemd
https://twitter.com/systemdsucks

not http://systemdsucks.com/

other examples of suck

    http://newromesucks.com/
    Thanks again to Jamie Mueller for his efforts in ending New Rome.
    wp:New Rome, Ohio
        http://www.newromesucks.com/topten.html
    wp:Brice, Ohio
        http://www.dispatch.com/content/stories/editorials/2015/11/28/1-brice-finds-another-way.html
        http://abc6onyourside.com/news/local/on-your-side-speed-camera-inside-orange-barrel-gets-attention-but-its-legal

backing up github issues

    How to Download GitHub Issues from the Command Line
    https://adriansieber.com/download-github-issues-from-command-line/

    doj at sbc:~$ for i in `seq 124 -1 1`; do echo $i;if wget -x -a log https://github.com/james-prior/cohpy/pull/$i; then :; else wget -x -a log https://github.com/james-prior/cohpy/issue/$i;fi;sleep 180;done

3 consequences of coding in the open
https://opensource.com/open-organization/17/8/transparency-at-reaction

A programmer’s cleaning guide for messy sensor data
https://opensource.com/article/17/9/messy-sensor-data

a rival language

    Must go faster, must go faster! Oracle lobs Java EE into GitHub, vows rapid Java SE releases
    http://www.theregister.co.uk/2017/09/06/oracle_java_ee_java_se_github/

[2017-09-06] Challenge #330 [Intermediate] Check Writer
https://www.reddit.com/r/dailyprogrammer/comments/6yep7x/20170906_challenge_330_intermediate_check_writer/

Heirloom Software: the Past as Adventure
http://www.linuxjournal.com/content/heirloom-software-past-adventure

    Brandon Rhodes' Adventure in Python3
    http://pyvideo.org/pyohio-2011/pyohio-2011--sunday-lightning-talks.html
    http://rhodesmill.org/brandon/2012/adventure/
    https://github.com/brandon-rhodes/python-adventure/tree/master/adventure

[1] 28.3. venv — Creation of virtual environments
    https://docs.python.org/3/library/venv.html


More information about the CentralOH mailing list