Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1347738 - Crash due to variable naming conflict
Summary: Crash due to variable naming conflict
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: apx
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Raphael Groner
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/projecthamster/apx...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-17 13:48 UTC by Gwyn Ciesla
Modified: 2016-08-09 21:23 UTC (History)
1 user (show)

Fixed In Version: apx-0.1-8.fc24 apx-0.1-12.fc24 apx-0.1-12.fc23
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-09 18:19:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screenshot post-patch (8.00 KB, image/png)
2016-07-10 21:40 UTC, Gwyn Ciesla
no flags Details

Description Gwyn Ciesla 2016-06-17 13:48:34 UTC
Description of problem:

Crashes at launch.

Version-Release number of selected component (if applicable):

apx-0.1-7.fc24

How reproducible:

Start apx

Actual results:

  File "/usr/bin/apx", line 26, in <module>
    from apx.lib import graphics
  File "/usr/lib/python3.5/site-packages/apx/lib/graphics.py", line 185, in <module>
    class Graphics(object):
ValueError: 'colors' in __slots__ conflicts with class variable


Expected results:

Run.

Comment 1 Raphael Groner 2016-06-17 14:28:22 UTC
Thanks for your report.

I can reproduce in Fedora 24 with Python 3.5.1 but not in Fedora 23 with Python 3.5.7, so I guess a bug with Python 3.5 somehow.

Forwarding to upstream.

Comment 2 Raphael Groner 2016-06-17 14:31:19 UTC
err, Fedora 23 with Python 3.4.3

Comment 3 Raphael Groner 2016-07-09 11:27:04 UTC
Reproducible with Python 3.4, too. But no issue in Python 2.

Comment 4 Fedora Update System 2016-07-09 17:11:04 UTC
apx-0.1-8.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6d3824b84c

Comment 5 Gwyn Ciesla 2016-07-10 21:40:00 UTC
Created attachment 1178157 [details]
Screenshot post-patch

This is what I see now.

Comment 6 Raphael Groner 2016-07-11 06:48:29 UTC
(In reply to Jon Ciesla from comment #5)
> Created attachment 1178157 [details]
> Screenshot post-patch
> 
> This is what I see now.

What desktop theme do you use? What desktop environment? I get that low contrast with a bright window background set by desktop theme in LXQt. No issue with Cinnamon and Plasma.

Comment 7 Gwyn Ciesla 2016-07-11 13:23:27 UTC
Gnome 3, default theme.

Comment 8 Raphael Groner 2016-07-11 14:48:07 UTC
Can you try with another theme? Please also try to reproduce in Fedora 23, we have another apx there built with python2 instead of python3 as in F24.

Comment 9 Gwyn Ciesla 2016-07-11 14:51:21 UTC
Running with global dark is better, but after I reach an opposite wall I get this over and over at the terminal:

Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/apx/lib/graphics.py", line 1968, in do_draw
    self.tweener.update(delta)
  File "/usr/lib/python3.5/site-packages/apx/lib/pytweener.py", line 102, in update
    done = tween.update(delta_seconds)
  File "/usr/lib/python3.5/site-packages/apx/lib/pytweener.py", line 171, in update
    res = tweenable.update(fraction)
  File "/usr/lib/python3.5/site-packages/apx/lib/pytweener.py", line 212, in color_update
    return "#%02x%02x%02x" % (val[0], val[1], val[2])
TypeError: %x format: an integer is required, not float


I don't have access to f23 at the moment.

Comment 10 Raphael Groner 2016-07-11 15:46:35 UTC
It's becoming offtopic for the original crash report. I am quite sure the issues with background and console warnings do not have anything to do with my python3 patch.
Please report all that to upstream.

Comment 11 Raphael Groner 2016-07-11 16:10:08 UTC
Please try with a scratch build for python2.
http://koji.fedoraproject.org/koji/taskinfo?taskID=14860816

Comment 12 Fedora Update System 2016-07-12 03:59:45 UTC
apx-0.1-8.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-6d3824b84c

Comment 13 Gwyn Ciesla 2016-07-13 14:30:40 UTC
Same color problem.

Comment 14 Raphael Groner 2016-07-13 15:58:21 UTC
Then it's an issue of/with GNOME and has nothing to do with the build or update.

Comment 15 Fedora Update System 2016-07-20 17:49:45 UTC
apx-0.1-8.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2016-07-29 17:19:26 UTC
apx-0.1-11.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-715fa56f4e

Comment 17 Fedora Update System 2016-07-29 17:19:31 UTC
apx-0.1-11.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-94928def06

Comment 18 Fedora Update System 2016-07-30 19:26:35 UTC
apx-0.1-11.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-715fa56f4e

Comment 19 Fedora Update System 2016-07-30 19:26:54 UTC
apx-0.1-11.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-94928def06

Comment 20 Fedora Update System 2016-07-31 11:08:57 UTC
apx-0.1-12.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-94928def06

Comment 21 Fedora Update System 2016-07-31 11:10:14 UTC
apx-0.1-12.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-715fa56f4e

Comment 22 Fedora Update System 2016-08-01 20:54:40 UTC
apx-0.1-12.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-715fa56f4e

Comment 23 Fedora Update System 2016-08-01 20:58:04 UTC
apx-0.1-12.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-94928def06

Comment 24 Fedora Update System 2016-08-09 18:19:42 UTC
apx-0.1-12.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 25 Fedora Update System 2016-08-09 21:23:38 UTC
apx-0.1-12.fc23 has been pushed to the Fedora 23 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.