xrced problem (fairly serious)

I am using xrced v. 0.2.1-0 and I have a fairly serious problem that occurs semi-often. I am running Mac OSX 10.8 and wxPython 2.9.?.

My problem is that if I make several changes and then try and save the xrc file, the file is essentially empty. As you can see in the attached screenshot, I have a dialog that contains a flexgrid sizer with 10 controls (5 rows, 2 columns). But the saved xrc file contains only these 2 lines:

<?xml version="1.0" ?>

If I close xrced, I will lose everything and have to start over.

How do I diagnosis what is going on?

Thanks,

Ryan

Screen Shot 2013-10-04 at 12.45.10 PM.png

Ryan Krauss wrote:

I am using xrced v. 0.2.1-0 and I have a fairly serious problem that
occurs semi-often. I am running Mac OSX 10.8 and wxPython 2.9.?.

My problem is that if I make several changes and then try and save the
xrc file, the file is essentially empty. As you can see in the attached
screenshot, I have a dialog that contains a flexgrid sizer with 10
controls (5 rows, 2 columns). But the saved xrc file contains only
these 2 lines:

<?xml version="1.0" ?>
<resource class="wxStaticText"/>

If I close xrced, I will lose everything and have to start over.

How do I diagnosis what is going on?

If you run xrced from the command line do you see any tracebacks or other messages when the problem happens? (You could also check in the Console application if you run XRCed from its app bundle, but it can sometimes be hard to filter out the other noise there.)

···

--
Robin Dunn
Software Craftsman

I do start it from the command line. This is all I see:
rkrauss>DT_TMM_gui[master*]$ xrced.py
2013-10-04 12:59:35.609 Python[8317:f0b] -_continuousScroll is deprecated for NSScrollWheel. Please use -hasPreciseScrollingDeltas.

2013-10-04 12:59:35.610 Python[8317:f0b] -deviceDeltaX is deprecated for NSScrollWheel. Please use -scrollingDeltaX.
2013-10-04 12:59:35.611 Python[8317:f0b] -deviceDeltaY is deprecated for NSScrollWheel. Please use -scrollingDeltaY.

(I don’t think it cares for my two finger scrolling, but it still seems to support that.)

···

On Fri, Oct 4, 2013 at 12:57 PM, Robin Dunn robin@alldunn.com wrote:

Ryan Krauss wrote:

I am using xrced v. 0.2.1-0 and I have a fairly serious problem that

occurs semi-often. I am running Mac OSX 10.8 and wxPython 2.9.?.

My problem is that if I make several changes and then try and save the

xrc file, the file is essentially empty. As you can see in the attached

screenshot, I have a dialog that contains a flexgrid sizer with 10

controls (5 rows, 2 columns). But the saved xrc file contains only

these 2 lines:

<?xml version="1.0" ?>

If I close xrced, I will lose everything and have to start over.

How do I diagnosis what is going on?

If you run xrced from the command line do you see any tracebacks or other messages when the problem happens? (You could also check in the Console application if you run XRCed from its app bundle, but it can sometimes be hard to filter out the other noise there.)

Robin Dunn

Software Craftsman

http://wxPython.org

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

This has happened to me again. It is quite annoying. I have a very simple menubar and I just added a second menu with one item. Now the xml is blank.

···

On Fri, Oct 4, 2013 at 1:15 PM, Ryan Krauss ryanlists@gmail.com wrote:

I do start it from the command line. This is all I see:
rkrauss|DT_TMM_gui[master*]$ xrced.py
2013-10-04 12:59:35.609 Python[8317:f0b] -_continuousScroll is deprecated for NSScrollWheel. Please use -hasPreciseScrollingDeltas.

2013-10-04 12:59:35.610 Python[8317:f0b] -deviceDeltaX is deprecated for NSScrollWheel. Please use -scrollingDeltaX.
2013-10-04 12:59:35.611 Python[8317:f0b] -deviceDeltaY is deprecated for NSScrollWheel. Please use -scrollingDeltaY.

(I don’t think it cares for my two finger scrolling, but it still seems to support that.)

On Fri, Oct 4, 2013 at 12:57 PM, Robin Dunn robin@alldunn.com wrote:

Ryan Krauss wrote:

I am using xrced v. 0.2.1-0 and I have a fairly serious problem that

occurs semi-often. I am running Mac OSX 10.8 and wxPython 2.9.?.

My problem is that if I make several changes and then try and save the

xrc file, the file is essentially empty. As you can see in the attached

screenshot, I have a dialog that contains a flexgrid sizer with 10

controls (5 rows, 2 columns). But the saved xrc file contains only

these 2 lines:

<?xml version="1.0" ?>

If I close xrced, I will lose everything and have to start over.

How do I diagnosis what is going on?

If you run xrced from the command line do you see any tracebacks or other messages when the problem happens? (You could also check in the Console application if you run XRCed from its app bundle, but it can sometimes be hard to filter out the other noise there.)

Robin Dunn

Software Craftsman

http://wxPython.org

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

FYI, I deleted the items I had added, but the xml still saves as essentially blank.

···

On Wed, Oct 9, 2013 at 10:34 PM, Ryan Krauss ryanlists@gmail.com wrote:

This has happened to me again. It is quite annoying. I have a very simple menubar and I just added a second menu with one item. Now the xml is blank.

On Fri, Oct 4, 2013 at 1:15 PM, Ryan Krauss ryanlists@gmail.com wrote:

I do start it from the command line. This is all I see:
rkrauss|DT_TMM_gui[master*]$ xrced.py
2013-10-04 12:59:35.609 Python[8317:f0b] -_continuousScroll is deprecated for NSScrollWheel. Please use -hasPreciseScrollingDeltas.

2013-10-04 12:59:35.610 Python[8317:f0b] -deviceDeltaX is deprecated for NSScrollWheel. Please use -scrollingDeltaX.
2013-10-04 12:59:35.611 Python[8317:f0b] -deviceDeltaY is deprecated for NSScrollWheel. Please use -scrollingDeltaY.

(I don’t think it cares for my two finger scrolling, but it still seems to support that.)

On Fri, Oct 4, 2013 at 12:57 PM, Robin Dunn robin@alldunn.com wrote:

Ryan Krauss wrote:

I am using xrced v. 0.2.1-0 and I have a fairly serious problem that

occurs semi-often. I am running Mac OSX 10.8 and wxPython 2.9.?.

My problem is that if I make several changes and then try and save the

xrc file, the file is essentially empty. As you can see in the attached

screenshot, I have a dialog that contains a flexgrid sizer with 10

controls (5 rows, 2 columns). But the saved xrc file contains only

these 2 lines:

<?xml version="1.0" ?>

If I close xrced, I will lose everything and have to start over.

How do I diagnosis what is going on?

If you run xrced from the command line do you see any tracebacks or other messages when the problem happens? (You could also check in the Console application if you run XRCed from its app bundle, but it can sometimes be hard to filter out the other noise there.)

Robin Dunn

Software Craftsman

http://wxPython.org

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

FWIW, this is the script I use to launch xrced on OSX 10.8:

#!/usr/bin/env python
import sys, os

parent_dir = ‘/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.9.4-osx_cocoa/wx/tools/’

if parent_dir not in sys.path:
sys.path.append(parent_dir)

xrced_dir = os.path.join(parent_dir, ‘XRCed’)
fullpath = os.path.join(xrced_dir, ‘xrced.py’)
cmd = ‘python %s’ % fullpath

os.system(cmd)

(wxPython is installed via homebrew)

···

On Wed, Oct 9, 2013 at 10:39 PM, Ryan Krauss ryanlists@gmail.com wrote:

FYI, I deleted the items I had added, but the xml still saves as essentially blank.

On Wed, Oct 9, 2013 at 10:34 PM, Ryan Krauss ryanlists@gmail.com wrote:

This has happened to me again. It is quite annoying. I have a very simple menubar and I just added a second menu with one item. Now the xml is blank.

On Fri, Oct 4, 2013 at 1:15 PM, Ryan Krauss ryanlists@gmail.com wrote:

I do start it from the command line. This is all I see:
rkrauss|DT_TMM_gui[master*]$ xrced.py
2013-10-04 12:59:35.609 Python[8317:f0b] -_continuousScroll is deprecated for NSScrollWheel. Please use -hasPreciseScrollingDeltas.

2013-10-04 12:59:35.610 Python[8317:f0b] -deviceDeltaX is deprecated for NSScrollWheel. Please use -scrollingDeltaX.
2013-10-04 12:59:35.611 Python[8317:f0b] -deviceDeltaY is deprecated for NSScrollWheel. Please use -scrollingDeltaY.

(I don’t think it cares for my two finger scrolling, but it still seems to support that.)

On Fri, Oct 4, 2013 at 12:57 PM, Robin Dunn robin@alldunn.com wrote:

Ryan Krauss wrote:

I am using xrced v. 0.2.1-0 and I have a fairly serious problem that

occurs semi-often. I am running Mac OSX 10.8 and wxPython 2.9.?.

My problem is that if I make several changes and then try and save the

xrc file, the file is essentially empty. As you can see in the attached

screenshot, I have a dialog that contains a flexgrid sizer with 10

