Giter VIP home page Giter VIP logo

Comments (3)

mmparker avatar mmparker commented on August 24, 2024

Well - I tried uninstalling and reinstalling various different bits, and reinstalling both Py 2.7 and pywin32 seemed to make it work. Maybe the installations weren't as clean as I thought? Jakson, I will leave it to you to decide if this warrants further investigation - let me know if you have any questions. Thanks.

from vim-r-plugin.

jalvesaq avatar jalvesaq commented on August 24, 2024

Hi,

I have limited knowledge of Windows and Python. I have developed the
communication between Vim and R on Windows through a very hard process
of trial and error and my only guess of why the plugin is not working
in your laptop is that there is a version mismatch.

I don't use Windows, but I tested the following in Windows XP running
inside Virtual Box, and it worked fine:

Vim 7.3.284
http://sourceforge.net/projects/cream/files/Vim/

Python 2.7.2
http://www.python.org/download/

pywin32-216.win32-py2.7.exe
http://sourceforge.net/projects/pywin32/files/pywin32/Build216/

Best regards,

Jakson

On Wed, Aug 24, 2011 at 4:22 PM, mmparker
[email protected]
wrote:

Hello - I've been using the vim-R plugin on my WinXP desktop for some time now, and I'm now trying to get it set up on a laptop.  I've been encountering a persistent problem, however: when I try to open an R file for the first time, I receive a message that "Python interface must be enabled to run Vim-R-Plugin.  Please do `:h r-plugin-installation' for details".

Which I do, but I don't see any information there that conflicts with what I've done.  Here's some additional information about my setup:

Windows XP
Python 3.2.1 (currently, but also tried 2.7.2 before)
pywin32 build 216 (specifically, pywin32-216.1.win32py3.2.exe for Python 3.2, pywin32-216.1.win32py2.7.exe for Py 2.7)
Vim 7.3.46
Vim-R-Plugin 110805

The installations of R, Python, pywin32, Vim, and the Vim-R plugin are all fresh, and I've tried uninstalling and reinstalling most components with no luck.  Do you have any suggestions?  Am I missing something obvious?

from vim-r-plugin.

jalvesaq avatar jalvesaq commented on August 24, 2024

Since Matt Parker solved his own problem, I'll close this issue.

Vim is compiled against a specific version of Python and the same version must be installed in the system in order to have Python interface enabled in Vim. Otherwise there will be a version mismatch.

The way of solving this version mismatch seems to be:

  1. Uninstall all versions of Python and PyWin32 if any of them is installed.
  2. Type :version in Vim (normal mode).
  3. Look for a string like -DDYNAMIC_PYTHON_DLL="python27.dll".
  4. Install the Python version which corresponds to the version which Vim was linked against. In the example of step 3 (python27.dll) the required Python version is 2.7.x.
  5. Install the PyWin32 wich corresponds to the installed Python version.

from vim-r-plugin.

Related Issues (20)

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.