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

etesync-dav 0.33.4 - Missing scrypt module on macOS #332

Open
odkr opened this issue Nov 30, 2024 · 0 comments · May be fixed by #333
Open

etesync-dav 0.33.4 - Missing scrypt module on macOS #332

odkr opened this issue Nov 30, 2024 · 0 comments · May be fixed by #333

Comments

@odkr
Copy link
Contributor

odkr commented Nov 30, 2024

System

$ rustc --version
rustc 1.82.0 (f6e511eec 2024-10-15) (Homebrew)
$ uname -mor
Darwin 23.6.0 arm64
$ python3 --version
Python 3.9.6

Installation

python3 -mvenv target
. ./target/bin/activate
pip install --upgrade pip
git clone https://github.com/etesync/etebase-py.git
pip install ./etebase-py
git clone https://github.com/etesync/etesync-dav.git
pip install ./etesync-dav

Error

$ etesync-dav
Traceback (most recent call last):
  File "/Users/odin/.local/opt/etesync-dav/lib/python3.9/site-packages/etesync/crypto.py", line 24, in <module>
    from hashlib import scrypt
ImportError: cannot import name 'scrypt' from 'hashlib' (/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/hashlib.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/odin/.local/opt/etesync-dav/lib/python3.9/site-packages/etesync/crypto.py", line 35, in <module>
    import scrypt
ModuleNotFoundError: No module named 'scrypt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/odin/.local/opt/etesync-dav/bin/etesync-dav", line 10, in <module>
    from etesync_dav.manage import Manager
  File "/Users/odin/.local/opt/etesync-dav/lib/python3.9/site-packages/etesync_dav/manage.py", line 22, in <module>
    import etesync as api
  File "/Users/odin/.local/opt/etesync-dav/lib/python3.9/site-packages/etesync/__init__.py", line 15, in <module>
    from .api import *
  File "/Users/odin/.local/opt/etesync-dav/lib/python3.9/site-packages/etesync/api.py", line 20, in <module>
    from .crypto import CryptoManager, AsymmetricCryptoManager, AsymmetricKeyPair, derive_key, CURRENT_VERSION
  File "/Users/odin/.local/opt/etesync-dav/lib/python3.9/site-packages/etesync/crypto.py", line 46, in <module>
    import pyscrypt
ModuleNotFoundError: No module named 'pyscrypt'

I'll add a conditional dependency in setup.py and file a PR.

@odkr odkr linked a pull request Nov 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant