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

Import error. #251

Open
bsassoli opened this issue Jan 22, 2021 · 3 comments
Open

Import error. #251

bsassoli opened this issue Jan 22, 2021 · 3 comments
Assignees

Comments

@bsassoli
Copy link

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)
@cmlsharp
Copy link
Contributor

cmlsharp commented Jan 30, 2021

Something is borked with your cryptography install (a python package that submit50 depends on indirectly) but googling around seems to indicate that this can be caused by a wide array of issues which makes it difficult to debug.

Can you share the output of pip3 list as well as conda list (since it appears you're using anaconda?)

@bsassoli
Copy link
Author

bsassoli commented Jan 31, 2021 via email

@sidratil
Copy link

how to submit my code ?
error

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

No branches or pull requests

4 participants