[issue12020] [doc] Attribute error with flush on stdout,stderr

2021-11-26 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: Attribute error with flush on stdout,stderr -> [doc] Attribute error with flush on stdout,stderr versions: +Python 3.11 -Python 3.4, Python 3.5 ___ Python tracker <https://bugs.pyth

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-12 Thread Irit Katriel
Irit Katriel added the comment: Thank you Erlend! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-12 Thread miss-islington
miss-islington added the comment: New changeset 6c190b5ae5887d592bc8915148440a63da8b7cdd by Erlend Egeberg Aasland in branch '3.9': [3.9] bpo-28528: Fix pdb.checkline() attribute error when 'curframe' is None (GH-25438) (GH-26053) https://github.com/python/cpython/commit

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-12 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Yes, test.os_helper was introduced in 3.10. I've manually cherry-picked 8563a7052ccd98e6a381d361664ce567afd5eb6e to 3.9 (GH-26053). -- ___ Python tracker

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-12 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +24693 pull_request: https://github.com/python/cpython/pull/26053 ___ Python tracker ___

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-11 Thread Irit Katriel
Irit Katriel added the comment: The 3.9 backport failed because of test failures like: == ERROR: test_checkline_is_not_executable (test.test_pdb.ChecklineTests)

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-11 Thread Irit Katriel
Irit Katriel added the comment: New changeset c90ed8e2e79ebd64f72c621b5a2ab06ec4c7210c by Miss Islington (bot) in branch '3.10': bpo-28528: Fix pdb.checkline() attribute error when 'curframe' is None. (GH-25438) (#26050) https://github.com/python/cpython/commit

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +24691 pull_request: https://github.com/python/cpython/pull/26051 ___ Python tracker ___

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +24690 pull_request: https://github.com/python/cpython/pull/26050 ___ Python tracker

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-11 Thread Irit Katriel
Change by Irit Katriel : -- title: Pdb.checkline() attribute error when 'curframe' is missing -> Pdb.checkline() attribute error when 'curframe' is None ___ Python tracker <https://bugs.python.org/issu

[issue28528] Pdb.checkline() attribute error when 'curframe' is missing

2021-05-11 Thread Irit Katriel
Change by Irit Katriel : -- title: Pdb.checkline() -> Pdb.checkline() attribute error when 'curframe' is missing ___ Python tracker <https://bugs.python.org/issu

[issue41267] Attribute error: Pandas module doesn't have 'Plotting' attribute

2020-07-10 Thread Eric V. Smith
Eric V. Smith added the comment: This bug tracker is for reporting bugs in python, not for getting help using python. I suggest asking for help on the python-list mailing list: https://mail.python.org/mailman/listinfo/python-list Or, since this sounds like you're having problems with

[issue41267] Attribute error: Pandas module doesn't have 'Plotting' attribute

2020-07-10 Thread owais
where all scripts are present. -- components: Windows files: Error.zip messages: 373461 nosy: owais.ali, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Attribute error: Pandas module doesn't have 'Plotting' attribute type: performance versio

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2019-12-14 Thread Géry
Géry added the comment: @ncoghlan > Reviewing the discussion, I assume this was left open to cover reordering the > __aenter__ and __aexit__ checks for async with, but that can just as easily > be handled as a separate issue (which would also be clearer at the NEWS > level). Here it is:

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2019-12-14 Thread Géry
Change by Géry : -- pull_requests: +17081 pull_request: https://github.com/python/cpython/pull/17609 ___ Python tracker ___ ___

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2019-12-14 Thread Géry
Change by Géry : -- pull_requests: -17079 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2019-12-14 Thread Géry
Change by Géry : -- pull_requests: +17079 pull_request: https://github.com/python/cpython/pull/17609 ___ Python tracker ___ ___

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2019-12-13 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12020] Attribute error with flush on stdout,stderr

2019-03-15 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Attribute error for NoneType

2017-09-18 Thread kimvais
Hi, A common source of confusion for newbies is the `AttributeError: NoneType has no attribute ...` Also, one of my pet peeves for violating EAFP is the common `if something is not None:` ... Both of these could be "fixed" by having a new exception (that subclasses AttributeError) e.g.

[issue31266] attribute error

2017-08-23 Thread emin mamedov
emin mamedov added the comment: Thank you Peter, problem has fixed. I think, python interpreter must understand if a "temp1.py" will start in same directory with file "re.py", this is not a native module for python and interpreter can ignore re.py from user directory and etc. --

[issue31266] attribute error

2017-08-23 Thread Peter Otten
Peter Otten added the comment: You have probably written your own re.py file which shadows the one in the standard library. Once you remove or rename your re.py the error should go away. -- nosy: +peter.otten ___ Python tracker

[issue31266] attribute error

2017-08-23 Thread emin mamedov
re' has no attribute 'IGNORECASE' -- components: Extension Modules files: temp1.py messages: 300763 nosy: emin mamedov priority: normal severity: normal status: open title: attribute error type: crash versions: Python 3.6 Added file: http://bugs.python.org/file47095/temp1.py ___

[issue30551] Attribute Error

2017-06-02 Thread Mahira
Mahira added the comment: hey issue Cleared -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30551] Attribute Error

2017-06-02 Thread Mahira
int(70,70)) r.draw(win) line=Line(Point(20,30),Point(180,199)) line.draw(win) oval=Oval(Point(20,150),Point(180,199)) oval.draw(win) -- messages: 295004 nosy: Mahira priority: normal severity: normal status: open title: Attribute Error type: compile error versions: Python 3.6 __

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2017-04-04 Thread Nick Coghlan
Nick Coghlan added the comment: Reviewing the discussion, I assume this was left open to cover reordering the __aenter__ and __aexit__ checks for async with, but that can just as easily be handled as a separate issue (which would also be clearer at the NEWS level). -- stage: patch

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2017-04-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can this be closed now? -- ___ Python tracker ___ ___ Python-bugs-list

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2017-04-01 Thread Martin Panter
Changes by Martin Panter : -- nosy: -martin.panter ___ Python tracker ___ ___

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2017-03-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: -1060 ___ Python tracker ___

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2017-03-31 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +1060 ___ Python tracker ___ ___

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset e11df6aa5bf1 by Raymond Hettinger in branch '3.6': Issue #27100: Silence deprecation warning in Lib/test/test_with.py https://hg.python.org/cpython/rev/e11df6aa5bf1 -- ___ Python tracker

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Since the patch is simple and fixes a regression introduced > just before releasing beta 4, I'm fine with fixing it. We are > trying to support tests warnings-free. Some buildbots can run > tests with -We. +1 --

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, how I missed this? I usually run tests with -Wa. Since the patch is simple and fixes a regression introduced just before releasing beta 4, I'm fine with fixing it. We are trying to support tests warnings-free. Some buildbots can run tests with -We.

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-23 Thread Martin Panter
Martin Panter added the comment: The tests changes also produce a DeprecationWarning: == ERROR: testEnterAttributeError1 (test.test_with.FailureTestCase) --

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Yuri, do you want to do the same for async-with? -- assignee: rhettinger -> yselivanov priority: release blocker -> normal ___ Python tracker

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 749c5d6c4ba5 by Raymond Hettinger in branch '3.6': Issue #27100: Fix ref leak https://hg.python.org/cpython/rev/749c5d6c4ba5 -- ___ Python tracker

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch LGTM. -- assignee: serhiy.storchaka -> rhettinger ___ Python tracker ___

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Serhiy, do you care to double check this patch? Martin, I'll leave the async_with for Yuri to fix-up. I believe that is his code, so he should do the honors. -- assignee: rhettinger -> serhiy.storchaka nosy: +serhiy.storchaka, yselivanov

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file45604/fix_with_refleak.diff ___ Python tracker ___

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg281495 ___ Python tracker ___

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Martin, do you want to make a patch? -- ___ Python tracker ___ ___

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- priority: normal -> release blocker ___ Python tracker ___

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-22 Thread Martin Panter
Martin Panter added the comment: Hmm, it seems I already discovered this leak six months ago: https://bugs.python.org/review/27100 -- ___ Python tracker

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-22 Thread Martin Panter
Martin Panter added the comment: https://mail.python.org/pipermail/python-checkins/2016-November/147171.html test_collections leaked [0, 0, 7] memory blocks, sum=7 test_contextlib leaked [38, 38, 38] references, sum=114 test_contextlib leaked [13, 12, 12] memory blocks, sum=37 test_descr leaked

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the patch Jonathan. Nick, thanks for chiming in. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3aafb232f2db by Raymond Hettinger in branch '3.6': Issue #27100: With statement reports missing __enter__ before __exit__. (Contributed by Jonathan Ellington.) https://hg.python.org/cpython/rev/3aafb232f2db -- nosy: +python-dev

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-09-29 Thread Nick Coghlan
Nick Coghlan added the comment: Due to the expected semantics of AttributeError being relatively precise, changing to a protocol check rather than just changing the order we look up the protocol attributes would also involving changing from AttributeError to TypeError. Since that's a

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-09-28 Thread Spencer Brown
Spencer Brown added the comment: Alternatively, SETUP_WITH could additionally check for the other method, and raise an AttributeError with a custom message mentioning both methods. -- nosy: +Spencer Brown ___ Python tracker

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-09-28 Thread Ned Deily
Changes by Ned Deily : -- stage: -> patch review versions: +Python 3.6 ___ Python tracker ___

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-09-28 Thread Nick Coghlan
Nick Coghlan added the comment: +1 for 3.6 from me - as you say, this is fixing a usability bug in the error handling rather than being a new feature. -- ___ Python tracker

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-09-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I don't see any problem with switching the lookup order now, > and I agree that should be less confusing, Thanks Nick. I concur as well and will apply this. Would it be reasonable to apply this to 3.6? IMO, it isn't a new feature, it is more of a

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-09-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-05-24 Thread Nick Coghlan
Nick Coghlan added the comment: As Jonathan notes, the cause for confusion here is that we currently retrieve the attributes in the opposite order from the way we execute them, prompting the "Why is it looking for __exit__ first?", "Oh, __enter__ must be optional, so it didn't care that it

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-05-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't completely understand. If you get an AttributeError for __enter__, will you think only an __enter__ is required? -- nosy: +benjamin.peterson ___ Python tracker

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-05-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Nick, I've seen the come-up several times with people learning about context managers. The current error message seems cause confusion because it checks for __exit__ before __enter__, implying that the __enter__ is optional which it isn't. Do you have

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-05-23 Thread Xiang Zhang
Xiang Zhang added the comment: This seems to be designed. From PEP343 it tells clearly: If either of the relevant methods are not found as expected, the interpreter will raise AttributeError, in the order that they are tried (__exit__, __enter__). But currently I don't find out

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-05-23 Thread Jonathan Ellington
call last): File "", line 1, in AttributeError: A instance has no attribute '__exit__' Knowing that the 'with' statement should first execute __enter__, this is unexpected. The patch ensures the attribute error refers to __enter__() when both methods are undefined. -- compon

Re: sqlite 3 attribute error __exit__

2016-05-15 Thread Sayth Renshaw
> > As you've written it, the statement declares your intent to enter both > ‘conn’ and ‘conn.cursor()’ as context managers. > > > > To “enter a context manager” entails calling the ‘__enter__’ method on > the context

Re: sqlite 3 attribute error __exit__

2016-05-15 Thread Sayth Renshaw
On Monday, 16 May 2016 12:45:26 UTC+10, DFS wrote: > On 5/15/2016 10:21 PM, Sayth Renshaw wrote: > > Hi > > > > I have a file and want to create the sqlite3 db. Using with however i > > receive an attribute error and it causes an exit. > > > > The relevant

Re: sqlite 3 attribute error __exit__

2016-05-15 Thread Ben Finney
Sayth Renshaw writes: > with conn, conn.cursor() as cur: What are you expecting this ‘with’ statement to do? As you've written it, the statement declares your intent to enter both ‘conn’ and ‘conn.cursor()’ as context managers.

sqlite 3 attribute error __exit__

2016-05-15 Thread Sayth Renshaw
Hi I have a file and want to create the sqlite3 db. Using with however i receive an attribute error and it causes an exit. The relevant section of the file is: import sqlite3 conn = sqlite3.connect("trial.db") with conn, conn.cursor() as cur: # First, create tables. c

