Skip to content

Import error. #251

Description

@bsassoli

Hi. Not sure whether this is appropriate but if I try to run submit50 from the terminal (regardless of what IDE, or what directory) I get the following:

/__init__.py", line 18, in <module>
    CONFIG_LOADER = __import__("lib50").config.Loader("submit50")
  File "/Users/bernardino/opt/anaconda3/lib/python3.7/site-packages/lib50/__init__.py", line 22, in <module>
    from . import config, crypto
  File "/Users/bernardino/opt/anaconda3/lib/python3.7/site-packages/lib50/crypto.py", line 4, in <module>
    from cryptography.hazmat.primitives import serialization, hashes
  File "/Users/bernardino/opt/anaconda3/lib/python3.7/site-packages/cryptography/hazmat/primitives/serialization/__init__.py", line 7, in <module>
    from cryptography.hazmat.primitives.serialization.base import (
  File "/Users/bernardino/opt/anaconda3/lib/python3.7/site-packages/cryptography/hazmat/primitives/serialization/base.py", line 13, in <module>
    from cryptography.hazmat.backends import _get_backend
ImportError: cannot import name '_get_backend' from 'cryptography.hazmat.backends' (/Users/bernardino/opt/anaconda3/lib/python3.7/site-packages/cryptography/hazmat/backends/__init__.py)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions