Comments (15)
https://github.com/martyzz1/heroku3.py/releases/tag/v3.2.0
from heroku3.py.
Released to pypi too
from heroku3.py.
This is a print statement, instead of print function.
from heroku3.py.
Hi Dan, I haven't tested this against Python 3 as yet, but I've pushed the following commit to master
0e98efb
from heroku3.py.
@martyzz1 I'm really sorry, in my rush to get the Heroku API working on Python 3 I read this as being a Python 3 compatible fork of the Heroku API library. I realise now I was completely wrong. Thanks anyway, much appreciated.
Feel free to close this issue.
from heroku3.py.
No worries, I'm not using this on a daily basis at the moment, but if
there's anything major that stands out, I could take a look to get it
python3 compatible...
I'm looking to build myself a sensible test suite as a first step...
On 16 November 2015 at 14:04, Dan Palmer [email protected] wrote:
@martyzz1 https://github.com/martyzz1 I'm really sorry, in my rush to
get the Heroku API working on Python 3 I read this as being a Python 3
compatible fork of the Heroku API library. I realise now I was completely
wrong. Thanks anyway, much appreciated.—
Reply to this email directly or view it on GitHub
#13 (comment).
from heroku3.py.
I got the same error message, too, and it's been a year since this issue was reported. When will heroku3
supports Python 3? Thanks for your efforts.
from heroku3.py.
Are you using latest pip or latest master?
from heroku3.py.
I just did a pip3 install heroku3
from heroku3.py.
try installing the latest version direct from github. I haven't made a new release to pip in a while - I lost my configs when I changed laptops a while back, so haven't spent the time making the new release to pip... But I think that particular error got fixed..
from heroku3.py.
In my Django project, I changed to git+git://github.com/martyzz1/heroku3.py
in the requirements.txt
, but still got the following error message:
Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"__main__", mod_spec)
File "/app/.heroku/python/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/app/createStats/stopWorker.py", line 1, in <module>
import heroku3
File "/app/.heroku/python/lib/python3.5/site-packages/heroku3/__init__.py", line 27, in <module>
from .core import from_key
File "/app/.heroku/python/lib/python3.5/site-packages/heroku3/core.py", line 10, in <module>
from .api import Heroku
File "/app/.heroku/python/lib/python3.5/site-packages/heroku3/api.py", line 11, in <module>
from .helpers import is_collection
File "/app/.heroku/python/lib/python3.5/site-packages/heroku3/helpers.py", line 12, in <module>
from dateutil.parser import parse as parse_datetime
File "/app/.heroku/python/lib/python3.5/site-packages/dateutil/parser.py", line 158
l.append("%s=%s" % (attr, `value`))
^
SyntaxError: invalid syntax
from heroku3.py.
According to this, I added another line python-dateutil==2.5.3
to requirements.txt
to avoid the Python2 packages. Well, errors kept coming as follows. It seems Python2 packages are automatically installed instead of Python3 ones. Why?
Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"__main__", mod_spec)
File "/app/.heroku/python/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/app/createStats/stopWorker.py", line 1, in <module>
import heroku3
File "/app/.heroku/python/lib/python3.5/site-packages/heroku3/__init__.py", line 27, in <module>
from .core import from_key
File "/app/.heroku/python/lib/python3.5/site-packages/heroku3/core.py", line 10, in <module>
from .api import Heroku
File "/app/.heroku/python/lib/python3.5/site-packages/heroku3/api.py", line 13, in <module>
from .models.app import App
File "/app/.heroku/python/lib/python3.5/site-packages/heroku3/models/app.py", line 2, in <module>
from ..rendezvous import Rendezvous
File "/app/.heroku/python/lib/python3.5/site-packages/heroku3/rendezvous.py", line 6, in <module>
from urlparse import urlparse, uses_netloc
ImportError: No module named 'urlparse'
from heroku3.py.
you could try forking this repo and make a python 3 branch. Edit the requirements.txt
https://github.com/martyzz1/heroku3.py/blob/master/requirements.txt
and update to the python3 compatible libs... And try that..
I don't use python3 at the moment, so don't have any time to do this. But if you want to poke around for a bit, I'd happily accept a PR.
from heroku3.py.
Porting from Python2 to Python3 is done and a PR is issued. However, I have no idea how to make git+git://github.com/yltang52/heroku3.py
in requirements.txt
to install certain versions of requests
and python-dateutil
. Currently, I have to add two more lines in the requirements.txt
after git+git://github.com/yltang52/heroku3.py
just to prevent from installing Python2 packages of requests
and python-dateutil
.:
git+git://github.com/yltang52/heroku3.py
requests>=2.11.1
python-dateutil>=2.6.0
from heroku3.py.
Think you can update the heroku3/requirements.txt to the updated
versions... but will then need to test it works ok on 2 as well :)
On 8 November 2016 at 20:54, Sugar Tang [email protected] wrote:
Porting from Python2 to Python3 is done and a PR is issued. However, I
have no idea how to make git+git://github.com/yltang52/heroku3.py in
requirements.txt to install certain versions of requests and
python-dateutil. Currently, I have to add two more lines in the
requirements.txt after git+git://github.com/yltang52/heroku3.py just to
prevent from installing Python2 packages of requests and python-dateutil.:git+git://github.com/yltang52/heroku3.py
requests>=2.11.1
python-dateutil>=2.6.0—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#13 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABhvS4qq3NQKrBC6Ga0urE42SROagdtiks5q8OGFgaJpZM4GijXj
.
from heroku3.py.
Related Issues (20)
- Support for setting app limits (boot_timeout specifically)
- Timeout Cannot Be Boolean HOT 1
- Heroku Account HOT 2
- Is it possible to create SSL endpoints with this? HOT 7
- How to get dyno hour usage? HOT 2
- Domain Create endpoint API has changed HOT 2
- requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.heroku.com/apps HOT 3
- is_authenticated is False but key works fine HOT 1
- release Python wheel HOT 1
- Allow http connections HOT 2
- Problems calling run_command_on_app HOT 3
- app.process_formation() reporting empty KeyedListResource
- Exception with Python2.7.15 HOT 2
- simplejson dependency is pinned to version 3.3.1 HOT 8
- Dyno restart doesn't work HOT 1
- no support for pg? HOT 3
- How to disable dynos on my app?
- How do i turn on a worker Dyno?
- Pypi release? HOT 2
- run dyno 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 heroku3.py.