Coder Social home page Coder Social logo

arxml.vim's People

Contributors

gitter-badger avatar m42e avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

wangliu harkeryx

arxml.vim's Issues

lxml import: undefined symbol: PyExc_BaseException

Hello,
I wanna try out the plugin. However I have issues to get lxml working with the vim plugin.
When starting vim I get this exception:

Error detected while processing /home/marco/.vim_runtime/my_plugins/arxml.vim/plugin/arxml.vim:
line   38:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/marco/.vim_runtime/my_plugins/arxml.vim/plugin/../python/main.py", line 12, in <module>
    import vim_adaptor
  File "/home/marco/.vim_runtime/my_plugins/arxml.vim/python/vim_adaptor.py", line 11, in <module>
    from arxml_vim import xpath as x
  File "/home/marco/.vim_runtime/my_plugins/arxml.vim/python/arxml_vim/xpath.py", line 4, in <module>
    from lxml import etree
ImportError: /home/marco/.local/lib/python2.7/site-packages/lxml/etree.so: undefined symbol: PyExc_BaseException

I tried to install lxml in py2 and py3 locally and system wide. Always the same issue.
I also think there is a bug in arxml.vim which confused me first:

  if has('python3')
    let g:arxml_vim_python = 'py3'
  endif
  if has('python')
    let g:arxml_vim_python = 'py'
  endif

It will always use python2 not python3, because arxml_vim_python gets overwritten. That's why, at the beginning, it did not see my python3 lxml at all. After fixing it to

  if has('python3')
    let g:arxml_vim_python = 'py3'
  elseif has('python')
    let g:arxml_vim_python = 'py'
  endif

I got above exception. Don't know how to handle this. Any clues?
I'm on Manjaro 64bit.

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.