Comments (7)
hmm, seems like an issue with the python used by your vim. I think it is incomplete or wasn't built properly, since according to that traceback, just doing :py from random import Random
or :py import tempfile
would fail - and neither of those involve IPython or vim-ipython. So I think you'll have to fix that Cellar installation, or compile vim to have it grab the working python installation.
from vim-ipython.
I have the same error on one of my pcs v a brew installed python. Should we raise a ticket with the python people?
from vim-ipython.
I had exactly the same error using Enthought IPython.
from vim-ipython.
I lodged this ticket with the python people: Homebrew/legacy-homebrew#18204
from vim-ipython.
[i also posted this at the python issues tracker]
I checked my python sys.path
against my vim sys.path
and found that the two differed by a single line. The vim sys.path also contained this line:
/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
I also checked against my laptop, which has a fully working of both, and is supposed to be the template for the desktop install, and this line does not appear. Interestingly, one that does is /Users/mcooganj
Could this be the problem? If so, how does one edit the sys.path?
from vim-ipython.
Okay, i got it sorted: the problem is with the macvim build (or at least that was the source of my problem). You can tell as :py from random import Random
threw (basically) the same error.
the fix:
$ brew unlink python
$ brew unlink macvim
$ brew remove macvim
$ brew install -v --force macvim
$ brew link macvim
$ brew link python
from vim-ipython.
glad to hear it all worked out, @mcooganj, hopefully @rouge8 also go a fix in? closing for now, feel free to reopen if you still think this is an issue with vim-ipython
from vim-ipython.
Related Issues (20)
- Support for IPython version 4 HOT 2
- Not working after installing with Vundle HOT 3
- Using over ssh on Amazon Ec2 HOT 1
- multiple version of python support HOT 1
- Can't import IPython; using conda HOT 3
- Unable to use due to: skipping a message on shell_channel HOT 3
- Unable to access pydoc from plugin
- Could not find IPython HOT 2
- support kernels started by notebook HOT 1
- Is this project now dead / unmaintained? HOT 11
- Cant not make it work under OSX
- IPython 4 support? HOT 2
- vim-ipython in cygwin HOT 3
- Why does vim-ipython preview window close with <esc> in code buffer window?
- minor readme change: leader vs localleader HOT 1
- NameError: global name 'send' is not defined
- python bug
- IPython and conda environment setup
- Jupyter notebook from vim
- Development closed? HOT 2
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-ipython.