controls (5 rows, 2 columns). But the saved xrc file contains only

these 2 lines:

<?xml version="1.0" ?>

If I close xrced, I will lose everything and have to start over.

How do I diagnosis what is going on?

If you run xrced from the command line do you see any tracebacks or other messages when the problem happens? (You could also check in the Console application if you run XRCed from its app bundle, but it can sometimes be hard to filter out the other noise there.)

Robin Dunn

Software Craftsman

http://wxPython.org

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Ryan,
FWIW, this is the script I use to launch xrced on OSX 10.8:

···

#!/usr/bin/env python

what Python does this find? (try “which python”) to see. Or hardcode the full path the Python you want in the #! line.

parent_dir = ‘/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.9.4-osx_cocoa/wx/tools/’

if parent_dir not in sys.path:
sys.path.append(parent_dir)

OK, so you’ve added the homebrew wx to yoru python path – are you sure that it’s compatible with the python you are running (see above). I think, if you want to use homebrew for part of it, you probably want to use homebrew accross the board – i.e the homebrew python, probably in:

/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/bin

or something like that. (there’s probably a link in usr/local/bin, too) - maybe that what is found by the shell, but I’d make sure.

Not sure this has anything to do with your problem, but worth making sure.

-Chris


Christopher Barker, PhD

Python Language Consulting

  • Teaching
  • Scientific Software Development
  • Desktop GUI and Web Development
  • wxPython, numpy, scipy, Cython

Good question Chris. I think I used homebrew for everything (97% certain). I think this is confirmation:

rkrauss>DT_TMM_gui[master*]$ which python
/usr/local/bin/python
rkrauss>DT_TMM_gui[master*]$ ls -alh /usr/local/bin/python

lrwxr-xr-x 1 rkrauss admin 33B Mar 23 2013 /usr/local/bin/python → …/Cellar/python/2.7.3/bin/python

···

On Thu, Oct 10, 2013 at 10:55 AM, Christopher Barker pythonchb@gmail.com wrote:

Ryan,
FWIW, this is the script I use to launch xrced on OSX 10.8:

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

#!/usr/bin/env python

what Python does this find? (try “which python”) to see. Or hardcode the full path the Python you want in the #! line.

parent_dir = ‘/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.9.4-osx_cocoa/wx/tools/’

if parent_dir not in sys.path:
sys.path.append(parent_dir)

OK, so you’ve added the homebrew wx to yoru python path – are you sure that it’s compatible with the python you are running (see above). I think, if you want to use homebrew for part of it, you probably want to use homebrew accross the board – i.e the homebrew python, probably in:

/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/bin

or something like that. (there’s probably a link in usr/local/bin, too) - maybe that what is found by the shell, but I’d make sure.

Not sure this has anything to do with your problem, but worth making sure.

-Chris


Christopher Barker, PhD

Python Language Consulting

  • Teaching
  • Scientific Software Development
  • Desktop GUI and Web Development
  • wxPython, numpy, scipy, Cython

Good question Chris. I think I used homebrew for everything (97%
certain). I think this is confirmation:

rkrauss>DT_TMM_gui[master*]$ which python
/usr/local/bin/python
rkrauss>DT_TMM_gui[master*]$ ls -alh /usr/local/bin/python
lrwxr-xr-x 1 rkrauss admin 33B Mar 23 2013 /usr/local/bin/python ->
../Cellar/python/2.7.3/bin/python

yup -- you're good. Oh well, it would have been nice it that caused your

issue...

-Chris

···

On Thu, Oct 10, 2013 at 9:20 AM, Ryan Krauss <ryanlists@gmail.com> wrote:

On Thu, Oct 10, 2013 at 10:55 AM, Christopher Barker <pythonchb@gmail.com>wrote:

Ryan,
FWIW, this is the script I use to launch xrced on OSX 10.8:

#!/usr/bin/env python

what Python does this find? (try "which python") to see. Or hardcode the
full path the Python you want in the #! line.

parent_dir =
'/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.9.4-osx_cocoa/wx/tools/'

if parent_dir not in sys.path:
    sys.path.append(parent_dir)

OK, so you've added the homebrew wx to yoru python path -- are you sure
that it's compatible with the python you are running (see above). I
_think_, if you want to use homebrew for part of it, you probably want to
use homebrew accross the board -- i.e the homebrew python, probably in:

/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/bin

or something like that. (there's probably a link in usr/local/bin, too) -
maybe that what is found by the shell, but I'd make sure.

Not sure this has anything to do with your problem, but worth making sure.

-Chris

--
Christopher Barker, PhD

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython

--
You received this message because you are subscribed to the Google Groups
"wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups
"wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Christopher Barker, PhD

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython