Skip to content

ModuleNotFoundError: No module named 'model' #7

@mildsauceminds

Description

@mildsauceminds

Its a bit insane to me that we've got developers working on OAuth and they name packages "model"... Oauth* always seems to be a mess to work with.

ANYWAYS, if anyone is having similar problems.

NOTE I am running this in python3.

$ python GetUserAccessToken.py

Throws this error:

python GetUserAccessToken.py 
Traceback (most recent call last):
  File "GetUserAccessToken.py", line 22, in <module>
    from oauthclient.oauth2api import oauth2api
  File "../oauthclient/oauth2api.py", line 23, in <module>
    import model.util
ModuleNotFoundError: No module named 'model'

A few quick fixes I've tried:

pip3 install python-oauth2
pip3 install pyyaml==5.1.0

Doesn't seem to fix the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions