ImportError: No module named 'graphene
See original GitHub issueIssue Description
tldr -
import graphene.relay ImportError: No module named 'graphene
Reproduction Steps
- Start King Phisher
- Do something to trigger the crash
Environment Details
Host OS: Debian 9 x86_64 CLI King Phisher Version: Latest
Error Details / Stack Trace
root@host:/opt/king-phisher# ls
CODE_OF_CONDUCT.md king_phisher Pipfile server_config.yml
data KingPhisher Pipfile.lock tests
docs KingPhisherServer README.md tools
INSTALL.md LICENSE readthedocs.yml
root@host:/opt/king-phisher# ./KingPhisherServer config_file
Loading .env environment variables…
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/king-phisher/king_phisher/server/__main__.py", line 50, in <module>
from king_phisher.server import build
File "/opt/king-phisher/king_phisher/server/build.py", line 39, in <module>
from king_phisher.server.server import KingPhisherRequestHandler, KingPhisherServer
File "/opt/king-phisher/king_phisher/server/server.py", line 55, in <module>
from king_phisher.server import server_rpc
File "/opt/king-phisher/king_phisher/server/server_rpc.py", line 48, in <module>
from king_phisher.server.graphql import schema
File "/opt/king-phisher/king_phisher/server/graphql/schema.py", line 39, in <module>
import king_phisher.server.graphql.types as gql_types
File "/opt/king-phisher/king_phisher/server/graphql/types/__init__.py", line 35, in <module>
from .database import *
File "/opt/king-phisher/king_phisher/server/graphql/types/database.py", line 38, in <module>
from . import misc as gql_misctypes
File "/opt/king-phisher/king_phisher/server/graphql/types/misc.py", line 42, in <module>
import graphene.relay
ImportError: No module named 'graphene'
root@host:/opt/king-phisher#
root@host:/opt/king-phisher# pip freeze | grep -e graph -e Django
cryptography==1.7.1
Django==2.2
graphene==2.1.3
graphene-django==2.2.0
graphql-core==2.1
graphql-relay==0.4.5
root@host:/opt/king-phisher#
Issue Analytics
- State:
- Created 4 years ago
- Comments:16
Top Results From Across the Web
Error during installation -- ImportError: No module named ...
ImportError : No module named 'graphql.language'. $ pip freeze | grep -e graph -e Django Django==1.10.5 django-graphiql==0.4.4 graphene==1.1.
Read more >ModuleNotFoundError: No module named 'ingredients'
Try to open "cookbook/ingredients/" folder and change name in IngredientsConfig to cookbook.ingredients :
Read more >[Answered]-Django-Graphene: No module named 'graphql_jwt'
I'm trying to implement authentication with Django and GraphQL/graphene. I've run into the error No module named 'graphql_jwt'. and the solutions I've found ......
Read more >module not found error in django project - You.com
I got ModuleNotFoundError: No module named 'graphene_django' error after I added 'graphene_django' in settings.py and run the python manage.py runserver command ...
Read more >graphene-django-extras - PyPI
This library add some extra funcionalities to graphene-django to facilitate the graphql use without Relay, allow paginations and filtering integration and ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh yeah, that’s probably your issue. If you changed
0.0.0.0
to your external IP address then the client won’t be able to connect to the lookback interface when it SSHes in. I’d suggest changing that back to it’s default value. If you can’t bind to all interfaces, it’d be more complicated to setup. The easiest thing to do would be to set the interface back.You don’t need to uninstall it, just stop it and probably disable it so it doesn’t automatically start the next time you reboot.