question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: No module named 'graphene

See original GitHub issue

Issue Description

tldr -

import graphene.relay ImportError: No module named 'graphene

Reproduction Steps

  1. Start King Phisher
  2. 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:closed
  • Created 4 years ago
  • Comments:16

github_iconTop GitHub Comments

1reaction
zeroSteinercommented, Apr 10, 2019

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.

1reaction
zeroSteinercommented, Apr 10, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found