Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks done
wbradley93 opened this issue Jul 11, 2024 · 1 comment · Fixed by #37
Closed
2 tasks done

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

wbradley93 opened this issue Jul 11, 2024 · 1 comment · Fixed by #37
Labels
bug Something isn't working

Comments

@wbradley93
Copy link

wbradley93 commented Jul 11, 2024

Checks

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest version of actualpy.

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

  • actualpy version: 0.1.0
  • Actual Server version: n/a
~ 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)
@wbradley93 wbradley93 added the bug Something isn't working label Jul 11, 2024
@bvanelli
Copy link
Owner

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

bvanelli added a commit that referenced this issue Jul 15, 2024
Checks if module imports are working on the built version, to prevent future importer errors like #36

Closes #38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants