Bug 1347738

Summary: Crash due to variable naming conflict
Product: [Fedora] Fedora Reporter: Gwyn Ciesla <gwync>
Component: apxAssignee: Raphael Groner <projects.rg>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: projects.rg
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://github.com/projecthamster/apx/issues/12
Whiteboard:
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:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-09 18:19:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Screenshot post-patch none

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.