Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Segmentation fault after import monetdblite #12

Open
jazzido opened this issue Feb 23, 2018 · 2 comments
Open

Segmentation fault after import monetdblite #12

jazzido opened this issue Feb 23, 2018 · 2 comments
Assignees

Comments

@jazzido
Copy link

jazzido commented Feb 23, 2018

Hi,

I'm building with stock Python 3.6.3 (from Pyenv) on macOS 10.13.3:

In [1]: import monetdblite
[1]    2611 segmentation fault  ipython

(Same behavior as #9)

@hannes
Copy link
Contributor

hannes commented Feb 24, 2018

@Mytherin ?

@hannes hannes assigned hannes and Mytherin and unassigned hannes Feb 24, 2018
@kutsurak
Copy link
Member

kutsurak commented Jun 7, 2018

I believe I am hitting the same issue. The problem in my case is the following:

$ pip install monetdblite
[...installation output...]
$ python
Python 2.7.15 (default, May 15 2018, 15:37:31)
[GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import monetdblite
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/kutsurak/.local/share/virtualenvs/foo-r-OLon9H/lib/python2.7/site-packages/monetdblite/__init__.py", line 13, in <module>
    from monetdblite import connections
  File "/home/kutsurak/.local/share/virtualenvs/foo-r-OLon9H/lib/python2.7/site-packages/monetdblite/connections.py", line 7, in <module>
    from monetdblite import cursors
  File "/home/kutsurak/.local/share/virtualenvs/foo-r-OLon9H/lib/python2.7/site-packages/monetdblite/cursors.py", line 9, in <module>
    from monetdblite import embeddedmonetdb
  File "/home/kutsurak/.local/share/virtualenvs/foo-r-OLon9H/lib/python2.7/site-packages/monetdblite/embeddedmonetdb.py", line 32, in <module>
    libs[0]), mode=ctypes.RTLD_GLOBAL)
  File "/usr/lib64/python2.7/ctypes/__init__.py", line 361, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /home/kutsurak/.local/share/virtualenvs/foo-r-OLon9H/lib/python2.7/site-packages/monetdblite/libmonetdb5.so: invalid ELF header
>>>

The workaround is to not use the published pypi version, but to clone the repository and compile from source as outlined in the README file:

$ git clone https://github.com/hannesmuehleisen/MonetDBLite-Python.git --depth 1 --recursive
$ python setup.py install

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants