0

I have this simple imports that is failing with

    from upwork.routers.jobs import search
ModuleNotFoundError: No module named 'upwork.routers'

Ref: https://upwork.github.io/python-upwork-oauth2/routers/jobs/search.html
https://developers.upwork.com/?lang=python#jobs

Code:

#!/usr/bin/env python

import upwork
from upwork.routers.jobs import search

I did

$ pip install upwork
$ pip list | grep upwork
upwork 1.0.22

What's wrong?

2 Answers2

3

The correct PyPI package for the upwork/python-upwork GitHub repo is python-upwork, so

pip uninstall upwork
pip install python-upwork

and give it another go.

The PyPI upwork package is someone else's unrelated Upwork scraper.

AKX
  • 152,115
  • 15
  • 115
  • 172
  • 1
    Taking into account "Ref: https://upwork.github.io/python-upwork-oauth2/routers/jobs/search.html https://developers.upwork.com/?lang=python#jobs", he is looking for `python-upwork-oauth2` package. `python-upwork` serves legacy OAuth1 signed requests. Upwork doesn't release new OAuth1 keys. – mnovozhylov Mar 24 '23 at 07:11
1

You need to install python-upwork-oauth2.

mnovozhylov
  • 311
  • 1
  • 3