Skip to content

Cannot install from git #110

@TheBlusky

Description

@TheBlusky

When trygin to install django-cryptography using poetry :

poetry add git+https://github.com/georgemarshall/django-cryptography

django-cryptography seems to be installed properly, however, when imported/used, I have the following error:

  File "/usr/local/lib/python3.12/site-packages/django_cryptography/fields.py", line 25, in <module>
    from django_cryptography.core.signing import SignatureExpired
ModuleNotFoundError: No module named 'django_cryptography.core'

When inspecting what's installed, not all files are installed on site-package:

# cd /usr/local/lib/python3.12/site-packages/django_cryptography/
# ls
__init__.py  __pycache__  conf.py  fields.py  py.typed  typing.py

(core and utils directories are missing)

(Same with pip)

I guess it's because poetry uses the pyproject.toml file and not setup.cfg, but I have no idea how to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions