Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
pygobject
pygobject
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 239
    • Issues 239
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 10
    • Merge Requests 10
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GNOME
  • pygobjectpygobject
  • Issues
  • #260

Closed
Open
Opened Sep 15, 2018 by Dustin Spicuzza@virtuald

odd cairo.Context error

Installed PyGObject and friends on OSX via homebrew, got the following strange error:

Traceback (most recent call last):
  File "/usr/local/Cellar/exaile/4.0.0rc2/lib/exaile/xlgui/widgets/playback.py", line 434, in do_draw
    Gtk.ProgressBar.do_draw(self, context)
TypeError: Expected cairo.Context

Source code snip:


class PlaybackProgressBar(Gtk.ProgressBar):
    ...

class _SeekInternalProgressBar(PlaybackProgressBar):
    ...

    def do_draw(self, context):
        Gtk.ProgressBar.do_draw(self, context)

When I print out the context, it says:

<cairo.Context object at 0x118229a78 (CairoContext at 0x7fcb4883d000)>

Versions:

  • Python 2.7.15
  • py2cairo 1.17.1
  • pygobject 3.30.1
  • OSX 10.12.6

If you want to duplicate it, you should be able to do brew install exaile/exaile/exaile and just run exaile, and the error will show up.

This is from a brand new homebrew install. Any thoughts on what might be going wrong? Not changing the context or anything, just passing it straight through.

Edited Sep 16, 2018 by Christoph Reiter
Assignee
Assign to
3.30
Milestone
3.30
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/pygobject#260