CDAT / cdat

Community Data Analysis Tools
Other
175 stars 68 forks source link

mac w/o XQuartz seems to hang because vistrails needs X11 #563

Open doutriaux1 opened 10 years ago

doutriaux1 commented 10 years ago

On a mac 10.9 w/o XQuartz.

UVCDAT gui hangs with the following output.

My Mac opens up a window asking for X11!

I'm using uvcdat-next and devel.

doutriaux1@lapetitechipie:[~/build]:[2546]> uvcdat --output=""
Init package:  edu.utah.sci.vistrails.basic
2014-08-15 16:46:52.074 Python[7635:d07] CoreText performance note: Client called CTFontCreateWithName() using name "Arial" and got font with PostScript name "ArialMT". For best performance, only use PostScript names when calling this API.
2014-08-15 16:46:52.074 Python[7635:d07] CoreText performance note: Set a breakpoint on CTFontLogSuboptimalRequest to debug.
2014-08-15 16:46:52.166 Python[7635:d07] CoreText performance note: Client called CTFontCreateWithName() using name "Arial" and got font with PostScript name "ArialMT". For best performance, only use PostScript names when calling this API.
2014-08-15 16:46:52.306 Python[7635:d07] CoreText performance note: Client called CTFontCreateWithName() using name "Arial" and got font with PostScript name "ArialMT". For best performance, only use PostScript names when calling this API.
FOR NOW STILL READING IN OLD WAY
FOR NOW STILL READING IN OLD WAY
2014-08-15 16:46:53.706 Python[7635:d07] CoreText performance note: Client called CTFontCreateWithName() using name "Arial" and got font with PostScript name "ArialMT". For best performance, only use PostScript names when calling this API.
['Adelon', 'Arabic', 'AvantGarde', 'Chinese', 'Clarendon', 'Courier', 'Greek', 'Hebrew', 'Helvetica', 'Maths1', 'Maths2', 'Maths3', 'Maths4', 'Russian', 'Times', 'default']
Init package:  edu.utah.sci.vistrails.basic
Init package:  edu.utah.sci.vistrails.pythoncalc
Init package:  edu.utah.sci.vistrails.spreadsheet
2014-08-15 16:47:01.725 Python[7635:d07] CoreText performance note: Client called CTFontCreateWithName() using name "Arial" and got font with PostScript name "ArialMT". For best performance, only use PostScript names when calling this API.
Init package:  edu.utah.sci.vistrails.http
Init package:  edu.utah.sci.vistrails.dialogs
Init package:  gov.llnl.uvcdat
Init package:  edu.utah.sci.vistrails.vtk
Generic Warning: In /Users/doutriaux1/build/build/VTK/Rendering/OpenGL/vtkOpenGLPolyDataMapper.cxx, line 69
vtkOpenGLPolyDataMapper::vtkOpenGLPolyDataMapper was deprecated for VTK 6.2 and will be removed in a future version.

Warning: In /Users/doutriaux1/build/build/VTK/Common/Math/vtkFastNumericConversion.cxx, line 60
vtkFastNumericConversion (0x7f954a23b1b0): Class vtkFastNumericConversion was depecated for VTK 6.0 and will be removed in a future version.

Generic Warning: In /Users/doutriaux1/build/build/VTK/Rendering/OpenGL/vtkOpenGLPolyDataMapper.cxx, line 69
vtkOpenGLPolyDataMapper::vtkOpenGLPolyDataMapper was deprecated for VTK 6.2 and will be removed in a future version.

Init package:  edu.utah.sci.eranders.ParaView
CRITICAL
2014-08-15 16:47:10,199
/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/packagemanager.py, line 530
Initialization of package <codepath ParaView> failed and will be disabled
Package 'ParaView' failed to initialize because of the following exceptions:
Traceback (most recent call last):
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/modules/module_registry.py", line 1433, in initialize_package
    package.initialize()
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/modules/package.py", line 360, in initialize
    __import__(name, globals(), locals(), [])
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/modules/package.py", line 260, in _import
    (name, globals, locals, fromlist, level))
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/packages/ParaView/init.py", line 1, in <module>
    import paraview
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/modules/package.py", line 260, in _import
    (name, globals, locals, fromlist, level))
ImportError: No module named paraview

Init package:  gov.llnl.uvcdat.cdms
Init package:  edu.poly.vis_analytics
doutriaux1 commented 10 years ago

keyboard interupt (ctrl-C) pops up a window with following text:

Traceback (most recent call last):
  File "/usr/local/uvcdat/2014-08-14/vistrails/vistrails/uvcdat.py", line 89, in <module>
    v = gui.application.start_application()
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/gui/application.py", line 729, in start_application
    x = VistrailsApplication.init(optionsDict)
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/gui/application.py", line 189, in init
    self.vistrailsStartup.init()
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/startup.py", line 116, in init
    self.installPackages()
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/startup.py", line 568, in installPackages
    self._package_manager.initialize_packages(self._package_dictionary)
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/packagemanager.py", line 526, in initialize_packages
    self._registry.initialize_package(pkg)
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/modules/module_registry.py", line 1433, in initialize_package
    package.initialize()
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/modules/package.py", line 360, in initialize
    __import__(name, globals(), locals(), [])
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/modules/package.py", line 260, in _import
    (name, globals, locals, fromlist, level))
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/packages/vis_analytics/init.py", line 4, in <module>
    from plots import Coordinator, Dendrogram, ParallelCoordinates, TaylorDiagram, SeriesPlot
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/modules/package.py", line 260, in _import
    (name, globals, locals, fromlist, level))
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/packages/vis_analytics/plots.py", line 9, in <module>
    import taylor_diagram
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/modules/package.py", line 260, in _import
    (name, globals, locals, fromlist, level))
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/packages/vis_analytics/taylor_diagram.py", line 11, in <module>
    import matplotlib.pyplot as PLT
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/modules/package.py", line 260, in _import
    (name, globals, locals, fromlist, level))
  File "/lgm/uvcdat/2014-08-14/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.x-py2.7-macosx-10.4-x86_64.egg/matplotlib/pyplot.py", line 27, in <module>
    import matplotlib.colorbar
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/modules/package.py", line 260, in _import
    (name, globals, locals, fromlist, level))
  File "/lgm/uvcdat/2014-08-14/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.x-py2.7-macosx-10.4-x86_64.egg/matplotlib/colorbar.py", line 34, in <module>
    import matplotlib.collections as collections
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/modules/package.py", line 260, in _import
    (name, globals, locals, fromlist, level))
  File "/lgm/uvcdat/2014-08-14/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.x-py2.7-macosx-10.4-x86_64.egg/matplotlib/collections.py", line 27, in <module>
    import matplotlib.backend_bases as backend_bases
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/modules/package.py", line 260, in _import
    (name, globals, locals, fromlist, level))
  File "/lgm/uvcdat/2014-08-14/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.x-py2.7-macosx-10.4-x86_64.egg/matplotlib/backend_bases.py", line 56, in <module>
    import matplotlib.textpath as textpath
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/modules/package.py", line 260, in _import
    (name, globals, locals, fromlist, level))
  File "/lgm/uvcdat/2014-08-14/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.x-py2.7-macosx-10.4-x86_64.egg/matplotlib/textpath.py", line 19, in <module>
    import matplotlib.font_manager as font_manager
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/core/modules/package.py", line 260, in _import
    (name, globals, locals, fromlist, level))
  File "/lgm/uvcdat/2014-08-14/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.x-py2.7-macosx-10.4-x86_64.egg/matplotlib/font_manager.py", line 1412, in <module>
    _rebuild()
  File "/lgm/uvcdat/2014-08-14/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.x-py2.7-macosx-10.4-x86_64.egg/matplotlib/font_manager.py", line 1397, in _rebuild
    fontManager = FontManager()
  File "/lgm/uvcdat/2014-08-14/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.x-py2.7-macosx-10.4-x86_64.egg/matplotlib/font_manager.py", line 1037, in __init__
    self.ttffiles = findSystemFonts(paths) + findSystemFonts()
  File "/lgm/uvcdat/2014-08-14/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.x-py2.7-macosx-10.4-x86_64.egg/matplotlib/font_manager.py", line 322, in findSystemFonts
    for f in get_fontconfig_fonts(fontext):
  File "/lgm/uvcdat/2014-08-14/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.x-py2.7-macosx-10.4-x86_64.egg/matplotlib/font_manager.py", line 275, in get_fontconfig_fonts
    output = pipe.communicate()[0]
  File "/lgm/uvcdat/2014-08-14/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 799, in communicate
    return self._communicate(input)
  File "/lgm/uvcdat/2014-08-14/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1401, in _communicate
    stdout, stderr = self._communicate_with_poll(input)
  File "/lgm/uvcdat/2014-08-14/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1455, in _communicate_with_poll
    ready = poller.poll()
KeyboardInterrupt
doutriaux1 commented 10 years ago

on the terminal we see:

Init package:  edu.poly.vis_analytics
^C^C^CTraceback (most recent call last):
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/packages/spreadsheet/spreadsheet_window.py", line 372, in eventFilter
    def eventFilter(self,q,e):
KeyboardInterrupt
^CTraceback (most recent call last):
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/packages/spreadsheet/spreadsheet_window.py", line 372, in eventFilter
    def eventFilter(self,q,e):
KeyboardInterrupt
^C^CTraceback (most recent call last):
  File "/Volumes/Devel/lgm/uvcdat/2014-08-14/vistrails/vistrails/packages/spreadsheet/spreadsheet_window.py", line 372, in eventFilter
    def eventFilter(self,q,e):
KeyboardInterrupt
doutriaux1 commented 10 years ago

X11 is actually asking:

To open "fc-list", you need to install X11. 
Would you like to install X11 now
dakoop commented 10 years ago

I believe this is a matplotlib build issue. From this page: http://www.astro.washington.edu/users/rowen/BuildingMatplotlibForMac.html, it seems that libfreetype and libpng must be built and linked statically to avoid the X11 dependency. I believe we do this for VisTrails, and @rexissimus may be able to comment on this.

rexissimus commented 10 years ago

Yes, this is what we do for VisTrails. I linked libfreetype and libpng manually, but the build scripts in @dakoop's link should also work.

doutriaux1 commented 10 years ago

I don't think it's really an option here. @aashish24 ?

dakoop commented 10 years ago

Why?

doutriaux1 commented 10 years ago

Is it going to work on systems w/o X11? I'm worried it's going to mess the whole build. It's kind of a fragile eco-system. But feel free to try it.

dakoop commented 10 years ago

All I know is that it works for VisTrails. Are these libs used in the build already?