scragg0x / realms-wiki

Git based wiki inspired by Gollum
http://realms.io
GNU General Public License v2.0
833 stars 91 forks source link

ImportError: No module named click (vagrant install) #203

Closed ghost closed 6 years ago

ghost commented 7 years ago

Default vagrant install has this problem:

vagrant@vagrant-ubuntu-trusty-64:/vagrant$ pwd
/vagrant
vagrant@vagrant-ubuntu-trusty-64:/vagrant$ sudo ./realms-wiki stop
Traceback (most recent call last):
  File "./realms-wiki", line 3, in <module>
    from realms.commands import cli
  File "/vagrant/realms/__init__.py", line 17, in <module>
    import click
ImportError: No module named click
vagrant@vagrant-ubuntu-trusty-64:/vagrant$ sudo ./realms-wiki help
Traceback (most recent call last):
  File "./realms-wiki", line 3, in <module>
    from realms.commands import cli
  File "/vagrant/realms/__init__.py", line 17, in <module>
    import click
ImportError: No module named click
vagrant@vagrant-ubuntu-trusty-64:/vagrant$
ghost commented 7 years ago

OK, so you get around this by doing a . ~/.venv/bin/activate first.