Permify / permify-python

Permify Python Client
Apache License 2.0
7 stars 1 forks source link

Invalid imports in root __init__.py #1

Closed mmx86 closed 1 month ago

mmx86 commented 4 months ago
❯ ipython
Python 3.12.1 (main, Feb  1 2024, 10:31:48) [Clang 14.0.3 (clang-1403.0.22.14.1)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.24.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import permify
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 1
----> 1 import permify

File ~/dev/rnd/permify/.venv/lib/python3.12/site-packages/permify/__init__.py:21
     18 __version__ = "1.0.0"
     20 # import apis into sdk package
---> 21 from permify.bundle_api import BundleApi
     22 from permify.data_api import DataApi
     23 from permify.permission_api import PermissionApi

ModuleNotFoundError: No module named 'permify.bundle_api'

from permify.bundle_api import BundleApi Shouldn't it be either permify.permify.bundle_api or .permify.bundle_api?

jbergstroem commented 2 months ago

I have the same issue. This is a blocker for using the library.

featurebase-for-github[bot] commented 2 months ago

This issue is linked to our feedback platform. For feedback and updates, please visit this link.