Giter Club home page Giter Club logo

Comments (4)

 avatar commented on August 12, 2024

upd.

3.10.5 latest stable from windwos app store 
-same Error 
tried latest pypy3 3.9 
-same error
but 3.10.4 works

from python-upwork.

 avatar commented on August 12, 2024

upd. 3.10.4 from sources

Traceback (most recent call last): File "script-of-all-scripts.py", line 15, in <module> config = upwork.Config( File "/somepath/.local/lib/python3.10/site-packages/upwork/config.py", line 22, in __init__ config["consumer_key"], KeyError: 'consumer_key'

but on windows 3.10.4 version runs after re installing python/module
and not works on 3.10.5

from python-upwork.

 avatar commented on August 12, 2024

upd. this also scuffed
https://i.imgur.com/kgzPrVj.png

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS C:\Users\user> & C:/Users/user/AppData/Local/Programs/Python/Python310/python.exe c:/Users/user/OneDrive/Desktop/myapp.py
Please enter the verification code you get following this link:
('https://www.upwork.com/ab/account-security/oauth2/authorize?response_type=code&client_id=XXXXXXXXXXXXXXXXXXX&redirect_uri=+&state=XXXXXXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXXXXXXX')

> https://uw.user.com/?code=XXXXXXXXXXXXXXXXXXX&state=XXXXXXXXXXXXXXXXXXX
Retrieving keys.... 
Traceback (most recent call last):

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\Users\user\OneDrive\Desktop\myapp.py", line 33, in <module>
    client = get_desktop_client()
  File "c:\Users\user\OneDrive\Desktop\myapp.py", line 23, in get_desktop_client
    access_token, access_token_secret = client.get_access_token(verifier)
ValueError: too many values to unpack (expected 2)
PS C:\Users\user>

prevents u from doing this:

"""Assign access_token and access_token_secret if they are known config = upwork.Config({\ 'consumer_key': 'xxxxxxxxxxx',\ 'consumer_secret': 'xxxxxxxxxxx',\ 'access_token': 'xxxxxxxxxxx',\ 'access_token_secret': 'xxxxxxxxxxx'}) """

when in real world it works like this:
        "client_id": "xxxxxx",
        "client_secret": "xxxxxxx",

and not like this:


  'consumer_key': 'xxxxxxxxxxx',\
  'consumer_secret': 'xxxxxxxxxxx',\

original example:
https://raw.githubusercontent.com/upwork/python-upwork/master/example/myapp.py

from python-upwork.

 avatar commented on August 12, 2024

upd. resolved by using only : python-upwork-oauth2==3.0.4
so u can't have both like this:

python-upwork==2.1.0
python-upwork-oauth2==3.0.4

use python -m pip install python-upwork-oauth2
so u will be shure u installing module for interpreter u are currently using.
https://github.com/upwork/python-upwork-oauth2
others are outdated and should be removed i guess, so ppl wont be frustrated.

from python-upwork.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.