bvanelli / actualpy

Python API implementation for Actual server - reference https://actualbudget.org/
20 stars 4 forks source link

ModuleNotFoundError: No module named 'actual.utils' #36

Closed wbradley93 closed 2 months ago

wbradley93 commented 2 months ago

Checks

Reproducible example

>>> from actual import Actual
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/wes/.local/lib/python3.12/site-packages/actual/__init__.py", line 18, in <module>
    from actual.api import ActualServer
  File "/home/wes/.local/lib/python3.12/site-packages/actual/api/__init__.py", line 9, in <module>
    from actual.api.models import (
  File "/home/wes/.local/lib/python3.12/site-packages/actual/api/models.py", line 8, in <module>
    from actual.api.bank_sync import BankSyncAccountData, BankSyncTransactionData
  File "/home/wes/.local/lib/python3.12/site-packages/actual/api/bank_sync.py", line 10, in <module>
    from actual.utils.title import title
ModuleNotFoundError: No module named 'actual.utils'

Log output

No response

Issue description

Unable to import main class

Expected behavior

Import Actual

Installed versions

➜  ~ pip install actualpy
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: actualpy in ./.local/lib/python3.12/site-packages (0.1.0)
bvanelli commented 2 months ago

Hello @wbradley93 , thanks for the report, I fixed and released a new version, you can now install version 0.1.1 from pip and it should work out of the box:

(venv) actualpy_test ➤ pip install actualpy                                                                                                 
...
(venv) actualpy_test ➤ source venv/bin/activate                                                                                             
(venv) actualpy_test ➤ python                                                                                                               
Python 3.11.8 (main, Mar 20 2024, 19:21:09) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from actual import Actual, __version__
>>> print(__version__)
0.1.1