profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/joshfriend/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Josh Friend joshfriend @MichiganLabs Grand Rapids Michigan

jacebrowning/memegen 666

The free and open source API to generate memes.

jacebrowning/template-python 488

A template for new Python libraries.

citizenlabsgr/elections-api 7

API for voter registration status and sample ballots in Michigan.

jacebrowning/dropthebeat 6

Music sharing using Dropbox.

joshfriend/bunnypedia 3

A companion guide to the card game Killer Bunnies

joshfriend/arm-project-template 1

Bare metal setup for ARM projects. Includes a makefile, linker scripts, and startup files

joshfriend/atlas 1

Webhook bot to integrate Atlassian products such as JIRA with Slack.

startedXLabsProject/s1x-client

started time in 6 hours

issue commentpyenv/pyenv

Homebrew upgrade of pyenv breaks local python versions

Ok so we have almost come full circle on this. The initial idea to run rehash in a post install step in the formula doesn't work as post install is sandboxed. The next idea was to change pyenv (actually upstream in rbenv) so that it used the opt bin path rather than the Cellar path. The suggestion in rbenv was to make this a replace/patch in the forumula. So here is the new formula PR.

alper

comment created time in 10 hours

startedopensearch-project/OpenSearch

started time in 11 hours

issue commentpyenv/pyenv

Limit the number of PIDs pyenv consumes

Comparison between running python executables with and without pyenv:

$ which pip
/home/sarunas/.pyenv/shims/pip
$ which pipx
/home/sarunas/.pyenv/shims/pipx
$ strace -f pip 2>&1 | sed -rn '/\[pid ([0-9]+).*/s//\1/p' | sort -u | wc -l
64
$ strace -f pip list 2>&1 | sed -rn '/\[pid ([0-9]+).*/s//\1/p' | sort -u | wc -l
88
$ strace -f pipx 2>&1 | sed -rn '/\[pid ([0-9]+).*/s//\1/p' | sort -u | wc -l
47
$ pyenv version
3.6.13 (set by /home/sarunas/.pyenv/version)
$ strace -f ~/.pyenv/versions/3.6.13/bin/pip 2>&1 | sed -rn '/\[pid ([0-9]+).*/s//\1/p' | sort -u | wc -l
0
$ strace -f ~/.pyenv/versions/3.6.13/bin/pip list 2>&1 | sed -rn '/\[pid ([0-9]+).*/s//\1/p' | sort -u | wc
-l
25
$ strace -f ~/.pyenv/versions/3.6.13/bin/pipx 2>&1 | sed -rn '/\[pid ([0-9]+).*/s//\1/p' | sort -u | wc -l
3
snejus

comment created time in 11 hours

issue openedpyenv/pyenv

Limit the number of PIDs pyenv consumes

Too many issues will kill our team's development velocity, drastically. Make sure you have checked all steps below.

Prerequisite

  • [x] Make sure your problem is not listed in the common build problems.
  • [x] Make sure no duplicated issue has already been reported in the pyenv issues. You should look for closed issues, too.
  • [x] Make sure you are not asking us to help solving your specific issue.
    • GitHub issues is opened mainly for development purposes. If you want to ask someone to help solving your problem, go to some community site like Gitter, StackOverflow, etc.
  • [x] Make sure your problem is not derived from packaging (e.g. Homebrew).
    • Please refer to the package documentation for the installation issues, etc.
  • [x] Make sure your problem is not derived from plugins.
    • This repository is maintaining pyenv and the default python-build plugin only. Please refrain from reporting issues of other plugins here.

Description

  • [ ] Platform information (e.g. Ubuntu Linux 16.04): Arch 5.11.15-arch1-2
  • [ ] OS architecture (e.g. amd64): x86_64
  • [ ] pyenv version: 1.2.26
  • [ ] Python version: Unrelated
  • [ ] C Compiler information (e.g. gcc 7.3): Unrelated
  • [ ] Please attach verbose build log as gist
    • You can turn on verbose debug logging using by setting PYENV_DEBUG=1, e.g. env PYENV_DEBUG=1 pyenv install -v 3.6.4

My issue isn't related to building pythons - that's working fine. But there's something else - the ridiculous amount of processes that pyenv requires. pyenv command alone consumes 350 (!), see strace -f pyenv 2>&1 | sed -rn '/\[pid ([0-9]+).*/s//\1/p' | sort -u | wc -l and printing of the help page is very slow:

 $ ps aux | grep grep
sarunas  3393092  0.0  0.0   9576  2448 pts/6    S+   22:20   0:00 grep --color=auto grep
 $ hyperfine 'pyenv || true'
Benchmark #1: pyenv || true
  Time (mean ± σ):     356.5 ms ±   1.5 ms    [User: 368.3 ms, System: 98.2 ms]
  Range (min … max):   354.1 ms … 358.7 ms    10 runs

hyperfine 'pyenv || true'  4.30s user 1.20s system 125% cpu 4.395 total
 $ ps aux | grep grep
sarunas  3396836  0.0  0.0   9576  2484 pts/6    S+   22:21   0:00 grep --color=auto grep

Having a brief look at pyenv-help script it does look like it's something that could be optimised. I'd probably be able to have a go at it once we confirm that this is happening not just on my machine (it may as well be some weird issue on my side but I'd doubt so).

created time in 11 hours

startedtoptal/chewy

started time in 14 hours

issue commentpyenv/pyenv

ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

Issue resolved on my debian 9 after I installed the required packages specified in https://github.com/pyenv/pyenv/wiki/Common-build-problems#prerequisites

jingle0927

comment created time in 15 hours

fork trenton42/goreleaser

Deliver Go binaries as fast and easily as possible

https://goreleaser.com

fork in 15 hours

startedderekwyatt/vim-config

started time in 18 hours

issue commentpyenv/pyenv

`/usr/bin/env: ‘bash\r’: No such file or directory`: Incompatible line-endings (WSL?)

Check your path, echo $PATH. WSL2 normally imports Windows path there. To fix this create file /etc/wsl.conf in WSL2:

[interop]
appendWindowsPath = false

Then restart WSL2 with wsl --shutdown Then check your path is shorter now and doesn't include any Windows dependencies: echo $PATH

Worked for me.

Also see How to remove Windows paths from WSL path

alexpovel

comment created time in 20 hours

PR opened pyenv/pyenv

Add GraalPython 21.1.0

Add a script to install GraalPython version 21.1.0 (released yesterday). Note there is still no support for aarch64 nor M1.

CC @timfel

+48 -0

0 comment

1 changed file

pr created time in a day

issue commentpyenv/pyenv

``pyenv install 3.5.6'' failed with : ImportError: No module named 'math'

@sharefantasy I can't reproduce the problem reported by you. Please see the details info in my scenario below:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04 LTS
Release:	20.04
Codename:	focal

$ sudo apt-get install libsqlite3-dev
$ env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.6.3
--2021-04-21 13:33:51--  https://mirrors.huaweicloud.com/python/3.6.3/Python-3.6.3.tar.xz
Resolving mirrors.huaweicloud.com (mirrors.huaweicloud.com)... 49.4.56.10, 49.4.56.13, 49.4.56.8
Connecting to mirrors.huaweicloud.com (mirrors.huaweicloud.com)|49.4.56.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16974296 (16M) [application/octet-stream]
Saving to: ‘/home/apollo/.pyenv/cache/Python-3.6.3.tar.xz’

/home/apollo/.pyenv/cache/Py 100%[============================================>]  16.19M  10.8MB/s    in 1.5s    

2021-04-21 13:33:53 (10.8 MB/s) - ‘/home/apollo/.pyenv/cache/Python-3.6.3.tar.xz’ saved [16974296/16974296]

Installing Python-3.6.3...
Installed Python-3.6.3 to /home/apollo/.pyenv/versions/3.6.3
hongyi-zhao

comment created time in a day

issue commentpyenv/pyenv

``pyenv install 3.5.6'' failed with : ImportError: No module named 'math'

@hongyi-zhao hi, did you find the solution now? I reproduce it in 3.6.3. thanks!

hongyi-zhao

comment created time in a day

issue commentpyenv/pyenv

Build failed on MacOs Big Sur

You could try this, just change the version you need.

CFLAGS="-I$(brew --prefix openssl)/include -I$(brew --prefix bzip2)/include -I$(brew --prefix readline)/include -I$(xcrun --show-sdk-path)/usr/include" LDFLAGS="-L$(brew --prefix openssl)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix zlib)/lib -L$(brew --prefix bzip2)/lib" pyenv install --patch 3.6.12 < <(curl -sSL https://github.com/python/cpython/commit/8ea6353.patch\?full_index\=1)

Or here you have a solution for the version 3.5.0 #1643 (comment)

This works for me ❤️❤️❤️

valeita

comment created time in 2 days

PR closed flask-restful/flask-restful

Fix import of private function for flask 2.0.0

Flask commit b146a13f633b0e2e26e3b8383b3db0feb563bc83

moved def _endpoint_from_view_func from src/flask/helpers.py to src/flask/scaffold.py

It looks like this will be released with flask 2.0.0

+8 -1

0 comment

1 changed file

dougroyal

pr closed time in 2 days

Pull request review commentflask-restful/flask-restful

Fix import of private function for flask 2.0.0

 from flask_restful.utils import http_status_message, unpack, OrderedDict from flask_restful.representations.json import output_json import sys-from flask.helpers import _endpoint_from_view_func++try:+    # Flask < 2.0.0+    from flask.helpers import _endpoint_from_view_func+except:+    # Flask >= 2.0.0+    from flask.scaffold import _endpoint_from_view_func

seems like a better solution than importing a private function :)

dougroyal

comment created time in 2 days

push eventpyenv/pyenv

Theelgirl

commit sha e18620c0a7b5d0ef47405955481a23bba4a3269c

Add CPython 3.10.0a7

view details

Theelgirl

commit sha 30ba8356bc19ae6942fbc96019bb0104526657b0

Add CPython 3.10.0a7

view details

Theelgirl

commit sha 8dd8fa2d66822b597b345ac7d7c7af99e0c8ca6b

Fix missing character in checksum and add tgz checksum

view details

Anton Petrov

commit sha b1d1ceba826b9665e8b7b769950d848ba55fda4b

Merge pull request #1880 from Theelgirl/master Add CPython 3.10.0a7

view details

push time in 2 days

PR merged pyenv/pyenv

Add CPython 3.10.0a7

Make sure you have checked all steps below.

Prerequisite

  • [x] Please consider implementing the feature as a hook script or plugin as a first step.
    • pyenv has some powerful support for plugins and hook scripts. Please refer to Authoring plugins for details and try to implement it as a plugin if possible.
  • [x] Please consider contributing the patch upstream to rbenv, since we have borrowed most of the code from that project.
    • We occasionally import the changes from rbenv. In general, you can expect changes made in rbenv will be imported to pyenv too, eventually.
    • Generally speaking, we prefer not to make changes in the core in order to keep compatibility with rbenv.
  • [x] My PR addresses the following pyenv issue (if any)
    • https://github.com/pyenv/pyenv/issues/XXXX

Description

  • [x] Here are some details about my PR:

Add CPython 3.10.0a7 by replacing CPython 3.10.0a6.

Tests

  • [x] My PR adds the following unit tests (if any)
+10 -10

0 comment

2 changed files

Theelgirl

pr closed time in 2 days

PR closed pyenv/pyenv

force unset shell pipefail option

pyenv fails with following script if greadlink cannot be found in PATH

export SHELLOPTS
set -o pipefail
set -e
python -V || echo python failed # python fails

looking forward patches to fix

and here one proposed

+1 -0

2 comments

1 changed file

llehtahw

pr closed time in 2 days

issue commentpyenv/pyenv

Warning: 'brew doctor' python configuration scripts exist outside system or Homebrew directories

Hi is there any update about?

None that I'm aware of which were patched. I don't use python now. I only installed this version manager when I was going through some self-taught lessons. I've not used it in quite some time. Is it still existing?

robertleeblairjr

comment created time in 2 days

issue closedpyenv/pyenv

How to give pyenv precedence over an Anaconda distro installation?

Hi, I'd previously installed Anaconda, and then installed pyenv. I've ensured my pyenv directories are searched on my system path before my anaconda directories, however, my Anaconda python always has precedence over my pyenv python, even after I run pyenv local and pyenv shell commands and ensure that these commands are working appropriately. Is there any way to give precedence to a pyenv python over my Anaconda python?


Too many issues will kill our team's development velocity, drastically. Make sure you have checked all steps below.

Prerequisite

  • [x] Make sure your problem is not listed in the common build problems.
  • [x] Make sure no duplicated issue has already been reported in the pyenv issues. You should look for closed issues, too.
  • [x] Make sure you are not asking us to help solving your specific issue.
    • GitHub issues is opened mainly for development purposes. If you want to ask someone to help solving your problem, go to some community site like Gitter, StackOverflow, etc.
  • [x] Make sure your problem is not derived from packaging (e.g. Homebrew).
    • Please refer to the package documentation for the installation issues, etc.
  • [x] Make sure your problem is not derived from plugins.
    • This repository is maintaining pyenv and the default python-build plugin only. Please refrain from reporting issues of other plugins here.

Description

  • [x] Platform information (e.g. Ubuntu Linux 16.04): Ubuntu 20.04
  • [x] OS architecture (e.g. amd64): amd64
  • [x] pyenv version: 1.2.24
  • [x] Python version: 3.8.0
  • [x] C Compiler information (e.g. gcc 7.3): 8.3
  • [ ] Please attach verbose build log as gist
    • You can turn on verbose debug logging using by setting PYENV_DEBUG=1, e.g. env PYENV_DEBUG=1 pyenv install -v 3.6.4

closed time in 2 days

jkbhagatio

issue commentpyenv/pyenv

How to give pyenv precedence over an Anaconda distro installation?

It turns out I just needed to deactivate the anaconda base env. Will close this now

jkbhagatio

comment created time in 2 days

issue openedpyenv/pyenv

How to give pyenv precedence over an Anaconda distro installation?

Hi, I'd previously installed Anaconda, and then installed pyenv. I've ensured my pyenv directories are searched on my system path before my anaconda directories, however, my Anaconda python always has precedence over my pyenv python, even after I run pyenv local and pyenv shell commands and ensure that these commands are working appropriately. Is there any way to give precedence to a pyenv python over my Anaconda python?


Too many issues will kill our team's development velocity, drastically. Make sure you have checked all steps below.

Prerequisite

  • [ ] Make sure your problem is not listed in the common build problems.
  • [ ] Make sure no duplicated issue has already been reported in the pyenv issues. You should look for closed issues, too.
  • [ ] Make sure you are not asking us to help solving your specific issue.
    • GitHub issues is opened mainly for development purposes. If you want to ask someone to help solving your problem, go to some community site like Gitter, StackOverflow, etc.
  • [ ] Make sure your problem is not derived from packaging (e.g. Homebrew).
    • Please refer to the package documentation for the installation issues, etc.
  • [ ] Make sure your problem is not derived from plugins.
    • This repository is maintaining pyenv and the default python-build plugin only. Please refrain from reporting issues of other plugins here.

Description

  • [ ] Platform information (e.g. Ubuntu Linux 16.04): Ubuntu 20.04
  • [ ] OS architecture (e.g. amd64): amd64
  • [ ] pyenv version: 1.2.24
  • [ ] Python version: 3.8.0
  • [ ] C Compiler information (e.g. gcc 7.3): 8.3
  • [ ] Please attach verbose build log as gist
    • You can turn on verbose debug logging using by setting PYENV_DEBUG=1, e.g. env PYENV_DEBUG=1 pyenv install -v 3.6.4

created time in 2 days

PR opened pyenv/pyenv

Add CPython 3.10.0a7

Make sure you have checked all steps below.

Prerequisite

  • [x] Please consider implementing the feature as a hook script or plugin as a first step.
    • pyenv has some powerful support for plugins and hook scripts. Please refer to Authoring plugins for details and try to implement it as a plugin if possible.
  • [x] Please consider contributing the patch upstream to rbenv, since we have borrowed most of the code from that project.
    • We occasionally import the changes from rbenv. In general, you can expect changes made in rbenv will be imported to pyenv too, eventually.
    • Generally speaking, we prefer not to make changes in the core in order to keep compatibility with rbenv.
  • [x] My PR addresses the following pyenv issue (if any)
    • https://github.com/pyenv/pyenv/issues/XXXX

Description

  • [x] Here are some details about my PR:

Add CPython 3.10.0a7 by replacing CPython 3.10.0a6.

Tests

  • [x] My PR adds the following unit tests (if any)
+10 -10

0 comment

2 changed files

pr created time in 3 days

issue openedpyenv/pyenv

!

Too many issues will kill our team's development velocity, drastically. Make sure you have checked all steps below.

Prerequisite

  • [ ] Make sure your problem is not listed in the common build problems.
  • [ ] Make sure no duplicated issue has already been reported in the pyenv issues. You should look for closed issues, too.
  • [ ] Make sure you are not asking us to help solving your specific issue.
    • GitHub issues is opened mainly for development purposes. If you want to ask someone to help solving your problem, go to some community site like Gitter, StackOverflow, etc.
  • [ ] Make sure your problem is not derived from packaging (e.g. Homebrew).
    • Please refer to the package documentation for the installation issues, etc.
  • [ ] Make sure your problem is not derived from plugins.
    • This repository is maintaining pyenv and the default python-build plugin only. Please refrain from reporting issues of other plugins here.

Description

  • [ ] Platform information (e.g. Ubuntu Linux 16.04):
  • [ ] OS architecture (e.g. amd64):
  • [ ] pyenv version:
  • [ ] Python version:
  • [ ] C Compiler information (e.g. gcc 7.3):
  • [ ] Please attach verbose build log as gist
    • You can turn on verbose debug logging using by setting PYENV_DEBUG=1, e.g. env PYENV_DEBUG=1 pyenv install -v 3.6.4

created time in 3 days

startedsunjon/Shade.nvim

started time in 3 days

pull request commentpyenv/pyenv

Make pyenv path tolerant to brew upgrades

Upstream fix: https://github.com/rbenv/rbenv/pull/1325

It doesn't seem to have pyenv.d/rehash/source.bash though so I still think this PR is needed?

steinybot

comment created time in 3 days

pull request commentpyenv/pyenv

Make pyenv path tolerant to brew upgrades

Ok yeah so rbenv has the same problem:

❯ cat ~/.rbenv/shims/irb
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x

program="${0##*/}"
if [ "$program" = "ruby" ]; then
  for arg; do
    case "$arg" in
    -e* | -- ) break ;;
    */* )
      if [ -f "$arg" ]; then
        export RBENV_DIR="${arg%/*}"
        break
      fi
      ;;
    esac
  done
fi

export RBENV_ROOT="/Users/jason/.rbenv"
exec "/usr/local/Cellar/rbenv/1.1.2/libexec/rbenv" exec "$program" "$@"
steinybot

comment created time in 3 days

pull request commentpyenv/pyenv

Make pyenv path tolerant to brew upgrades

I'm guessing that this should go in rbenv. The code looks the same. I'm just confirming whether or not they have the same problem.

steinybot

comment created time in 3 days

PR opened pyenv/pyenv

Make pyenv path tolerant to brew upgrades

Make sure you have checked all steps below.

Prerequisite

  • [ ] Please consider implementing the feature as a hook script or plugin as a first step.
    • pyenv has some powerful support for plugins and hook scripts. Please refer to Authoring plugins for details and try to implement it as a plugin if possible.
  • [ ] Please consider contributing the patch upstream to rbenv, since we have borrowed most of the code from that project.
    • We occasionally import the changes from rbenv. In general, you can expect changes made in rbenv will be imported to pyenv too, eventually.
    • Generally speaking, we prefer not to make changes in the core in order to keep compatibility with rbenv.
  • [ ] My PR addresses the following pyenv issue (if any)
    • Fixes #1716

Description

This changes the pyenv path used in the shim from $(brew --prefix)/Cellar/pyenv/1.2.26/libexec/pyenv to $(brew --prefix)/opt/pyenv/libexec/pyenv which will not break when the version number changes.

Tests

None but maybe it should?

+20 -2

0 comment

2 changed files

pr created time in 3 days