Comments (4)
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.
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.
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.
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)
- Milestones Order Not Correct HOT 9
- Multiple profiles in get_providers not working HOT 2
- SyntaxError: invalid syntax HOT 4
- Job search result not latest HOT 1
- Python3 is not supported HOT 2
- Error while instellation
- get_authorize_url() trouble HOT 3
- get_job_profile returns 401 HOT 4
- Upwork example code throws timeout and HOT 1
- Usage of .iteritems() doesn't support for python3 HOT 3
- ImportError: cannot import name 'auth' HOT 4
- Client get_access_token return None, None HOT 3
- get_by_freelancer_limited returns "Verification of signature failed" HOT 1
- Is it possible to remove the client response log? HOT 1
- How to defined the number of results to retrieve HOT 2
- client.epoint is modified by Gds class but not by Api
- Hourly jobs have budget 0 HOT 1
- Flyer/Poster Design
- Activities router get_list method doesn't allow pagination HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-upwork.