Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lestephane opened this issue Mar 27, 2019 · 5 comments

Comments

@lestephane
Copy link

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.

@lestephane
Copy link
Author

Tried to work around the problem with

pip install six

But then

rubyenv install 2.4.2

causes the 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 8, in <module>
    from .app import main
  File "/.../.virtualenvs/.../lib/python3.7/site-packages/rubyenv/app.py", line 13, in <module>
    from past.builtins import basestring
ModuleNotFoundError: No module named 'past'

Which can't be installed at all

$ pip install past
Collecting past
  Could not find a version that satisfies the requirement past (from versions: )
No matching distribution found for past

Not a python expert, could it be that python 3 is simply not supported?

@lestephane lestephane changed the title Unlisted dependency on 'six' module causes ModuleNotFoundError in a fresh virtualenv Dependency on 'six' and 'past' modules cause ModuleNotFoundError in a fresh Python 3(.7.3) virtualenv Mar 27, 2019
@lestephane
Copy link
Author

I managed to resolve the dependency on past by installing future (?)

$ pip install future

@lestephane
Copy link
Author

So, in summary, in a fresh python 3 Virtualenv, I'd expect

$ pip install rubyenv

to result in the installation of six and future as well (if they are not installed already), because rubyenv requires them to run correctly.

@schinckel
Copy link
Contributor

Yeah, those should be declared as dependencies.

USSX-Hares added a commit to USSX-Hares/rubyenv that referenced this issue Oct 28, 2020
@USSX-Hares
Copy link
Contributor

Fixed with #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants