oasysai / oasysdb

Hybrid vector database with flexible SQL storage engine & multi-index support.
https://docs.oasysdb.com/
Apache License 2.0
357 stars 12 forks source link

BUG: dynamic module does not define module export function on 0.4.1 python #62

Closed Catstyle closed 6 months ago

Catstyle commented 6 months ago

Short description

After upgraded from 0.3.0 to 0.4.1, codes break.

ImportError
Traceback (most recent call last) Cell In[1], line 1
----> 1 from oasysdb.prelude import Vector, Config, Database, Collection, Record

File ~/.pyenv/versions/3.11.4/envs/env/lib/python3.11/site-packages/oasysdb/__init__.py:2
      1 # flake8: noqa F401
----> 2 from .oasysdb import *

ImportError: dynamic module does not define module export function (PyInit_oasysdb)

Steps to reproduce

Just import from oasysdb.preludes

Expected Behavior

Works like a charm

BTW, great work.

edwinkys commented 6 months ago

Hey 👋

First of all, thank you for using OasysDB and taking your time to report this issue.

I just released a new patch version 0.4.2 to solve this issue:

I have tested it in the Google Colab demo that I have created:

Please let me know if your issue is resolved. I'll be happy to help 😁

Catstyle commented 6 months ago

Works now. 😁