Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add files via upload #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

danelige
Copy link

@danelige danelige commented Jan 5, 2019

Thank you for your work. Took your base but needed significant updating.

Updated to Python 3.7.0 and updated URLLIB library syntax. Optimally though all this should run off REQUESTS library nowadays... so thats the next step: http://docs.python-requests.org/en/latest/index.html

Added some Heroku specific files to create python environment.

Procfile
requirements
runtime

Added a short testing script to see that python connected to asana: asana_test.py

You could optionally integrate and build on the asana-python tool (pip asana install). See Asana API Quick Start guide.

Updated to Python 3.7.0 and updated URLLIB library syntax. Added some Heroku specific files to create python environment. You could optionally integrate and build on the asana-python tool (pip asana install). See Asana API Quick Start guide.
@a-bs
Copy link

a-bs commented May 1, 2019

Hi @danelige. Thanks for this update! You haven't added added the requirements.txt, what should I put in it? I'm having trouble deploying via Heroku dash.

@a-bs
Copy link

a-bs commented May 2, 2019

Does your code still work @danelige? This is the error it throws up when I run asana_reminders.py in Heroku:

File "asana_reminders.py", line 72, in data_for result = urllib.request.urlopen(request) File "/app/.heroku/python/lib/python3.7/urllib/request.py", line 222, in urlopen return opener.open(url, data, timeout) File "/app/.heroku/python/lib/python3.7/urllib/request.py", line 531, in open response = meth(req, response) File "/app/.heroku/python/lib/python3.7/urllib/request.py", line 641, in http_response 'http', request, response, code, msg, hdrs) File "/app/.heroku/python/lib/python3.7/urllib/request.py", line 569, in error return self._call_chain(*args) File "/app/.heroku/python/lib/python3.7/urllib/request.py", line 503, in _call_chain result = func(*args) File "/app/.heroku/python/lib/python3.7/urllib/request.py", line 649, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 401: Unauthorized

@danelige
Copy link
Author

danelige commented May 2, 2019 via email

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants