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

/usr/bin/python3: No module named virtualenv #142

Open
SantinoPetrovic opened this issue May 11, 2020 · 4 comments
Open

/usr/bin/python3: No module named virtualenv #142

SantinoPetrovic opened this issue May 11, 2020 · 4 comments

Comments

@SantinoPetrovic
Copy link

Hi!
I am having problems with installing latest simp_le on centOS linux machine. I run this command: './venv.sh' after 'sudo ./bootstrap.sh' but I got this error: /usr/bin/python3: No module named virtualenv. I tried to fix it by installing python 3 by yum and pip so I could install virtualenv but It said that virtualenv already exists and the error remains. Am I doing something wrong?

Best regards,

Santino

@cometsong
Copy link

As a reference for any fixer-uppers: the "new" name of python3 module is venv instead of virtualenv, as of python version 3.3

(On my side I had to create the venv through my shared web-server's admin setup frontend as their backend ssh was giving me issues in other ways.)

@zenhack
Copy link
Owner

zenhack commented May 21, 2020

Hm, on my system both python -m virtualenv and python -m venv are accepted.

Can you share the exact commands you're running and the errors you're getting?

Are you sure you're not pulling in python 2 versions of some of these packages? I think those are still the default on CentOS.

@SantinoPetrovic
Copy link
Author

SantinoPetrovic commented May 25, 2020

Hi again!

I made it work with different aproach, but I believe it's not the right way. These are the steps I have done:

  • git cloned https://github.com/zenhack/simp_le.git.
  • wrote 'sudo sh ./bootstrap.sh' on the path where I cloned the git repo.
  • Tried to run 'sh ./venv.sh' but got: 'python3: command doesn't exist'.
  • I installed python 3 by 'yum install -y python3', thereafter 'pip3 install virtualenv' to get the module
  • I needed to remove --no-site-packages from 'venv.sh' because it's probably didn't work with my aproach and didn't wanna start the command from the file.
    After these steps I could give one of my domain names a certificate with simp_le. But as I said before, this is probably not the right aproach.

@zenhack
Copy link
Owner

zenhack commented May 25, 2020

Probably we should update bootstrap_rpm() in bootstrap.sh to install the right packages; It looks like this didn't get updated when we moved the debian version and venv.sh over to python 3. That would allow you to skip installing python3 and pip separately. I just merged a patch from @thousandsofthem that fixes the --no-site-packages issue.

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