Python-matplotlib and dependencies

To day I tried to install python-matplotlib, but it dependet on, and tried to install wxpython and tk, which in turn depends on old usless gtk-1 and glib-1. All together 17 MB. Why is that, you can easily build this package without all those dependencies and as far as I know don't lose any functionality.

tpoisot wrote:
karol wrote:Write a PKGBUILD and specify the dependencies there. In Arch we're using pacman to handle package updating and dependency resolving, so it makes sense to use packages rather than e.g. bare xpi plugins.
Thanks for the info. But shouldn't there it be a mechanism to not install the arch version of a python pakage if the correct version has been installed using e.g. pip already?
No. I think pip should be patched to inform pacman about its illegal operations in pacman territory.

Similar Messages

  • Python/matplotlib output using latex broken

    ive been trying to:
    pyplt.savefig("something.eps")
    but i always get these errors:
    Saving figure to: plots/large_study/res_FR.eps
    RuntimeError Traceback (most recent call last)
    /mnt/data/sandbox/python/sqc_replacement/datawriter.py in <module>()
    ----> 1
    2
    3
    4
    5
    /mnt/data/sandbox/python/sqc_replacement/datawriter.py in plot_residuals(params, ff)
    613 fname = 'plots' + os.sep + outfile + os.sep + 'res_' + p + '.' + ff
    614 print('Saving figure to: ' + fname)
    --> 615 pyplt.savefig(fname, **{'format':ff})
    616 # 1}}}
    617
    /usr/lib/python2.6/site-packages/matplotlib/pyplot.pyc in savefig(*args, **kwargs)
    354 def savefig(*args, **kwargs):
    355 fig = gcf()
    --> 356 return fig.savefig(*args, **kwargs)
    357 if Figure.savefig.__doc__ is not None:
    358 savefig.__doc__ = dedent(Figure.savefig.__doc__)
    /usr/lib/python2.6/site-packages/matplotlib/figure.pyc in savefig(self, *args, **kwargs)
    1030 patch.set_alpha(0.0)
    1031
    -> 1032 self.canvas.print_figure(*args, **kwargs)
    1033
    1034 if transparent:
    /usr/lib/python2.6/site-packages/matplotlib/backend_bases.pyc in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, **kwargs)
    1474 orientation=orientation,
    1475 bbox_inches_restore=_bbox_inches_restore,
    -> 1476 **kwargs)
    1477 finally:
    1478 if bbox_inches and restore_bbox:
    /usr/lib/python2.6/site-packages/matplotlib/backend_bases.pyc in print_eps(self, *args, **kwargs)
    1327 from backends.backend_ps import FigureCanvasPS # lazy import
    1328 ps = self.switch_backends(FigureCanvasPS)
    -> 1329 return ps.print_eps(*args, **kwargs)
    1330
    1331 def print_pdf(self, *args, **kwargs):
    /usr/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc in print_eps(self, outfile, *args, **kwargs)
    853
    854 def print_eps(self, outfile, *args, **kwargs):
    --> 855 return self._print_ps(outfile, 'eps', *args, **kwargs)
    856
    857
    /usr/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc in _print_ps(self, outfile, format, *args, **kwargs)
    882 self._print_figure_tex(outfile, format, imagedpi, facecolor, edgecolor,
    883 orientation, isLandscape, papertype,
    --> 884 **kwargs)
    885 else:
    886 self._print_figure(outfile, format, imagedpi, facecolor, edgecolor,
    /usr/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc in _print_figure_tex(self, outfile, format, dpi, facecolor, edgecolor, orientation, isLandscape, papertype, **kwargs)
    1183 convert_psfrags(tmpfile, ps_renderer.psfrag, font_preamble,
    1184 custom_preamble, paperWidth, paperHeight,
    -> 1185 orientation)
    1186
    1187 if rcParams['ps.usedistiller'] == 'ghostscript':
    /usr/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc in convert_psfrags(tmpfile, psfrags, font_preamble, custom_preamble, paperWidth, paperHeight, orientation)
    1270 if exit_status:
    1271 raise RuntimeError('LaTeX was not able to process your file:\
    -> 1272 \nHere is the full report generated by LaTeX: \n\n%s'% fh.read())
    1273 else: verbose.report(fh.read(), 'debug')
    1274 fh.close()
    RuntimeError: LaTeX was not able to process your file:
    Here is the full report generated by LaTeX:
    This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Arch Linux)
    restricted \write18 enabled.
    entering extended mode
    (/tmp/tmpQzkfCe.tex
    LaTeX2e <2009/09/24>
    Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
    yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, ar
    abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
    h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
    greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, ku
    rmanji, latin, latvian, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, po
    lish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, span
    ish, swedish, turkish, ukenglish, ukrainian, uppersorbian, welsh, loaded.
    (/usr/share/texmf-dist/tex/latex/base/article.cls
    Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
    (/usr/share/texmf-dist/tex/latex/base/size10.clo))
    (/usr/share/texmf-dist/tex/latex/type1cm/type1cm.sty)
    (/usr/share/texmf-dist/tex/latex/psnfss/mathptmx.sty)
    (/usr/share/texmf-dist/tex/latex/psnfss/helvet.sty
    (/usr/share/texmf-dist/tex/latex/graphics/keyval.sty))
    (/usr/share/texmf-dist/tex/latex/psnfss/courier.sty)
    (/usr/share/texmf-dist/tex/latex/base/textcomp.sty
    (/usr/share/texmf-dist/tex/latex/base/ts1enc.def))
    (/usr/share/texmf-dist/tex/latex/geometry/geometry.sty
    (/usr/share/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
    (/usr/share/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
    (/usr/share/texmf-dist/tex/xelatex/xetexconfig/geometry.cfg)
    Package geometry Warning: Over-specification in `h'-direction.
    `width' (578.15999pt) is ignored.
    Package geometry Warning: Over-specification in `v'-direction.
    `height' (433.62pt) is ignored.
    ) (/usr/share/texmf-dist/tex/latex/psfrag/psfrag.sty
    (/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
    (/usr/share/texmf-dist/tex/latex/graphics/trig.sty)
    (/usr/share/texmf-dist/tex/latex/latexconfig/graphics.cfg)
    (/usr/share/texmf-dist/tex/latex/graphics/dvips.def)))
    (/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty)
    (/usr/share/texmf-dist/tex/latex/graphics/color.sty
    (/usr/share/texmf-dist/tex/latex/latexconfig/color.cfg)
    (/usr/share/texmf-dist/tex/latex/graphics/dvipsnam.def))
    No file tmpQzkfCe.aux.
    (/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd)
    (/usr/share/texmf-dist/tex/latex/psnfss/ot1ptm.fd)
    *geometry detected driver: dvips*
    <tmpQzkfCe.eps> (/usr/share/texmf-dist/tex/latex/psnfss/ot1ztmcm.fd)
    (/usr/share/texmf-dist/tex/latex/psnfss/omlztmcm.fd)
    (/usr/share/texmf-dist/tex/latex/psnfss/omsztmcm.fd)
    (/usr/share/texmf-dist/tex/latex/psnfss/omxztmcm.fd)
    ! Missing $ inserted.
    <inserted text>
    $
    l.47 \includegraphics*[angle=0]{tmpQzkfCe.eps}
    ! Extra }, or forgotten $.
    \mbox #1->\leavevmode \hbox {#1}
    l.47 \includegraphics*[angle=0]{tmpQzkfCe.eps}
    ! Extra }, or forgotten $.
    \nfss@text #1->{\mbox {#1}}
    l.47 \includegraphics*[angle=0]{tmpQzkfCe.eps}
    ! Missing $ inserted.
    <inserted text>
    $
    l.47 \includegraphics*[angle=0]{tmpQzkfCe.eps}
    ! Missing } inserted.
    <inserted text>
    l.47 \includegraphics*[angle=0]{tmpQzkfCe.eps}
    ! Missing } inserted.
    <inserted text>
    l.47 \includegraphics*[angle=0]{tmpQzkfCe.eps}
    [1] (./tmpQzkfCe.aux) )
    (see the transcript file for additional information)
    Output written on tmpQzkfCe.dvi (1 page, 5944 bytes).
    Transcript written on tmpQzkfCe.log.
    matplotlibrc:
    backend : GTKAgg
    font.family : serif
    font.serif : Times, Palatino, New Century Schoolbook, Bookman, Computer Modern Roman
    font.sans-serif : Helvetica, Avant Garde, Computer Modern Sans serif
    font.cursive : Zapf Chancery
    font.monospace : Terminus, Dina, Courier
    text.usetex : true
    ps.usedistiller : ghostscript
    relevant packages:
    extra/texlive-bibtexextra 2009.16287-1 (texlive-most)
    extra/texlive-bin 2009.5-2
    extra/texlive-core 2009.16776-1 (texlive-most)
    extra/texlive-fontsextra 2009.16617-1 (texlive-most)
    extra/texlive-formatsextra 2009.16044-1 (texlive-most)
    extra/texlive-games 2009.16453-1 (texlive-most)
    extra/texlive-genericextra 2009.15878-1 (texlive-most)
    extra/texlive-htmlxml 2009.15878-1 (texlive-most)
    extra/texlive-humanities 2009.16540-1 (texlive-most)
    extra/texlive-latex3 2009.16491-1 (texlive-most)
    extra/texlive-latexextra 2009.16666-1 (texlive-most)
    extra/texlive-music 2009.15878-2 (texlive-most)
    extra/texlive-pictures 2009.16576-1 (texlive-most)
    extra/texlive-plainextra 2009.16629-1 (texlive-most)
    extra/texlive-pstricks 2009.16633-1 (texlive-most)
    extra/texlive-publishers 2009.16512-1 (texlive-most)
    extra/texlive-science 2009.16539-1 (texlive-most)
    extra/python-numpy 1.4.0-1
    community/python-scipy 0.7.1-5
    community/python-matplotlib 0.99.1.2-2
    im pretty new to python, and i know nothing of latex, other than it seems to be well broken atm for me. i can save figures in any other file format with no errors.

    csstaub wrote:Looks like the script is generating invalid LaTeX code. A bug perhaps?
    i've asked friends (other distros) and the folks in #scipy, noone else seems to have this problem.
    i'd bet it has something to do wiht my setup, but im afraid idk enough to fix this problem.

  • Python-matplotlib: segmentation fault error

    Hi All!
    I'm new an the forum and for my first post I'd like to be expose an issue that I face with the matplotlib tool of python. More precisely, I recently used the apt package to install python, nympy and matplotlib on a linux 64b computer. Everything seemed to be working well expect that when I try to import matplotlib (import matplotlib.pyplot as m for eg.) I get a segmentation fault error.
    I´ve been trough several forums trying to apply their suggestions but I could not overcome this issues. Do anybody can give me insight on how to fix this?
    Thank you and have a good week-end!
    L1011

    Honestly I'm not familiar with apt on arch, but if you're comfortable installing software from AUR you can try the package build I just cooked up for matplotlib with python3 support:
    http://aur.archlinux.org/packages.php?ID=49810
    (I'm assuming you were trying to get python3 support, else you would have just installed python2-matplotlib with pacman...)

  • View and dependencies

    Hello Every one.
    I know i should not be doing duplicate posting but i think this section will have pointer.
    Please look into this. What am i missing.
    Re: View and dependencies
    Thank you in advance.

    Thank you for your reply.
    I am sorry it is not getting me the result.
    I think of two things, the table is on DBLINK and is there any think to do with dependecy_type='HARD'
    .>ed
    Wrote file afiedt.buf
      1  CREATE OR REPLACE  VIEW V_test
      2  AS
      3    SELECT   rpt_date,
      4             client_id,
      5             SUM (no_received) no_received
      6        FROM xxx.daily_summery_rpt@ARCHIVE
      7       WHERE client_id = '4398000000'
      8         AND rpt_date BETWEEN trunc(sysdate-60)
      9                          AND trunc(sysdate)
    10    GROUP BY rpt_date,
    11*            client_id
    .>/
    View created.
    Elapsed: 00:00:03.07
    .>SELECT *
      2    FROM user_dependencies
      3   WHERE TYPE = 'VIEW'
      4     AND NAME = 'V_TEST';
    no rows selected
    Elapsed: 00:00:01.03
    .>I am not sure what am i missing.

  • Variant Configuration and Dependencies?

    Hi,
    How is variant configuration is used and dependencies? Can someone give the step by step details with an example? What are the sample questions that can be asked about variant configuration in the interview?
    Thank you

    Hi Altin,
    The process of Variant Configuration and its dependency uses defers from scenario to scenario,
    Please click on the Link
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/92/58d455417011d189ec0000e81ddfac/frameset.htm
    or refer to SAP PLM 145 or LO990.
    To check an end user documentation of how to create Knowledge base objects of Variant Configuration
    please refer to link
    service.sap.com/var_conf or https://websmp202.sap-ag.de/var_conf
    This link should explain different strategies and scenarios where Variant Configuration is used.
    If you have access to SAP IDES systems:
    USE models T-VPP00 for Sales BOM and T-VPC00 for regular.
    Need more help please let me know
    Thanks
    Ajay

  • Installation order and dependencies of Essbase Products

    Hi Experts,
    I am soon to start a fresh EPM Installation on SUN SOLARIS SPARC. Just wanted to know the Installation order and dependencies on each services. The Instllation would be a Websphere based on 64 bit SUN SOL OS with 11.1.3.
    the following are the essbase production which i have to Install.
    Essbase Analytical services
    Essbase Administration Services
    Essbase Shared services
    Application Provider services ( for Smart View ).
    at present i am going thru the Read me Installation docs for all products, Would be great if you can give me a quick order of Installation so i can concentracte accordingly.
    any quick reference DOC will also help
    Cheers
    MS

    The installation order is not so important as the installer should install the components correctly, just install the products you want to on each machine.
    When configuring you would configure shared services registry and shared services first.
    It is worth reading through the install and config doc http://docs.oracle.com/cd/E12825_01/epm.111/epm_install_11114/launch.html
    Installation sequence http://docs.oracle.com/cd/E12825_01/epm.111/epm_install_11114/ch03s01.html
    "EPM System Installer enables you to install, configure, and deploy multiple products on a machine at one time. EPM System Installer installs components in the correct order, so you can select as many products as you want to install on a machine at one time"
    Configuration Sequence - http://docs.oracle.com/cd/E12825_01/epm.111/epm_install_11114/ch04s03.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Python segmentation fault with matplotlib and opencv2

    Once again fellow archers, I am in need of your help.
    I have a file, Test1.py, which uses cv2, pylab, and numpy.
    Excluding either pylab or cv2 functions, I can make the rest of the script work, but when pylab is imported, calling cv2's imshow() function causes a "segmentation fault (core dumped)".
    By the sound of it, I thought it might come from the underlying C stuff, rather than python.
    So I ran it through gdb.
    This is where I need help. I'm not sure how to interprete the backtrace, and I probably wouldn't know what to to if I were.
    Perhaps a problem with glib or GObject?
    Below are the python script in question (it a template for a school assignment), and the gdb trace.
    Test1.py
    import sys
    sys.settrace
    import numpy as np
    import cv2
    import math
    import pylab
    #----------------------------Functions
    def show1_OpenCV(image):
    # ##This function define a window by namedWindow() and then show the image in that window
    image=np.array(image)
    # cv2.namedWindow('ByOpenCV', cv2.WINDOW_AUTOSIZE)## create a window called
    # #+'By OpenCV'Using the \nw{cv2.WINDOW_AUTOSIZE} parameter when defining a window display the image with its actual size in the window.
    cv2.imshow('ByOpenCV', image) ## show the image in 'By OpenCV' window
    # cv2.waitKey(0) ## the window will be closed with a (any)key press
    def show2_OpenCV(*image):
    ## Showing the image using OpenCV
    im=[]
    for i in image:
    im.append(array(i))
    cv2.namedWindow('1', cv2.WINDOW_AUTOSIZE)## create a window called 'By OpenCV' Using the \nw{cv2.WINDOW_AUTOSIZE} parameter when defining a window display the image with its actual size in the window.
    cv2.imshow('1', im[0]) ## show the image in 'By OpenCV' window
    cv2.namedWindow('2', cv2.WINDOW_AUTOSIZE)
    cv2.imshow('2', im[1])
    cv2.waitKey(0) ## the window will be closed with a (any)key press
    def showAll_OpenCV(**image):
    im = []
    for (k,v) in image.items():
    cv2.namedWindow(str(k), cv2.WINDOW_AUTOSIZE)
    cv2.imshow(k, np.array(v))
    cv2.waitKey()
    def show1_pylab(image):
    ## Showing the image using pylab
    figure("By pylab")## Create a figure
    gray()
    title("1"); imshow(image)
    show()
    def show2_pylab(*images):
    ## Showing the image using pylab
    figure("By pylab")## Create a figure
    gray()
    subplot(1,2,1);title("1"); imshow(images[0])## more about 'subplot()' : <http://www.scipy.org/Cookbook/Matplotlib/Multiple_Subplots_with_One_Axis_Label>
    subplot(1,2,2);title("2"); imshow(images[1])
    show()
    def grayLevelMap2(I,vector):
    I = np.copy(I)
    (x,y) = np.shape(I)
    for i in range(x):
    for j in range(y):
    I[i,j] = vector[I[i,j]]
    return I
    def grayLevelMap(I,a,b):
    I = np.copy(I)
    (x,y) = np.shape(I)
    for i in range(x):
    for j in range(y):
    I[i,j] = max(0,min(255, a* I[i,j] +b))
    return I
    def grayLevelMapF(I,f):
    I = np.copy(I)
    (x,y) = np.shape(I)
    for i in range(x):
    I[i] = map(f, I[i])
    return I
    def f(x):
    func=(255-x)*math.sqrt(100/+1)
    return func
    def displayVect(v):
    points=[]
    for i in range(len(v)):
    points.append((i,v[i]))
    bins = range(256)
    n = v
    grid(None, 'major', 'both')
    plot(bins, n, 'k-', linewidth=5)
    axis([-2, 256, -2, 256])
    show()
    ##------------------------------Main body
    # Loading an image using openCV
    I1=cv2.imread("children.tif")
    I2=cv2.imread("Eye1.jpg")
    I3=cv2.imread("Marker1.jpg")
    I4=cv2.imread("GreenTest.jpg")
    I1=cv2.cvtColor(I1, cv2.COLOR_RGB2GRAY)
    I2=cv2.cvtColor(I2, cv2.COLOR_RGB2GRAY)
    I3=cv2.cvtColor(I3, cv2.COLOR_RGB2GRAY)
    I4=cv2.cvtColor(I4, cv2.COLOR_RGB2GRAY)
    show1_OpenCV(grayLevelMapF(I4, lambda x: 2*x))
    show1_OpenCV(I4)
    gdb output:
    Reading symbols from /usr/bin/python2...(no debugging symbols found)...done.
    (gdb) run Test1.py
    Starting program: /usr/bin/python2 Test1.py
    warning: Could not load shared library symbols for linux-vdso.so.1.
    Do you need "set solib-search-path" or "set sysroot"?
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/usr/lib/libthread_db.so.1".
    Traceback (most recent call last):
    File "/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.3400.3-gdb.py", line 9, in <module>
    from gobject import register
    File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
    ImportError: No module named backtrace
    [New Thread 0x7fffdf259700 (LWP 3981)]
    Program received signal SIGSEGV, Segmentation fault.
    0x00000036cb6bc785 in do_warn () from /usr/lib/libpython2.7.so.1.0
    (gdb) backtrace
    #0 0x00000036cb6bc785 in do_warn () from /usr/lib/libpython2.7.so.1.0
    #1 0x00000036cb6bcc4c in PyErr_WarnEx () from /usr/lib/libpython2.7.so.1.0
    #2 0x00007fffe10153b5 in ?? ()
    from /usr/lib/python2.7/site-packages/gobject/_gobject.so
    #3 0x00000036cde4ea00 in g_logv () from /usr/lib/libglib-2.0.so.0
    #4 0x00000036cde4ebf2 in g_log () from /usr/lib/libglib-2.0.so.0
    #5 0x00007fffef8e009e in gtk_disable_setlocale ()
    from /usr/lib/libgtk-x11-2.0.so.0
    #6 0x00007ffff21ca8a8 in cvInitSystem ()
    from /usr/lib/libopencv_highgui.so.2.4
    #7 0x00007ffff21cafb3 in cvNamedWindow ()
    from /usr/lib/libopencv_highgui.so.2.4
    #8 0x00007ffff352dfe4 in ?? () from /usr/lib/python2.7/site-packages/cv2.so
    #9 0x00000036cb6dc05a in PyEval_EvalFrameEx ()
    from /usr/lib/libpython2.7.so.1.0
    #10 0x00000036cb6dba83 in PyEval_EvalFrameEx ()
    from /usr/lib/libpython2.7.so.1.0
    #11 0x00000036cb6dcedd in PyEval_EvalCodeEx ()
    ---Type <return> to continue, or q <return> to quit---j
    from /usr/lib/libpython2.7.so.1.0
    #12 0x00000036cb6dcfb2 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0
    #13 0x00000036cb6f5eea in run_mod () from /usr/lib/libpython2.7.so.1.0
    #14 0x00000036cb6f6ce2 in PyRun_FileExFlags ()
    from /usr/lib/libpython2.7.so.1.0
    #15 0x00000036cb6f76fb in PyRun_SimpleFileExFlags ()
    from /usr/lib/libpython2.7.so.1.0
    #16 0x00000036cb7089f2 in Py_Main () from /usr/lib/libpython2.7.so.1.0
    #17 0x00007ffff7833a15 in __libc_start_main () from /usr/lib/libc.so.6
    #18 0x0000000000400741 in _start ()
    (gdb) run Test1.py
    Last edited by Bladtman242 (2013-02-12 19:30:55)

    Thank you so much!
    This (ugly) workaround might have saved me from a lot of trouble with this semester's exercises.
    Just to be clear, the solution is:
    Import opencv
    Call namedWindow
    Do the rest of the imports
    Do the rest of the script
    Corect?
    I'm hesitant to mark the thread as solved, as the problem is still very much there, this workaround just allows us to ignore it.

  • Conflict between python-pyqt4 and python-pyqt5

    Hi!
    When trying to use matplotlib in the Spyder Python IDE I get the following error
    RuntimeError: the PyQt5.QtCore and PyQt4.QtCore modules both wrap the QObject class
    It's obviously a conflict between pyqt4 and pyqt5. However, pyqt4 is a hard dependency of Spyder and pyqt5 is a hard dependency of matplotlib. Outside Spyder, matplotlib works fine.
    Does anybody know how to resolve this conflict? Or is it a packaging issue? Shall I file a bug report? I think a discussion about matplotlib depending on Qt5 had already been going on here.

    Does it work with https://aur.archlinux.org/packages/pyth … tlib-noqt/ ?
    I think it's OK to open a bug report.

  • Can i use Python Matplotlib with labview?

    I have a python code that i want to develop a User Interface for, i found Labview, but can i still use all the add-ons and modules when i run the script in labview? basically, i just want to develop a GUI for my code and I want to use all the modules and add-ons that I had in my code. Addons and modules such as pylab, matplotlib, numpy, scipy, and so on. Thanks!
    Solved!
    Go to Solution.

    The only integration LabVIEW has with Python is that it can call scripts and use the output from those scripts.  Here is an example of how to do that.
    https://decibel.ni.com/content/docs/DOC-8995
    I would use a Python GUI Framework to control your Python application.  Here is a link to the Python Wiki on GUI Frameworks.
    http://wiki.python.org/moin/GuiProgramming
    Regards,
    Matt M.
    Applications Engineer
    National Instruments

  • 10.5.7 upgrade, Python & matplotlib

    I'm using python (macpython 2.5) & matplotlib for huge data analyses and visualisation (with imagemagick and mplayer, I should add). While matplotlib (0.98.5.2) usually took enormous amounts of memory, (during a period of time up to 1.5 Gigs working memory) which isn't good, after updating to 10.5.7 (from 10.5.6), things got worse. After a couple of minutes in which a couple of hundred pngs, (800x600, just a scientific graph) were plotted, it would go RuntimeError on me. And not just that. Python would quit with an error code 12. Something to do with memory allocation, even if it's the first thing after booting up. Malloc and stuff.
    I'm pretty sure it's a matplotlib-thing as, other datahandling code without matplotlib kept working.
    Good news though: with the Enthought edition these troubles disappear. Completely.

    Nevermind that, I still get this error:
    Python(9737) malloc: * mmap(size=65536) failed (error code=12)
    * error: can't allocate region
    * set a breakpoint in mallocerrorbreak to debug
    Python(9737) malloc: * mmap(size=65536) failed (error code=12)
    * error: can't allocate region
    * set a breakpoint in mallocerrorbreak to debug
    Python(9737) malloc: * mmap(size=65536) failed (error code=12)
    * error: can't allocate region
    * set a breakpoint in mallocerrorbreak to debug
    libpng error: zlib failed to initialize compressor
    which is an odd error since it has made 424 pngfiles without error. and memory wasn't full according to iStat.
    And python doesn't just quit after this error. It keeps running, filling up working space memory. Grr.

  • Berkeley DB XML, Python, TEI and DTDs

    Dear BDB XML experts,
    I am developing a web application (Django based) that uses python to manipulate and query TEI based documents within a BDB XML container.
    The XML documents I am loading into the container contain a reference to an external DTD, which in turn references .ent files. The documents contain entity references that require resolving.
    I can successfully put the XML documents into the container if I include the contents of the DTD within each file, but the process fails if I do not include the contents of the DTD in the XML document and instead try to reference the DTD via a reference. Xquery queries also do not seem to work properly if the DTD contents is included within each XML document.
    I have found references in the forums to the following JAVA code which appears to allow BDB XML to reference an external DTD in the file system from within the database (I may be wrong on this though):
    XmlManagerConfig config = new XmlManagerConfig();
    config.setAllowExternalAccess(true);
    XmlManager manager = new XmlManager(config);
    My query is, can the same be achieved using python? The BDB documentation specifies this as a JAVA only operation and does not mention it as possible using python.
    Thanks for reading
    AL

    Hi AL,
    I have gathered quite a bit of experience with the Python bindings now, but I haven't been exactly in your situation. My experience has been that pretty much anything that you can do in Java you can do in Python but sometimes the syntax is a little different. From what I see Python does not have an XmlManagerConfig class but instead uses flags given to the XmlManager constructor. To do what you want to do I think you want (assuming from dbxml import *)
    mgr = XmlManager(env, DBXML_ALLOW_EXTERNAL_ACCESS)

  • Help needed in understanding what Python is and ho...

    Hi All,
    I have read about python and i dont quite grasp the entire technical language behind it but there are some apps that i would like to install on my E71 but they require python.  I have tried to download python form sourceforge but it has never worked.  Thank you all for your assistance.
    Solved!
    Go to Solution.

    Python is an interpreted programming language.
    For Python applications to run, you need to install the Python runtime first.
    For the E71, download the SIS file for S60 3rd Edition or S60 3rd Edition Feature Pack 1 (FP1) from:
    http://sourceforge.net/project/showfiles.php?group_id=154155&package_id=171153&release_id=644640

  • Executable and dependencies

    Labview 2012/Windows 7.
    On my developemnt machine I created a project w all my vis to run a test.  That works fine.  I then created an exe and that works fine.  Then I created an installer for the target machine and the code doesn't work.  I get that its missing files and those files just happen to be listed under "dependencies" of the project  on the devmnt machine.  To name a few..."vi.lib", "instr.lib", nidmm_32.dll", niswitch_32.dll".  In the build I included DAQmx and visa as well as the RT engine.  I selected my "Main Menu" as the "startup vi.  Main menu calls all of the "other vis"  which are in folders in the project under main menu.  The discussion grps have some confusing info.  Should I put the "other vis" that my main menu calls in the "Always Include" box or when I select main menu as my startup vi Labview is smart enough to include those called vis??
    What am I missing that I get an error when I port my code to the target machine ?  ..."vi.lib", "instr.lib", nidmm_32.dll", niswitch_32.dll".

    Hi Clint,
    as you miss "nidmm.dll" I guess you need to install the NI-DMM driver as well with your exectable…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Assemble ant task and dependencies

    We are in a process of moving from wasp 4.5 to OC4J R3.
    We want to be able to assemble (and deploy) a bottom-up java web service using ant.
    I look at the assemble ant task but I couldn't find out how to specify using that task the jars that will be copied to WEB-INF/lib or any other option like using a custom oracle-webservices.xml file to specify the dependencies or specifying a shard library to be used..
    The documentation is really unclear about the subject.

    What's your approach to pack the files?
    Just use the assemble task to create the war structure and then add all the dependencies?
    I'm new to OC4j but it seems a reasonable request to add dependencies with the ant task , just like when you use the input tag to specify which files should be in WEB-INF/classes.
    The oracle-webservices.xml is another way to specify the web service (if i remember correctly) and I gave it as another example of where I looked to solve to problem.
    It shouldn't be that hard to pack to war file myself... it's just annoying that when you come from WASP 4.5 which is over 3 years old and it's so easy and clear how to pack a bottom-up web service.
    Message was edited by:
    user564605

  • Python distutils and Arch

    Was just reading through PEP 356: http://www.python.org/dev/peps/pep-0356/ which discusses the 2.5 python roadmap. Two things that have been deferred until 2.6 are bdist_deb and bdist_egg targets. I started wondering if there were modules to allow me to build .debs with distutils without having it built in....
    I didn't check before I started wondering if it would be possible to write a distutils module that causes setup.py to spit out Arch PKGBUILDs. Apparently distutils will have requires, provides, and obsoletes keywords.
    I love how easy it is to create source distributions using distutils... would be lovely if I could create PKGBUILD's just as easily.
    I have no time to implement this or find out how it would be done, so I thought I'd put the idea out to the community and see if anybody else is interested or might try it.
    Dusty

    cactus wrote:
    oh man. twisted. I wouldn't wish that on anyone that desires to retain their sanity.
    Good thing I don't have much of that left, as my previous job was entirely focused on writing code with twisted.
    I would recommend eventlet or gevent instead.
    Any advantages of those over sockets?

Maybe you are looking for

  • Error message in portal screen for ESS

    Hi one and all, hope all of you doing well... Wish you happy new year to all, I got one error when I click on ESS in portal. the error is It is giving that Un able to read the PCD path for WHO IS WHO. Can one guide me how to solve this problem? Thank

  • T-code for display open PR with block message/ indicator

    Hi experts, I would like to export the open PR list with block message / indicator to excel. Could you please tell me the T-code and the steps? Thank you.

  • JAVA-HOME not found in this environment?

    Hi, i'm from Argentina. ?'m installing (because i want to learn) Dspace. My machine have windows 2003 Server. The steps of the installation are : *Java SDK 1.5 (I've installed jdk 1.6_10) * PostgreSQL 8.X for Windows *apache ant *tomcat *MAVEN I EXEC

  • How to get the current IR filter in form pagination?

    Hi, In the 'Get Next or Previous Primary Key Value' process (form pagination) of a page there is an option to set an 'Optional WHERE clause'. Is there an easy way to get and set the current interactive report filter in the form pagination optional wh

  • Installing Adobe Lightroom 5 on my Mac Air

    I want to install Adobe Lightroom 5 on my Mac Air, but I don't have a CD-player. Can I download from internet with help of my serial number?