Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

ImportError: cannot import name 'json_decode' from 'utilities' #213

Open
khahmed94 opened this issue May 27, 2019 · 0 comments
Open

ImportError: cannot import name 'json_decode' from 'utilities' #213

khahmed94 opened this issue May 27, 2019 · 0 comments

Comments

@khahmed94
Copy link

Khalids-MacBook-Air:Melissa-Core khahmed$ FLASK_APP=melissa/main.py flask run

  • Serving Flask-SocketIO app "melissa.main"
    Traceback (most recent call last):
    File "/Library/Frameworks/Python.framework/Versions/3.7/bin/flask", line 10, in
    sys.exit(main())
    File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/flask/cli.py", line 513, in main
    cli.main(args=args, prog_name=name)
    File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/flask/cli.py", line 380, in main
    return AppGroup.main(self, *args, **kwargs)
    File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
    File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
    File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args[1:], **kwargs)
    File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
    File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/flask_socketio/cli.py", line 65, in run
    run_server()
    File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/flask_socketio/cli.py", line 50, in run_server
    app = info.load_app()
    File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/flask/cli.py", line 237, in load_app
    rv = locate_app(self.app_import_path)
    File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/flask/cli.py", line 90, in locate_app
    import(module)
    File "/Users/khahmed/Melissa-Core/melissa/main.py", line 5, in
    from melissa.profile_loader import load_profile
    File "/Users/khahmed/Melissa-Core/melissa/profile_loader.py", line 5, in
    from utilities import json_decode as jd
    ImportError: cannot import name 'json_decode' from 'utilities' (/Users/khahmed/Library/Python/3.7/lib/python/site-packages/utilities/init.py)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant