Bug 866189 - [abrt] eclipse-pydev-2.6.0-1.fc17: pydev_runfiles_unittest.py:96:_reportErrors:AttributeError: '_ErrorHolder' object has no attribute '__pydev_pyfile__'
Summary: [abrt] eclipse-pydev-2.6.0-1.fc17: pydev_runfiles_unittest.py:96:_reportError...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: eclipse-pydev
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Andrew Ferrazzutti
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:87339a10ef988f3ba74d31509b9...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-14 14:50 UTC by Tadej Janež
Modified: 2013-08-12 18:03 UTC (History)
5 users (show)

Fixed In Version: eclipse-pydev-2.8.1-1.fc19
Clone Of:
Environment:
Last Closed: 2013-08-12 18:03:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: core_backtrace (1.82 KB, text/plain)
2012-10-14 14:50 UTC, Tadej Janež
no flags Details
Simple bug reproducer. (271 bytes, text/plain)
2013-06-25 14:13 UTC, Tadej Janež
no flags Details

Description Tadej Janež 2012-10-14 14:50:28 UTC
Version-Release number of selected component:
eclipse-pydev-2.6.0-1.fc17

Additional info:
libreport version: 2.0.13
abrt_version:   2.0.12
cmdline:        /usr/bin/python2.7 -u /usr/share/eclipse/dropins/pydev/eclipse/plugins/org.python.pydev_2.6.0.2012062818/pysrc/runfiles.py /home/tadej/Workspace/ERMRec/src/ERMRec/unit_testing/test.py --port 39768 --verbosity 0
kernel:         3.5.3-1.fc17.x86_64

backtrace:
:pydev_runfiles_unittest.py:96:_reportErrors:AttributeError: '_ErrorHolder' object has no attribute '__pydev_pyfile__'
:
:Traceback (most recent call last):
:  File "/usr/share/eclipse/dropins/pydev/eclipse/plugins/org.python.pydev_2.6.0.2012062818/pysrc/runfiles.py", line 163, in <module>
:    main()
:  File "/usr/share/eclipse/dropins/pydev/eclipse/plugins/org.python.pydev_2.6.0.2012062818/pysrc/runfiles.py", line 77, in main
:    pydev_runfiles.main(configuration)
:  File "/usr/share/eclipse/dropins/pydev/eclipse/plugins/org.python.pydev_2.6.0.2012062818/pysrc/pydev_runfiles.py", line 761, in main
:    PydevTestRunner(configuration).run_tests()
:  File "/usr/share/eclipse/dropins/pydev/eclipse/plugins/org.python.pydev_2.6.0.2012062818/pysrc/pydev_runfiles.py", line 747, in run_tests
:    runner.run(test_suite)
:  File "/usr/lib64/python2.7/unittest/runner.py", line 151, in run
:    test(result)
:  File "/usr/lib64/python2.7/unittest/suite.py", line 70, in __call__
:    return self.run(*args, **kwds)
:  File "/usr/lib64/python2.7/unittest/suite.py", line 108, in run
:    test(result)
:  File "/usr/lib64/python2.7/unittest/suite.py", line 70, in __call__
:    return self.run(*args, **kwds)
:  File "/usr/lib64/python2.7/unittest/suite.py", line 108, in run
:    test(result)
:  File "/usr/lib64/python2.7/unittest/suite.py", line 70, in __call__
:    return self.run(*args, **kwds)
:  File "/usr/lib64/python2.7/unittest/suite.py", line 100, in run
:    self._handleClassSetUp(test, result)
:  File "/usr/lib64/python2.7/unittest/suite.py", line 153, in _handleClassSetUp
:    self._addClassOrModuleLevelException(result, e, errorName)
:  File "/usr/lib64/python2.7/unittest/suite.py", line 198, in _addClassOrModuleLevelException
:    result.addError(error, sys.exc_info())
:  File "/usr/share/eclipse/dropins/pydev/eclipse/plugins/org.python.pydev_2.6.0.2012062818/pysrc/pydev_runfiles_unittest.py", line 112, in addError
:    self._reportErrors([self.errors[-1]], [], '', self.getTestName(test))
:  File "/usr/share/eclipse/dropins/pydev/eclipse/plugins/org.python.pydev_2.6.0.2012062818/pysrc/pydev_runfiles_unittest.py", line 96, in _reportErrors
:    'error', captured_output, error_contents, test.__pydev_pyfile__, test_name, diff_time)
:AttributeError: '_ErrorHolder' object has no attribute '__pydev_pyfile__'
:
:Local variables in innermost frame:
:captured_output: ''
:errors: [(<ErrorHolder description='setUpClass (ERMRec.unit_testing.test.TestTestResultsCompatibilityChecker)'>, 'Traceback (most recent call last):\n  File "/home/tadej/Workspace/ERMRec/src/ERMRec/unit_testing/test.py", line 53, in setUpClass\n    cls.addCleanup(remove_temp_folder)\nTypeError: unbound method addCleanup() must be called with TestTestResultsCompatibilityChecker instance as first argument (got function instance instead)\n')]
:sep: '\n======================================================================'
:self: <pydev_runfiles_unittest.PydevTestResult run=0 errors=1 failures=0>
:diff_time: ''
:error_contents: 'Traceback (most recent call last):\n  File "/home/tadej/Workspace/ERMRec/src/ERMRec/unit_testing/test.py", line 53, in setUpClass\n    cls.addCleanup(remove_temp_folder)\nTypeError: unbound method addCleanup() must be called with TestTestResultsCompatibilityChecker instance as first argument (got function instance instead)\n'
:s: 'Traceback (most recent call last):\n  File "/home/tadej/Workspace/ERMRec/src/ERMRec/unit_testing/test.py", line 53, in setUpClass\n    cls.addCleanup(remove_temp_folder)\nTypeError: unbound method addCleanup() must be called with TestTestResultsCompatibilityChecker instance as first argument (got function instance instead)\n'
:test_name: '<unable to get test name>'
:test: <ErrorHolder description='setUpClass (ERMRec.unit_testing.test.TestTestResultsCompatibilityChecker)'>
:failures: []

Comment 1 Tadej Janež 2012-10-14 14:50:32 UTC
Created attachment 626999 [details]
File: core_backtrace

Comment 2 Alexander Kurtakov 2012-12-18 19:49:16 UTC
Sami, please investigate.

Comment 3 Alexander Kurtakov 2013-06-25 12:59:10 UTC
Tadej, can you give us a reporter ?

Comment 4 Tadej Janež 2013-06-25 13:41:14 UTC
(In reply to Alexander Kurtakov from comment #3)
> Tadej, can you give us a reporter ?

Alexander, what do you mean by "reporter"?

Comment 5 Alexander Kurtakov 2013-06-25 13:45:57 UTC
Sorry, reproducer is what I ment.

Comment 6 Alexander Kurtakov 2013-06-25 13:46:29 UTC
Aka the test that we can run to see the problem.

Comment 7 Tadej Janež 2013-06-25 13:55:50 UTC
(In reply to Alexander Kurtakov from comment #6)
> Aka the test that we can run to see the problem.

Yes, this makes sense now :).

I can reproduce this, but it is quite a complicated Pydev project with some unpackaged external dependencies. I'll try to narrow it down to some minimal working example.

Comment 8 Tadej Janež 2013-06-25 14:13:50 UTC
Created attachment 765101 [details]
Simple bug reproducer.

Alexander, I managed to find a very simple reproducer.

If it is run with "Run As -> Python Run", it produces the following output:
E
======================================================================
ERROR: setUpClass (__main__.TestCaseCausingPydevError)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tadej/Workspace/ERMRec/src/ERMRec/unit_testing/test.py", line 7, in setUpClass
    raise ValueError("This is an INTENTIONAL value error.")
ValueError: This is an INTENTIONAL value error.

----------------------------------------------------------------------
Ran 0 tests in 0.001s

FAILED (errors=1)

However, if it is run with "Run As -> Python unit-test", it produces the same traceback as reported by this bug.

Comment 9 Fedora End Of Life 2013-07-03 19:19:22 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 10 Andrew Ferrazzutti 2013-07-25 15:23:00 UTC
Fixed, and merged in 799b7bf.

Comment 11 Andrew Ferrazzutti 2013-07-25 15:38:03 UTC
Confused upstream with fedora bug trackers; will be fixed with the next update. Reopening.

Comment 12 Tadej Janež 2013-07-25 17:23:57 UTC
(In reply to Andrew Ferrazzutti from comment #11)
> Confused upstream with fedora bug trackers; will be fixed with the next
> update. Reopening.

Great news! Thanks, Andrew.

Comment 13 Fedora Update System 2013-08-01 12:25:47 UTC
eclipse-pydev-2.8.1-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/eclipse-pydev-2.8.1-1.fc19

Comment 14 Fedora End Of Life 2013-08-01 16:48:25 UTC
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 15 Tadej Janež 2013-08-02 07:52:14 UTC
Reopening as per comment 13.

Comment 16 Fedora Update System 2013-08-02 22:06:59 UTC
Package eclipse-pydev-2.8.1-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing eclipse-pydev-2.8.1-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-14146/eclipse-pydev-2.8.1-1.fc19
then log in and leave karma (feedback).

Comment 17 Fedora Update System 2013-08-12 18:03:47 UTC
eclipse-pydev-2.8.1-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.