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

Random issues after switching to py39 venv #43

Open
TheDr1ver opened this issue Sep 24, 2021 · 1 comment
Open

Random issues after switching to py39 venv #43

TheDr1ver opened this issue Sep 24, 2021 · 1 comment

Comments

@TheDr1ver
Copy link
Owner

Keeping track of various issues I ran into after switching to py39 venv so they'll be easy to reference later.

@TheDr1ver
Copy link
Owner Author

Loading Shodan causes import issue for _ssl

  File "C:\Users\drive\MISPHunter\venv\lib\site-packages\shodan\stream.py", line 3, in <module>
    import ssl
  File "C:\Users\drive\.conda\envs\py39\lib\ssl.py", line 98, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: DLL load failed while importing _ssl: The specified module could not be found.

Looks like this was thankfully just a VSCode/Conda/venv issue.

  • Select Python Interperter from Conda environment
  • Launch new console where the py39 conda environment is activated
  • cd ./MISPHunter/venv/Scripts
  • activate.bat
  • Prompt should now lead with both (venv) and (py39)

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

1 participant