[issue25618] gdk attribute error

2015-11-13 Thread mrudula
to 3.x conversion tool) messages: 254608 nosy: mrudula priority: normal severity: normal status: open title: gdk attribute error type: compile error versions: Python 3.4 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue25618] gdk attribute error

2015-11-13 Thread R. David Murray
R. David Murray added the comment: Your report does not indicate a bug in python or its standard library, which is what this tracker is for. You are more likely to find help with your issues on the python-list mailing list. -- nosy: +r.david.murray resolution: -> third party stage:

[issue12020] Attribute error with flush on stdout,stderr

2015-06-01 Thread Brandon Milam
Brandon Milam added the comment: I've been looking over the issue and the error is just raised by the stdout change not the stderr change (when the stdout line is commented out in the setAutoFlush function no error is raised). The flush method doesn't seem to be required as Serhiy pointed out

[issue12020] Attribute error with flush on stdout,stderr

2015-06-01 Thread Martin Panter
Martin Panter added the comment: I wouldn’t expect to see a message for stderr because there is nowhere else to send the message. However with my patch for Issue 5319, at least we get a non-zero exit status. Brandon: I agree this should be under sys.stdin/out/err; I wasn’t saying to put it

[issue12020] Attribute error with flush on stdout,stderr

2015-05-19 Thread Martin Panter
Martin Panter added the comment: The documentation already says that “stdout” and friends are meant to be text files, and that they may be replaced with file-like objects like StringIO. Perhaps the documentation could be more explicit about what text file API is required internally (either

Re: Attribute error

2015-01-18 Thread Rustom Mody
On Monday, January 19, 2015 at 5:02:01 AM UTC+5:30, Steven D'Aprano wrote: Mahendra Prajapati wrote: Hello, I'm facing this problem with python class, while practising the python programming language.It creates an attribute error. I use windows 7 OS. i don't why.I just need to know why

Re: Attribute error

2015-01-18 Thread Denis McMahon
On Sun, 18 Jan 2015 20:50:49 +, Mahendra Prajapati wrote: Hello, I'm facing this problem with python class, while practising the python programming language.It creates an attribute error. I use windows 7 OS. i don't why.I just need to know why it gives such an error.please let me know

Re: Attribute error

2015-01-18 Thread Steven D'Aprano
Mahendra Prajapati wrote: Hello, I'm facing this problem with python class, while practising the python programming language.It creates an attribute error. I use windows 7 OS. i don't why.I just need to know why it gives such an error.please let me know. Regards An attribute error is a bug

Attribute error

2015-01-18 Thread Mahendra Prajapati
Hello, I'm facing this problem with python class, while practising the python programming language.It creates an attribute error. I use windows 7 OS. i don't why.I just need to know why it gives such an error.please let me know. Regards -- https://mail.python.org/mailman/listinfo/python-list

Re: Attribute error

2015-01-18 Thread Chris Angelico
On Mon, Jan 19, 2015 at 7:50 AM, Mahendra Prajapati prajapatimahen...@ymail.com wrote: I'm facing this problem with python class, while practising the python programming language.It creates an attribute error. I use windows 7 OS. i don't why. I just need to know why it gives such an error

[issue992389] attribute error due to circular import

2014-11-13 Thread Nick Coghlan
Nick Coghlan added the comment: Belatedly agreeing with PJE on this one. If concerns around circular imports continue to be raised in a post Python 3.5 world (with the issue 17636 change), then we can look at revisiting this again, but in the meantime, lets just go with the sys.modules

[issue992389] attribute error due to circular import

2014-11-13 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- superseder: - Modify IMPORT_FROM to fallback on sys.modules ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue992389 ___

[issue12020] Attribute error with flush on stdout,stderr

2014-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since 29ba6c399090 stdout and stderr flush upon exit. But any errors on flushing were swallowed. Since 4ca497f4819c (issue5319) an error is printed if stdout flushing fails. FlushFile doesn't provide all methods and attributes of io.TextIOBase. But it is

[issue12020] Attribute error with flush on stdout,stderr

2014-07-15 Thread Mark Lawrence
Mark Lawrence added the comment: With 3.4.1 and similarly with 3.5.0a0 I get Testing python 3.4 C:\python34\python.exe: can't open file 'attributeError.py': [Errno 2] No such file or directory Traceback (most recent call last): File C:\Users\Mark\MyPython\mytest.py, line 34, in module

Re: Can't figure out 'instance has no attribute' error

2014-05-18 Thread varun7rs
On Sunday, 18 May 2014 01:56:42 UTC+2, varu...@gmail.com wrote: Hello Friends, I am working on this code but I kind of get the same error over and over again. Could any of you help me fix this part of the error? File RW1: class PHY_NETWORK: def __init__(self, nodes,

Re: Can't figure out 'instance has no attribute' error

2014-05-18 Thread Chris Angelico
On Mon, May 19, 2014 at 5:02 AM, varun...@gmail.com wrote: Thank you very much Ned, Rodri and Gary. I changed the settings of gedit text editor as mentioned in the Zed Shaw tutorial. I think this is causing me the problem. I'll follow your advice. I find that there are better editors than

Can't figure out 'instance has no attribute' error

2014-05-17 Thread varun7rs
Hello Friends, I am working on this code but I kind of get the same error over and over again. Could any of you help me fix this part of the error? File RW1: class PHY_NETWORK: def __init__(self, nodes, edges): self.nodes = nodes self.edges = edges def

Re: Can't figure out 'instance has no attribute' error

2014-05-17 Thread Ned Batchelder
On 5/17/14 7:56 PM, varun...@gmail.com wrote: Hello Friends, I am working on this code but I kind of get the same error over and over again. Could any of you help me fix this part of the error? File RW1: class PHY_NETWORK: def __init__(self, nodes, edges): self.nodes = nodes

Re: Can't figure out 'instance has no attribute' error

2014-05-17 Thread Rhodri James
On Sun, 18 May 2014 00:56:42 +0100, varun...@gmail.com wrote: Hello Friends, I am working on this code but I kind of get the same error over and over again. Could any of you help me fix this part of the error? Shuffling your post around to make an explanation easier, the traceback is:

Re: Can't figure out 'instance has no attribute' error

2014-05-17 Thread Gary Herron
On 05/17/2014 04:56 PM, varun...@gmail.com wrote: Hello Friends, I am working on this code but I kind of get the same error over and over again. Could any of you help me fix this part of the error? It's an indentation error: In the following the three function defs for __init__, addNode

Attribute error while executing python script

2014-04-16 Thread ali hanif
Hi i am a student and working on GNU..I have a python code which i want to run in GNU radio companion but i am unable to search for the right block to execute that code...can anyone help me with that??When I execute the same python code(not in GNU), I get the following error: AttributeError:

Re: Attribute error while executing python script

2014-04-16 Thread Chris Angelico
On Wed, Apr 16, 2014 at 5:45 PM, ali hanif alihanif...@gmail.com wrote: Hi i am a student and working on GNU..I have a python code which i want to run in GNU radio companion but i am unable to search for the right block to execute that code...can anyone help me with that??When I execute the

[issue992389] attribute error due to circular import

2013-12-17 Thread Nick Coghlan
Nick Coghlan added the comment: I'm reopening this, since PEP 451 opens up new options for dealing with it (at least for loaders that export the PEP 451 APIs rather than only the legacy loader API, which now includes all the standard loaders other than the ones for builtins and extension

[issue992389] attribute error due to circular import

2013-12-17 Thread PJ Eby
PJ Eby added the comment: The new patch will have weird results in the case of a parent module that defines an attribute that's later replaced by an import, e.g. if foo/__init__.py defines a variable 'bar' that's a proxy for the foo.bar module. This is especially problematic if this proxy is

[issue18270] IDLE on OS X fails with Attribute Error if no initial shell and Tk out-of-date

2013-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5becf8b612ee by Ned Deily in branch '2.7': Issue #18270: Prevent possible IDLE AttributeError on OS X when no initial http://hg.python.org/cpython/rev/5becf8b612ee New changeset 016c64e66a9e by Ned Deily in branch '3.3': Issue #18270: Prevent

[issue18270] IDLE on OS X fails with Attribute Error if no initial shell and Tk out-of-date

2013-12-10 Thread Ned Deily
Ned Deily added the comment: Thanks for the patch, Terry. I've pushed a slightly modified version for release in 2.7.7, 3.3.4, and 3.4.0. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue18270] IDLE on OS X fails with Attribute Error if no initial shell and Tk out-of-date

2013-08-02 Thread Ned Deily
Ned Deily added the comment: Terry, your patch did not get attached. Do you still have it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18270 ___

[issue18270] IDLE on OS X fails with Attribute Error if no initial shell and Tk out-of-date

2013-08-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: No, but I recreated it from my description and attached it. But see next message. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file31135/18270-27.diff ___ Python tracker

[issue18270] IDLE on OS X fails with Attribute Error if no initial shell and Tk out-of-date

2013-08-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looking further at handling debug, startup, cmd, or script options. When any of these are set, enable_shell is also, so to reach here, shell must be true, so only the MAC test, the subject of this issue, needs protection. Smaller patch (fewer lines changed)

[issue18270] IDLE on OS X fails with Attribute Error if no initial shell and Tk out-of-date

2013-06-20 Thread Ned Deily
with a shell window. -- assignee: - ned.deily nosy: +ned.deily stage: - needs patch title: AttributeError: 'NoneType' object has no attribute 'interp' - IDLE on OS X fails with Attribute Error if no initial shell and Tk out-of-date versions: +Python 3.3, Python 3.4

[issue18270] IDLE on OS X fails with Attribute Error if no initial shell and Tk out-of-date

2013-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 2.7.5, the offending line is 1558, not 1560. It is clearer to me as shell.interp.runcommand(print('%s') % tkversionwarning) Amaury is correct about 1541, as seen in the if block itself, but I thing the shell test should be elevated to guard all the

[issue992389] attribute error due to circular import

2013-04-14 Thread Nick Coghlan
Nick Coghlan added the comment: The implementation of issue #17636 (making IMPORT_FROM fall back to sys.modules when appropriate) will make import x.y and from x import y equivalent for resolution purposes during import. That covers off the subset of circular references that we want to allow,

[issue992389] attribute error due to circular import

2012-11-14 Thread Richard Oudkerk
Richard Oudkerk added the comment: In Torsten's example from . import moduleX can be replaced with moduleX = importlib.import_module('.moduleX', __package__) (*) or moduleX = importlib.import_module('package.moduleX') If that is not pretty enough then perhaps the new

[issue992389] attribute error due to circular import

2012-03-07 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue992389 ___ ___

[issue992389] attribute error due to circular import

2011-10-19 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- stage: - needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue992389 ___

[issue992389] attribute error due to circular import

2011-10-16 Thread Nick Coghlan
to this problem: from . import a from package import submodule from module import a import module module.a -- title: attribute error after non-from import - attribute error due to circular import ___ Python tracker rep

[issue992389] attribute error due to circular import

2011-10-16 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue992389 ___ ___ Python-bugs-list

Attribute Error in xml.sax.saxutils.XMLGenerator on Arch Linux (64bit)

2011-06-29 Thread Andreas Hasenkopf
Hi there, after switching from Ubuntu to Arch Linux I noticed a disturbing problem in a Python script I wrote (see http://sourceforge.net/projects/emcdutilityprog/files/). Using Windows (Python 2.6) and Ubuntu 11.04 (Python 2.7) I did not experience any problems. Using Arch Linux (Python 2.7) I

[issue12020] Attribute error with flush on stdout,stderr

2011-05-06 Thread James Hutchison
: normal severity: normal status: open title: Attribute error with flush on stdout,stderr type: behavior versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12020

  1   2   >