Giter Site home page Giter Site logo

Comments (7)

ivanov avatar ivanov commented on August 17, 2024

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.

mcooganj avatar mcooganj commented on August 17, 2024

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.

renchin avatar renchin commented on August 17, 2024

I had exactly the same error using Enthought IPython.

from vim-ipython.

mcooganj avatar mcooganj commented on August 17, 2024

I lodged this ticket with the python people: Homebrew/legacy-homebrew#18204

from vim-ipython.

mcooganj avatar mcooganj commented on August 17, 2024

[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.

mcooganj avatar mcooganj commented on August 17, 2024

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.

ivanov avatar ivanov commented on August 17, 2024

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)

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.