prompt-toolkit / pyvim

Pure Python Vim clone.
BSD 3-Clause "New" or "Revised" License
2.52k stars 163 forks source link

pyvim with pypy will not run #41

Open lunemec opened 9 years ago

lunemec commented 9 years ago

pypy seems to be missing some built-in packages and will not run:

pypy pyvim/entry_points/run_pyvim.py

Traceback (most recent call last):
  File "app_main.py", line 75, in run_toplevel
  File "pyvim/entry_points/run_pyvim.py", line 14, in <module>
    import docopt
ImportError: No module named docopt

I wanted to try pypy because python seems to be a bit laggy.

SanketDG commented 9 years ago

Nice catch! I guess pip install docopt should do the trick. We have to add docopt in setup.py

lunemec commented 9 years ago

docopt is installed as a dependency inside my virtualenv and system. pypy for some reason will not use it.

lunemec commented 9 years ago

Maybe the problem is, I was running pypy from inside python2.7 virtualenv. It seems I need to create separate virtualenv with pypy as python interpreter. But that is failing for me on some ZipImportError :(

jonathanslenders commented 9 years ago

Docopt is a dependency of ptpython, which is a dependency of pyvim. If you want, you can create a pull request to add docopt to the setup.py of pyvim. That will probably be better.

lunemec commented 9 years ago

This is not a problem of missing docopt, I have it installed on my system, but pypy has completely different sys.path(s). It's not even trying to find it in correct directory and since I've used pypy very little I don't know what to make of this.