Giter Club home page Giter Club logo

Comments (15)

martyzz1 avatar martyzz1 commented on July 17, 2024 1

https://github.com/martyzz1/heroku3.py/releases/tag/v3.2.0

from heroku3.py.

martyzz1 avatar martyzz1 commented on July 17, 2024 1

Released to pypi too

from heroku3.py.

danpalmer avatar danpalmer commented on July 17, 2024

This is a print statement, instead of print function.

from heroku3.py.

martyzz1 avatar martyzz1 commented on July 17, 2024

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.

danpalmer avatar danpalmer commented on July 17, 2024

@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.

martyzz1 avatar martyzz1 commented on July 17, 2024

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.

yltang52 avatar yltang52 commented on July 17, 2024

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.

martyzz1 avatar martyzz1 commented on July 17, 2024

Are you using latest pip or latest master?

from heroku3.py.

yltang52 avatar yltang52 commented on July 17, 2024

I just did a pip3 install heroku3

from heroku3.py.

martyzz1 avatar martyzz1 commented on July 17, 2024

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.

yltang52 avatar yltang52 commented on July 17, 2024

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.

yltang52 avatar yltang52 commented on July 17, 2024

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.

martyzz1 avatar martyzz1 commented on July 17, 2024

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.

yltang52 avatar yltang52 commented on July 17, 2024

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.

martyzz1 avatar martyzz1 commented on July 17, 2024

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)

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.