On Friday, 21 October 2011 01:53:05 UTC+2, Kazuo Teramoto wrote: > Hi. > > I'm trying to import dbus inside vim but I get a error: > ---------- > :python import dbus > Traceback (most recent call last): > File "<string>", line 4, in <module> > File "/usr/lib/python2.7/site-packages/dbus/__init__.py", line 79, in > <module> > import dbus.types as types > File "/usr/lib/python2.7/site-packages/dbus/types.py", line 6, in <module> > from _dbus_bindings import ObjectPath, ByteArray, Signature, Byte,\ > ImportError: /usr/lib/python2.7/site-packages/_dbus_bindings.so: > undefined symbol: PyExc_UserWarning > ---------- > > But I don't get this error if I try to import direct from python > (command line, i.e. without vim): > ---------- > $ python2 -c 'import dbus; print dbus.version' > (0, 84, 0) > ---------- > > I'm using vim 7.3.338, python 2.7.2 and dbus-python 0.84.0. vim > :version at end of email. > > Anyone know what is wrong? > > Thanks. > > $ vim --version: > --------------------------------------------------- > VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 18 2011 21:47:38) > Included patches: 1-338 > Compiled by ArchLinux > Big version with GTK2 GUI. Features included (+) or not (-): > +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent > +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments > +conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff > +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi > +file_in_path +find_in_path +float +folding -footer +fork() +gettext > -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall > +linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname > +mouse +mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm > -mouse_sysmouse +mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg > +path_extra +perl +persistent_undo +postscript +printer -profile +python/dyn > +python3/dyn +quickfix +reltime +rightleft +ruby +scrollbind +signs > +smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary > +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects > +title > +toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo > +vreplace +wildignore +wildmenu +windows +writebackup +X11 -xfontset +xim > +xsmp_interact +xterm_clipboard -xterm_save > system vimrc file: "/etc/vimrc" > user vimrc file: "$HOME/.vimrc" > user exrc file: "$HOME/.exrc" > system gvimrc file: "/etc/gvimrc" > user gvimrc file: "$HOME/.gvimrc" > system menu file: "$VIMRUNTIME/menu.vim" > fall-back for $VIM: "/usr/share/vim" > Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK > -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include > -I/usr/include/atk-1.0 -I/usr/include/cairo > -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/pixman-1 -I/usr/include/freetype2 > -I/usr/include/libpng14 -I/usr/local/include -march=x86-64 > -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 > -D_FORTIFY_SOURCE=1 > Linking: gcc -L. -Wl,--hash-style=gnu -Wl,--as-needed -rdynamic > -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE > -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu > -L/usr/local/lib -Wl,--as-needed -o vim -pthread -lgtk-x11-2.0 > -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 > -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig > -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lSM -lICE > -lXt -lX11 -lXdmcp -lSM -lICE -lm -lncurses -lelf -lnsl -lacl > -lattr -lgpm -ldl -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE > -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu > -fstack-protector -L/usr/local/lib -L/usr/lib/perl5/core_perl/CORE > -lperl -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc -lruby -lpthread > -lrt -ldl -lcrypt -lm -L/usr/lib > > > -- > “The journey is more important than the destination—that’s part of > life, if you only live for getting to the end, you’re almost always > disappointed.” > > Donald E. Knuth
Did you find a solution? I now have the same problem. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
