Skip to content

ModuleNotFoundError: No module named 'client' #1

Description

@qx54

Hi,

Thanks for the code. Unfortunately I get:

> python.exe tasks_post.py --input keywords.txt
Traceback (most recent call last):
  File "tasks_post.py", line 12, in <module>
    from client import RestClient
ModuleNotFoundError: No module named 'client'

When I change from client import RestClient to from .client import RestClient I get:

> python.exe tasks_post.py --input keywords.txt
Traceback (most recent call last):
  File "tasks_post.py", line 12, in <module>
    from .client import RestClient
ImportError: attempted relative import with no known parent package

I'm on Windows and the Python version is 3.8.5.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions