Giter VIP home page Giter VIP logo

Comments (9)

pyroscope avatar pyroscope commented on May 26, 2024

It's unclear where and when these errors occur.

Also, using the system Python (Jessie comes with a reasonably new version) as shown in the README will likely fix this, too.

from pimp-my-box.

2600box avatar 2600box commented on May 26, 2024

agreed. just wanted to bring it to your attention so that it may be looked at in the default ansible install.

from pimp-my-box.

pyroscope avatar pyroscope commented on May 26, 2024

Which still leaves us with "no clue when and where this occurs".

from pimp-my-box.

pyroscope avatar pyroscope commented on May 26, 2024

No further feedback.

from pimp-my-box.

2600box avatar 2600box commented on May 26, 2024

Hey. I have been looking at this again because it has been annoying me. It seems to be a syntax issue with https://github.com/pyroscope/pimp-my-box/blob/master/roles/pyenv/files/pyenv.sh
i have been trying different things, but I can't get it to stop complaining.

i tried export PYENV_DEBUG=1 and i get the following:

+ [pyenv-sh-activate:90] new_venv=2.7.13/envs/--no-error
+ [pyenv-sh-activate:91] pyenv-virtualenv-prefix 2.7.13/envs/--no-error
+ [pyenv-sh-activate:95] '[' -z '' ']'
+ [pyenv-sh-activate:96] echo 'pyenv-virtualenv: version `--no-error'\'' is not a virtualenv'
pyenv-virtualenv: version `--no-error' is not a virtualenv
+ [pyenv-sh-activate:98] echo false
+ [pyenv-sh-activate:99] exit 1

does that shed any light?

from pimp-my-box.

2600box avatar 2600box commented on May 26, 2024

ok, i've been looking at these logs some more.

++ [pyenv:120] command -v pyenv-sh-activate
+ [pyenv:120] command_path=/home/rtorrent/.local/pyenv/plugins/pyenv-virtualenv/bin/pyenv-sh-activate
+ [pyenv:121] '[' -n /home/rtorrent/.local/pyenv/plugins/pyenv-virtualenv/bin/pyenv-sh-activate ']'
+ [pyenv:123] shift 1
+ [pyenv:124] '[' --no-error = --help ']'
+ [pyenv:131] exec /home/rtorrent/.local/pyenv/plugins/pyenv-virtualenv/bin/pyenv-sh-activate --no-error --verbose
+ [pyenv-sh-activate:17] '[' -z /home/rtorrent/.local/pyenv ']'
+ [pyenv-sh-activate:25] unset FORCE
+ [pyenv-sh-activate:26] unset QUIET
+ [pyenv-sh-activate:28] '[' 2 -gt 0 ']'
+ [pyenv-sh-activate:29] case "$1" in
+ [pyenv-sh-activate:49] break
+ [pyenv-sh-activate:55] no_shell=
+ [pyenv-sh-activate:56] versions=("$@")
+ [pyenv-sh-activate:57] '[' -z --no-error ']'
+ [pyenv-sh-activate:64] '[' -z 1 ']'
+ [pyenv-sh-activate:70] venv=--no-error
+ [pyenv-sh-activate:72] '[' -n '' ']'
+ [pyenv-sh-activate:85] pyenv-virtualenv-prefix --no-error
+ [pyenv-sh-activate:87] OLDIFS=' 	

leads me to https://github.com/pyenv/pyenv-virtualenv/blob/master/bin/pyenv-sh-activate
if i run /home/rtorrent/.local/pyenv/plugins/pyenv-virtualenv/bin/pyenv-sh-activate --no-error --verbose I get an error line 88: pyenv-version-name: command not found

this file does exist here: ./.local/pyenv/libexec/pyenv-version-name

should libexec be in my $PATH or is there something missing in the script?

from pimp-my-box.

pyroscope avatar pyroscope commented on May 26, 2024

One possible cause might be that that the file changed in pyenv itself, and doesn't fit anymore.

What shell did you use for those tests?

from pimp-my-box.

2600box avatar 2600box commented on May 26, 2024

using bash shell from rtorrent account.

i have checked with diff that the pyenv-sh-activate and pyenv.sh do match those on github.
pyenv.sh is from august 2015. pyenv-sh-activate has had active development through 2015 and 2016...

from pimp-my-box.

pyroscope avatar pyroscope commented on May 26, 2024

See also #14, which will either uncover this, or show what's missing on your end.

from pimp-my-box.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.