Comments (3)
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.
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 110805The 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.
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:
- Uninstall all versions of Python and PyWin32 if any of them is installed.
- Type :version in Vim (normal mode).
- Look for a string like -DDYNAMIC_PYTHON_DLL="python27.dll".
- 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.
- Install the PyWin32 wich corresponds to the installed Python version.
from vim-r-plugin.
Related Issues (20)
- \aa \ae and echo HOT 4
- Sporadic failures to send code chunks to R HOT 6
- vim-r & vim-markdown Rmd syntax highlighting no longer working HOT 13
- omnicompletion not working in .Rmd, .rnw HOT 11
- E364: Library call failed for "SendToRConsole()" HOT 7
- Rhelp is not working with vimpager HOT 4
- tmux settings have changed HOT 12
- \o not working for some cases. HOT 2
- Clear R console input before send R code from vim HOT 4
- ReplaceUnderS() not compatible with vim macros or repeat insert. HOT 4
- Sending command starting with a - (minus) sign HOT 3
- Ignoring Environment Variables on Windows HOT 9
- Running R code in Roxygen example sections does not work for visual selections HOT 12
- To remove extra spaces in vimrplugin_assign_map HOT 2
- tmux -V not available on OpenBSD HOT 2
- Issue with clipboard HOT 2
- [Regression] StartR fails with vim-r 1.2.9 HOT 2
- Vim-R-plugin was replaced by Nvim-R HOT 3
- Start 'tmux' before Vim. The X Window system is required to run R in an external terminal. HOT 1
- Can't see R documentation and plots HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-r-plugin.