Giter Club home page Giter Club logo

rubyenv's People

Contributors

schinckel avatar search5 avatar twang-rs avatar twang817 avatar ussx-hares avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rubyenv's Issues

Add verbosity to Ruby installation

Please, add verbosity flag to the command executed - otherwise, the tool seems to be hanging while actually installing the Ruby.

Here:

os.system('%s %s %s' % (ruby_build, ns.version, get_virtualenv_dir()))

Should be:

    os.system('%s %s %s -v' % (ruby_build, ns.version, get_virtualenv_dir()))

py3 compatible

Python 3 is not compatible. Thank you for your improvement.

rubyenv install hangs when linuxbrew command is in PATH and ${HOME}/.linuxbrew does not exist

Installing 2.6.2 hangs on Installing ruby-2.6.2...

$ rubyenv install 2.6.2
Downloading ruby-2.6.2.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.2.tar.bz2
Installing ruby-2.6.2...

My uninstalling the linuxbrew-wrapper package helped me fix the problem.

I think what is happening is that, for whatever reason, linuxbrew is invoked when it is found in the PATH, but if the user has never run linuxbrew before (ie the .linuxbrew directory does not exist in HOME), then linuxbrew asks a question and expects an answer on STDIN. Since rubyenv does not echo anything to the end-user beyond Installing ruby-..., the user has no idea that something is asked of him, will wait, and eventually cancel the command.

`rubyenv install --prebuilt` fails

With python 2.7 virtualenv

$ rubyenv install --prebuilt
Could not install prebuilt binary 'function' object has no attribute 'urlunparse'
Traceback (most recent call last):
  File "/home/lestephane/.virtualenvs/rubyenvtest/local/lib/python2.7/site-packages/rubyenv/app.py", line 162, in install
    resp = urlopen(urlparse.urlunparse(url))
AttributeError: 'function' object has no attribute 'urlunparse'

with python 3.7 virtualenv

$ rubyenv install --prebuilt
Could not install prebuilt binary a bytes-like object is required, not 'str'
Traceback (most recent call last):
  File "/home/lestephane/.virtualenvs/testy/lib/python3.7/site-packages/rubyenv/app.py", line 147, in install
    for ver, url in sorted(_get_prebuilt_list(), key=lambda v_u: _get_numerical_version(v_u[0])):
  File "/home/lestephane/.virtualenvs/testy/lib/python3.7/site-packages/rubyenv/app.py", line 102, in _get_prebuilt_list
    path = url.path.split('/')
TypeError: a bytes-like object is required, not 'str'

No module named 'past'

When running rubyenv, python complain about past missing

Traceback (most recent call last):
  File "/home/ikus060/workspace/PDSL/cmdb.git/.tox/bootstrapemail/bin/rubyenv", line 5, in <module>
    from rubyenv import main
  File "/home/ikus060/workspace/PDSL/cmdb.git/.tox/bootstrapemail/lib/python3.9/site-packages/rubyenv/__init__.py", line 8, in <module>
    from .app import main
  File "/home/ikus060/workspace/PDSL/cmdb.git/.tox/bootstrapemail/lib/python3.9/site-packages/rubyenv/app.py", line 13, in <module>
    from past.builtins import basestring
ModuleNotFoundError: No module named 'past'

Dependency on 'six' and 'past' modules cause ModuleNotFoundError in a fresh Python 3(.7.3) virtualenv

In a freshly created Python v3.7.3 virtualenv where I installed rubyenv using

pip install rubyenv

When running

rubyenv install 2.4.2

I get the following error

Traceback (most recent call last):
  File ".../.virtualenvs/.../bin/rubyenv", line 6, in <module>
    from rubyenv import main
  File ".../.virtualenvs/.../lib/python3.7/site-packages/rubyenv/__init__.py", line 1, in <module>
    import six
ModuleNotFoundError: No module named 'six'

Expected behaviour: pip install rubyenv should result in six being installed since it is required.

Suspected problem: the rubyenv package does not list six as a dependency / requirement even though it imports it.

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.