OS 10.6.2: crash Xlib: extension "RANDR" missing on display

Bug #526197 reported by Joe VanAndel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DreamPie
Fix Released
Undecided
Unassigned

Bug Description

I installed dreampie 1.0 on Mac OS X 10.6.2, with Python 2.6, PyGTK and PyGtkSourceView from MacPorts.
I'm using X11 2.3.4, as shipped by Apple.

When I try to run dreampie, it reports:
Xlib: extension "RANDR" missing on display

Revision history for this message
Noam Yorav-Raphael (noamraph) wrote :

Thanks for the report!

Can you also ask about this on other forums, and report back? Since I don't have a Mac, I don't know how to help you.

Changed in dreampie:
status: New → Incomplete
Revision history for this message
Joe VanAndel (joe-vanandel) wrote : Re: [Bug 526197] Re: OS 10.6.2: crash Xlib: extension "RANDR" missing on display

Turns out this message is only a warning. The real issue is:
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/dreampie",
line 4, <module>()
    from dreampielib.gui import main
    main()
  variables: {'main': ('local', <function main at 0x102554398>)}
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/dreampielib/gui/__init__.py",
line 972, main()
        gtk.widget_set_default_direction(gtk.TEXT_DIR_LTR)
        _dp = DreamPie(pyexec)
        gtk.main()
  variables: {'_dp': (None, None), 'pyexec': ('local',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python'),
'DreamPie': ('global', <class dreampielib.gui.DreamPie at
0x10252ff50>)}
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/dreampielib/gui/__init__.py",
line 143, __init__(self=DreamPie(path..."window_main"),
pyexec='/opt/local/L.../MacOS/Python')
            self.window_main.set_icon_from_file(
                path.join(data_dir, 'pixmaps', 'dreampie.png'))
  variables: {'path.join': ('global', <function join at 0x10029a758>),
'data_dir': ('global',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.6/share')}
GError: Couldn't recognize the image file format for file
'/opt/local/Library/Frameworks/Python.framework/Versions/2.6/share/pixmaps/dreampie.png'
========================================
Any idea what could be wrong with PyGtk?

On Tue, Feb 23, 2010 at 1:03 AM, Noam Yorav-Raphael <email address hidden> wrote:
> Thanks for the report!
>
> Can you also ask about this on other forums, and report back? Since I
> don't have a Mac, I don't know how to help you.
>
> --
> OS 10.6.2: crash Xlib:  extension "RANDR" missing on display
> https://bugs.launchpad.net/bugs/526197
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in DreamPie - The Python shell you've always dreamed about!: New
>
> Bug description:
> I installed dreampie 1.0 on Mac OS X 10.6.2, with  Python 2.6, PyGTK and PyGtkSourceView from MacPorts.
> I'm using X11 2.3.4, as shipped by Apple.
>
> When I try to run dreampie, it reports:
> Xlib:  extension "RANDR" missing on display
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/dreampie/+bug/526197/+subscribe
>

Revision history for this message
Noam Yorav-Raphael (noamraph) wrote :

It seems that GTK png support hasn't been installed.

How did you install GTK?

Revision history for this message
Joe VanAndel (joe-vanandel) wrote :

I installed GTK using Mac Ports. I don't see any option to enable PNG.

On Tue, Feb 23, 2010 at 11:40 PM, Noam Yorav-Raphael <email address hidden> wrote:
> It seems that GTK png support hasn't been installed.
>
> How did you install GTK?
>
> --
> OS 10.6.2: crash Xlib:  extension "RANDR" missing on display
> https://bugs.launchpad.net/bugs/526197
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in DreamPie - The Python shell you've always dreamed about!: Incomplete
>
> Bug description:
> I installed dreampie 1.0 on Mac OS X 10.6.2, with  Python 2.6, PyGTK and PyGtkSourceView from MacPorts.
> I'm using X11 2.3.4, as shipped by Apple.
>
> When I try to run dreampie, it reports:
> Xlib:  extension "RANDR" missing on display
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/dreampie/+bug/526197/+subscribe
>

Revision history for this message
Noam Yorav-Raphael (noamraph) wrote :

I'm sorry, right now there isn't much that I can do, since I don't have a Mac.
I hope you'll manage to fix it!

Noam

Revision history for this message
Joe VanAndel (joe-vanandel) wrote :

I'm still investigating with the mac ports email list. If I find
anything, I'll let you know.

On Wed, Feb 24, 2010 at 1:45 PM, Noam Yorav-Raphael <email address hidden> wrote:
> I'm sorry, right now there isn't much that I can do, since I don't have a Mac.
> I hope you'll manage to fix it!
>
> Noam
>
> --
> OS 10.6.2: crash Xlib:  extension "RANDR" missing on display
> https://bugs.launchpad.net/bugs/526197
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in DreamPie - The Python shell you've always dreamed about!: Incomplete
>
> Bug description:
> I installed dreampie 1.0 on Mac OS X 10.6.2, with  Python 2.6, PyGTK and PyGtkSourceView from MacPorts.
> I'm using X11 2.3.4, as shipped by Apple.
>
> When I try to run dreampie, it reports:
> Xlib:  extension "RANDR" missing on display
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/dreampie/+bug/526197/+subscribe
>

Revision history for this message
Joe VanAndel (joe-vanandel) wrote : fix for missing PNG support?

I'm trying to run dreampie, a new Python shell, on Snow Leopard, using
Python 2.6. I'm using Gtk 2.18.7_0.

When I start dreampie, it prints:

GError: Couldn't recognize the image file format for file
'/opt/local/Library/Frameworks/Python.framework/Versions/2.6/share/pixmaps/dreampie.png'

The fix appears to be:
setenv XDG_DATA_DIRS /opt/local/share

(found on http://bbs.archlinux.org/viewtopic.php?id=57468)

Revision history for this message
Noam Yorav-Raphael (noamraph) wrote : Re: [Bug 526197] Re: OS 10.6.2: crash Xlib: extension "RANDR" missing on display

Thanks!

Revision history for this message
Noam Yorav-Raphael (noamraph) wrote :

From what I read in the archlinux forum, it seems to be a problem with a MacPorts package which causes this environment variable to get the wrong value. This means that it is not a DreamPie bug.

This means that in order to work around the bug, you can add at the beginning of dreampielib/gui/__init__.py a line:

os.environ['XDG_DATA_DIRS'] = '/opt/local/share'

Is it ok if I close this bug?

Noam

Revision history for this message
Noam Yorav-Raphael (noamraph) wrote :

I'm sorry, the archlinux forum is not about MacPorts. Still, this seems as a MacPorts issue rather than a DreamPie issue.

Revision history for this message
Joe VanAndel (joe-vanandel) wrote :

You can close the bug, but it would be really nice if you could note
this work-around in release notes for users dreampie with MacPorts.
It took quite a while for me to find this fix, and it would be great
if other users of MacPorts could use dreampie.

On Thu, Feb 25, 2010 at 12:33 AM, Noam Yorav-Raphael <email address hidden> wrote:
> >From what I read in the archlinux forum, it seems to be a problem with a
> MacPorts package which causes this environment variable to get the wrong
> value. This means that it is not a DreamPie bug.
>
> This means that in order to work around the bug, you can add at the
> beginning of dreampielib/gui/__init__.py a line:
>
> os.environ['XDG_DATA_DIRS'] = '/opt/local/share'
>
> Is it ok if I close this bug?
>
> Noam
>
> --
> OS 10.6.2: crash Xlib:  extension "RANDR" missing on display
> https://bugs.launchpad.net/bugs/526197
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in DreamPie - The Python shell you've always dreamed about!: Incomplete
>
> Bug description:
> I installed dreampie 1.0 on Mac OS X 10.6.2, with  Python 2.6, PyGTK and PyGtkSourceView from MacPorts.
> I'm using X11 2.3.4, as shipped by Apple.
>
> When I try to run dreampie, it reports:
> Xlib:  extension "RANDR" missing on display
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/dreampie/+bug/526197/+subscribe
>

Revision history for this message
Noam Yorav-Raphael (noamraph) wrote :

You're right. I updated http://wiki.python.org/moin/DreamPieMacSupport .

Thanks for finding a fix!

Changed in dreampie:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.