Discussion:
Possible bug: Using futurize, code blows up around line 271 in main.py
Mark Richardson
2014-09-19 20:38:01 UTC
Permalink
Greetings all,

It's my first post, so if I'm breaking protocol, please forgive. Tried
running futurize on
some of my old python2 code and the futurizer blew up around line 271
with error:

NameError: name 'logger' is not defined

The original line starts with

logger.info('Output ...

and I think it should be

logging.info('Output ...

First off, I'm not sure if this is what the author intended and secondly,
if it is what the author intended, what is the method that I go about to see
that the bug gets corrected? I'm perfectly fine, with fixing my own copy
to get it to run, but it seems like I should generate a resolution to
the source
code so that the next guy/gal doesn't have to go down the same rabbit
hole. If there's a link to a rtfm page for these type of issues, I'm
more than
happy to read it and reapply my issue again.


Thanks,
Mark R.
Guido van Rossum
2014-09-22 16:25:15 UTC
Permalink
Hi Mark,

You probably want to file a bug report with the futurizer's project. Try
the issue tracker there (if I understand the project you're using):
https://github.com/PythonCharmers/python-future/issues

Thanks for reporting!
Post by Mark Richardson
Greetings all,
It's my first post, so if I'm breaking protocol, please forgive. Tried
running futurize on
some of my old python2 code and the futurizer blew up around line 271 with
NameError: name 'logger' is not defined
The original line starts with
logger.info('Output ...
and I think it should be
logging.info('Output ...
First off, I'm not sure if this is what the author intended and secondly,
if it is what the author intended, what is the method that I go about to see
that the bug gets corrected? I'm perfectly fine, with fixing my own copy
to get it to run, but it seems like I should generate a resolution to the
source
code so that the next guy/gal doesn't have to go down the same rabbit
hole. If there's a link to a rtfm page for these type of issues, I'm more
than
happy to read it and reapply my issue again.
Thanks,
Mark R.
_______________________________________________
Python-porting mailing list
https://mail.python.org/mailman/listinfo/python-porting
--
--Guido van Rossum (python.org/~guido)
Ed Schofield
2014-09-23 04:50:42 UTC
Permalink
Hi Mark,

Yes, thanks for your bug reports!

I have filed them as issues #101 and #102 at the URL Guido posted. They should now be fixed in v0.13.1 on PyPI.

Please let me know if you have any other questions. Good luck with your porting!

Cheers,
Ed
Post by Mark Richardson
Greetings all,
It's my first post, so if I'm breaking protocol, please forgive. Tried running futurize on
NameError: name 'logger' is not defined
The original line starts with
logger.info('Output ...
and I think it should be
logging.info('Output ...
First off, I'm not sure if this is what the author intended and secondly,
if it is what the author intended, what is the method that I go about to see
that the bug gets corrected? I'm perfectly fine, with fixing my own copy
to get it to run, but it seems like I should generate a resolution to the source
code so that the next guy/gal doesn't have to go down the same rabbit
hole. If there's a link to a rtfm page for these type of issues, I'm more than
happy to read it and reapply my issue again.
Thanks,
Mark R.
_______________________________________________
Python-porting mailing list
https://mail.python.org/mailman/listinfo/python-porting
--
Dr. Edward Schofield
Python Charmers
http://pythoncharmers.com

Loading...