Installing Gumbo and its Python wrapper -


i trying use gumbo's python wrapper parse html.

my operating system unbuntu 14.04.3 lts. using python2.7

i have cloned latest version of gumbo github.

i followed installation steps provided on github.

the installation of libraries, both c library , python wrapper, appeared successful ( no error message, both printed successful messages @ end )

c library final message:

libraries have been installed in: /usr/local/lib

python wrapper mesage:

installed /usr/local/lib/python2.7/dist-packages/gumbo-0.10.1-py2.7.egg processing dependencies gumbo==0.10.1 finished processing dependencies gumbo==0.10.1

the first problem encountered when tried open pydoc gumbo, better understand library.

pydoc gumbo produced following error:

problem in gumbo - <type 'exceptions.oserror'>: /usr/local/lib/python2.7/dist-packages/gumbo-0.10.1-py2.7.egg/gumbo/libgumbo.so: cannot open shared object file: no such file or directory 

searching message yielded single result.

it not of use me.

looking @ dist-packages directory, noticed libgumbo.so not in /usr/local/lib/python2.7/dist-packages/gumbo-0.10.1-py2.7.egg/gumbo/ . other files ( soup-adapter.py, gumboc.py, etc ) there however.

the installation of c library placed libgumbo.so ( , other libraries, libgumbo.a libgumbo.la, etc ) in /usr/local/lib. so, work around, created simlink .../dist-packages/gumbo-0.10.1-py2.7.egg/gumbo/ /usr/local/lib.

this got pydoc gumbo work.

i tried import gumbo , soup-adapter in interpreter after. received following error:

import soup_adapter traceback (most recent call last):   file "<stdin>", line 1, in <module>   file "soup_adapter.py", line 26, in <module>     import gumboc   file "gumboc.py", line 44, in <module>     os.path.dirname(__file__), _name_of_lib))   file "/usr/lib/python2.7/ctypes/__init__.py", line 443, in loadlibrary     return self._dlltype(name)   file "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__     self._handle = _dlopen(self._name, mode) oserror: libgumbo.so: cannot open shared object file: no such file or directory 

i not sure how proceed or how gumbo work.

can please me?

thank you!


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

c - getting error: cannot take the address of an rvalue of type 'int' -

How to merge four videos on one screen with ffmpeg -