PKGBUILD and python setuptools

I wrote a proper post earlier but during that time i was logged out and it seems that what i was going to post just vanished so i'll just pop a quick question (are posts that you were going to post saved somewhere or do i just have to be quick posting?):
Is it possible to create a python related package and install it in a virtualenv (so that python dependencies don't pose a problem for other packages?) or is that not advisable as virtualenvs don't seem to be specially portable?
Also, is it not possible to install dependencies from setup.py when making an AUR package? I'm guessing that this would be a bad idea because of conflicting files in the same directory from different AUR packages?
Thanks in advance!
If I'm unclear or something just tell me and I'll try to make it clearer.

Hi there!
I've checked the guidelines and they don't seem to mention anything about that and as far as i can tell the other packages just use the dependency system that pacman offers. This leads me to believe that there's something off about installing it in a virtualenv in one way or another, otherwise i'm guessing that other packages would use that solution as well in some way.
I've checked it now and hope it works, thanks!

Similar Messages

  • Python SetupTools and arch with a sickbeard script

    Hello. I'm trying to get a script working that requires python setuptools. The script is python 2.7 so I'm using python2 in my arguments but it's getting stuck trying to do something with python SetupTools.
    I have installed python2-setuptools from the repo and python2-distributable?  and something else called python2-pip I believe that replaces setuptools?
    Anyway I've really hit a wall here. The script just keeps complaining that it can't use easysetup which I also installed from the python site but that didn't seem to help either.  setup.ez_setup.main()
    I have got it working under other environments so I know it is possible under debian distro's.
    The script in question. 
    https://github.com/mdhiggins/sickbeard_mp4_automator/
    Script result: Trying to install SetupTools
    Traceback (most recent call last):
    File "/media/300gb/Downloads/Scripts/postConversion.py", line 7, in <module>
    from readSettings import ReadSettings
    File "/media/300gb/Downloads/Scripts/readSettings.py", line 9, in <module>
    setup.ez_setup.main()
    NameError: name 'setup' is not defined

    Get rid of this:
    /Library/Python/2.7/site-packages/mercurial-3.3-py2.7-macosx-10.9-intel.egg

  • USB-6009, mac OS 10.6.8 and python

    Hello!
    I am using USB-6009 under mac OS 10.6.8 and python.
    I am trying to run the following commmand:
    analogOutputTask = nidaqmx.AnalogOutputTask(name='MyAOTask')
    I get the following message
    File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/nidaqmx/libnidaqmx.py", line 180, in CALL
    AttributeError: 'NoneType' object has no attribute 'DAQmxCreateTask'
    Any help would be very mch appreciated,
    Thanks 
    j.

    Hello Jamyamdy, 
    Honestly, I am not too sure about this, but were you able to acquire data before or is this your first trial? 
    From the usb-6009 product page, it says the following. 
    For Mac OS X and Linux users, download the NI-DAQmx Base driver software and program the USB-6009 with NI LabVIEW or C.
     http://sine.ni.com/nips/cds/view/p/lang/en/nid/201987
    Regards,

  • Mpd and python-mpd problem utf8

    Hi,
    i've just update the new mpd and python mpd package, so there is a problem with utf8 directory. Now it can not display my covers.
    The error :
    Exception in thread Thread-28:
    Traceback (most recent call last):
    File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
    File "/usr/lib/python2.5/threading.py", line 446, in run
    self.__target(*self.__args, **self.__kwargs)
    File "/usr/lib/python2.5/site-packages/sonata/main.py", line 3971, in _artwork_update
    imgfound = self.artwork_check_for_local()
    File "/usr/lib/python2.5/site-packages/sonata/main.py", line 3993, in artwork_check_for_local
    type, filename = self.artwork_get_local_image()
    File "/usr/lib/python2.5/site-packages/sonata/main.py", line 4038, in artwork_get_local_image
    testfile = img.single_image_in_dir(self.musicdir[self.profile_num] + songpath)
    File "/usr/lib/python2.5/site-packages/sonata/img.py", line 62, in single_image_in_dir
    dir = gobject.filename_from_utf8(dir)
    GError: Séquence d'octets non valide en entrée du convertisseur

    I'm having the same output whenever I try to view an artists's albums in the collection and the album title contains non strictly ascii characters (which happens pretty often, as I am not a native english speaker). The problem is that the albums do not appear in the collection ! I can still access them by the filesystem view, but then the songs are sorted alphabetically, not by track number.
    This problem appeared with Sonata 1.5.

  • Flex and python on IIS

    I need to move a Flex app from Apache to IIS. Sounds simple right? The flex app is a front-end to collect info from the user. This info is used to query a database. Data is extracted and some statistical analysis (linear regressions) run on these data after which the solution is tabulated and charted on the flex front-end. Python via pyamf is used to connect to the database server and the scipy/numpy python modules are used for the data analyses.
    My question is how do I set this up on IIS. I'd feel more comfortable using ISAPI instead of CGI scripts (based on some PHP experiences). How stable is the python ISAPI extension for IIS - from feedback on the web I understand it is buggy. I also thought about installing a coldfusion server - this would be great for the database connectivity and flex interaction but will I be able to use it to communicate with my python scripts. Any suggestions from others that have gone down this road are appreciated. Thanks.

    nimmyliji wrote:
    My flex application is running on the AIR and python is running locally..........
    Then probably using sockets is the best option. You could also google for pyamf. I don't know whether it applies for your case, though.
    Sorry, don't have any example code for to share, but at least for Python there are plenty of example in the web for use of sockets.

  • Building gVim with Ruby and Python support (for Windows)

    I would like to build gVim 7.3 with Ruby (1.8.7) and Python (3.2) support. For 32-bit Windows using 64-bit Linux.
    So, I downloaded everything what I need (ruby, python and vim sources), I installed mingw32 packages. Next, I modified vim makefile src/Make_ming.mak (as described here: http://people.smu.edu/jrobinet/howto/co … indows.asp) by adding ruby and python patches and versions.
    Finally, I tried to compile this:
    cd /tmp/vim/src
    make -f Make_ming.mak gvim.exe
    and I get quite strange result:
    make -f Make_ming.mak gvim.exe
    gcc -c -Iproto -DWIN32 -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -DHAVE_PATHDEF -DFEAT_BIG -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -w -march=i386 -Wall -DFEAT_RUBY -I /tmp/ruby/lib/ruby/1.8/i386-mswin32 -I /tmp/ruby/include/ruby-1.8 -I /tmp/ruby/include/ruby-1.8/i386-mswin32 -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"msvcrt-ruby18.dll\" -DDYNAMIC_RUBY_VER=18 -DFEAT_PYTHON -DDYNAMIC_PYTHON -O3 -fomit-frame-pointer -freg-struct-return -s blowfish.c -o gobj/blowfish.o
    blowfish.c:1:0: error: CPU you selected does not support x86-64 instruction set
    blowfish.c:1:0: error: CPU you selected does not support x86-64 instruction set
    make: *** [gobj/blowfish.o] Błąd 1
    I'm a little confused, I use 64-bit Linux (C2D E6750 processor), but I want to build 32-bit program using 32-bit compiler, so why I need 64-bit instruction set? Any suggestions?
    I'm not very familiar with compilation. It is a good way to build custom gVim?
    Last edited by n0rv (2012-09-01 21:21:03)

    I was surprised too.
    Is very strange for me that a company like Nokia is currently supporting only 2 operative systems, as Vista and Xp and nothing more.
    I have also Win2000 in a partition and I have no intention to buy new OS from Microsoft. I'm using Linux (Ubuntu) and I hope that Nokia will be really open to support soon also Linux or MacOS etc.
    The market is moving more and more in the open source software and there are lots of advanced big spender users that don't want to use Microsoft software.
    If Nokia will not change the mind I'm expecting many users, as me, will move to Linux based phone instead of Nokia for the future.
    In this particular case I was able to upgrade my phone just in time, using the previous version of NSU but now, to do the same upgrade (same phone, same firmware) I'm forced to use the new NSU version which is not compatible anymore with Win2000.
    Why I cannot continue to use the same version if it can work properly? Will Nokia will consider a patch or some version which can be compatible with Win2000? What about Linux?
    Thank you

  • Where to download wlst.jar and python.jar for weblogic 10

    where to download wlst.jar and python.jar for weblogic 10 ? I am unable to find the links ..most of the prevoius ones point to dev2dev which are no longer valid

    Hi,
    I have written the below python script to list the user ,that was created in realms->myrealms->users.
    It's not working it.
    Kindly help to in this python script.
    from weblogic.management.security.authentication import UserReaderMBean
    from weblogic.management.security.authentication import GroupReaderMBean
    file_loc='MbeanValues.properties'
    file=java.io.File(file_loc)
    if file.exists():
         loadProperties(file_loc)
    connect(dwlusr,dwlspwd,dwlsurl)
    domain_name = cmo.getName()
    print 'UserName='+dwlusr
    print 'URL='+dwlsurl
    print 'DomainName='+ domain_name
    print 'welcome'
    print 'Checking if isMember of a group'realm=cmo.getSecurityConfiguration().getDefaultRealm()
    atns = realm.getAuthenticationProviders()
    for i in atns:
    if isinstance(i,UserReaderMBean):
    userReader = i cursor = i.listUsers("*",0)
    print 'Users in realm '+realm.getName()+' are: '
    while userReader.haveCurrent(cursor):
    print userReader.getCurrentName(cursor)
    userReader.advance(cursor)
    userReader.close(cursor)for i in atns:
    if isinstance(i,GroupReaderMBean):
    groupReader = i
    cursor = i.listGroups("*",0)
    print 'Groups in realm are: '
    while groupReader.haveCurrent(cursor):
    print groupReader.getCurrentName(cursor)
    groupReader.advance(cursor)
    groupReader.close(cursor)
    disconnect()

  • N00b question about PKGBUILD and sed

    Hi, i find sed being used in quite a few PKGBUILDs but i dont really understand what it does after see the the man page and stuff...
    for example,
    # Maintainer: Link Dupont <[email protected]>
    # Contributor: Link Dupont <[email protected]>
    pkgname=cedega
    pkgver=4.4
    tgrel=1
    pkgrel=2
    pkgdesc="Transgaming's flagship product, allowing Windows games to run on Linux"
    url="http://www.transgaming.com/"
    license="non-free"
    depends=('x-server' 'python' 'pygtk')
    install=
    source=("${pkgname}_${pkgver}-$tgrel.i386.tgz" "point2play-small-2.0.1.tgz" "transgaming-fontinstaller-1.0.tgz" "cedega.sh" "transgaming-mozctlinstaller-1.0-1.i386.tgz" "http://downloads.transgaming.com/misc_d … pengl32.so")
    build() {
        cd $startdir/src
        mkdir -p $startdir/pkg/opt/cedega $startdir/pkg/etc/profile.d
        mv $startdir/src/usr/* $startdir/pkg/opt/cedega
        sed -e "s|/usr|/opt/cedega|" -i $startdir/pkg/opt/cedega/bin/Point2Play
        sed -e "s|/usr|/opt/cedega|" -i $startdir/pkg/opt/cedega/bin/cedega
        sed -e "s|/usr|/opt/cedega|" -i $startdir/pkg/opt/cedega/bin/tg-font-install
        sed -e "s|/usr|/opt/cedega|" -i $startdir/pkg/opt/cedega/bin/tg-mozctl-install
        rm -rf $startdir/pkg/opt/cedega/share/gnome/
        rm -rf $startdir/pkg/opt/cedega/share/icons/
        rm -rf $startdir/pkg/opt/cedega/lib/menu
        cp $startdir/src/cedega.sh $startdir/pkg/etc/profile.d/
        # Apply hotfix that fixes OpenGL rendering in World of Warcraft
        cp $startdir/src/libopengl32.so $startdir/pkg/opt/cedega/lib/transgaming_cedega/winex/lib/
    md5sums=('20592555c86cae4f4638e69281b80a8d' '8c3a22d57b897ecc9c6ec82ec9df0c6b'
             '9be0cf8bdd62658f46c52fdcba4be34e' '98078ba55a7f7f50750181adea924621'
             'fdb94eadf8c681e7e84a8c8235562274' '56d6f04788bbf0355e309e2eff4f4b4d')
    what exactly does sed do for example in this above PKGBUILD?

    its substituting /opt/cedega/ in place of /usr/ in each of the files on the right.
    s is substitue
    | is the seperator
    i is insert into file
    e is execute these commands

  • Python setuptools gives 'ImportError: No module named version' error

    I am trying to install hdctools-git from AUR and it fails in install() with following error. This package was fine last time I installed it about 2 months ago. My gut feeling says the error comes either from recent python2-setuptools or python2 package update. But my python skills are not good enough to figure out how to solve the problem.
    Does anybody know what is going here?
    byte-compiling /home/anatol/tmp/pkgs/hdctools-git/pkg/hdctools-git/usr/lib/python2.7/site-packages/servo/bbgpio_unittests.py to bbgpio_unittests.pyc
    byte-compiling /home/anatol/tmp/pkgs/hdctools-git/pkg/hdctools-git/usr/lib/python2.7/site-packages/servo/gpio_interface.py to gpio_interface.pyc
    byte-compiling /home/anatol/tmp/pkgs/hdctools-git/pkg/hdctools-git/usr/lib/python2.7/site-packages/servo/uart.py to uart.pyc
    byte-compiling /home/anatol/tmp/pkgs/hdctools-git/pkg/hdctools-git/usr/lib/python2.7/site-packages/servo/client.py to client.pyc
    byte-compiling /home/anatol/tmp/pkgs/hdctools-git/pkg/hdctools-git/usr/lib/python2.7/site-packages/servo/bbuart_unittests.py to bbuart_unittests.pyc
    byte-compiling /home/anatol/tmp/pkgs/hdctools-git/pkg/hdctools-git/usr/lib/python2.7/site-packages/servo/bbadc.py to bbadc.pyc
    byte-compiling /home/anatol/tmp/pkgs/hdctools-git/pkg/hdctools-git/usr/lib/python2.7/site-packages/servo/bbmux_controller.py to bbmux_controller.pyc
    byte-compiling /home/anatol/tmp/pkgs/hdctools-git/pkg/hdctools-git/usr/lib/python2.7/site-packages/servo/system_config.py to system_config.pyc
    byte-compiling /home/anatol/tmp/pkgs/hdctools-git/pkg/hdctools-git/usr/lib/python2.7/site-packages/servo/bbgpio.py to bbgpio.pyc
    byte-compiling /home/anatol/tmp/pkgs/hdctools-git/pkg/hdctools-git/usr/lib/python2.7/site-packages/servo/ftdigpio.py to ftdigpio.pyc
    byte-compiling /home/anatol/tmp/pkgs/hdctools-git/pkg/hdctools-git/usr/lib/python2.7/site-packages/servo/bbi2c_unittests.py to bbi2c_unittests.pyc
    writing byte-compilation script '/tmp/tmp4TA67u.py'
    /usr/bin/python2 -O /tmp/tmp4TA67u.py
    removing /tmp/tmp4TA67u.py
    running install_egg_info
    running egg_info
    writing build/servo.egg-info/PKG-INFO
    writing top-level names to build/servo.egg-info/top_level.txt
    writing dependency_links to build/servo.egg-info/dependency_links.txt
    writing entry points to build/servo.egg-info/entry_points.txt
    Traceback (most recent call last):
      File "setup.py", line 28, in <module>
        'dut-control = servo.dut_control:main',
      File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
        dist.run_commands()
      File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/lib/python2.7/distutils/command/install.py", line 575, in run
        self.run_command(cmd_name)
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/lib/python2.7/site-packages/setuptools/command/install_egg_info.py", line 33, in run
        self.run_command('egg_info')
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 171, in run
        writer = ep.load(installer=installer)
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2310, in load
        return self.resolve()
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2316, in resolve
        module = __import__(self.module_name, fromlist=['__name__'], level=0)
    ImportError: No module named version
    ==> ERROR: A failure occurred in package().
        Aborting...
    Last edited by anatolik (2015-01-18 06:39:16)

    I am getting the same problem. Uninstalling python2-daemon fixed it for me, as suggested here: http://stackoverflow.com/a/27996309/646735
    I have also logged an upstream issue here: https://bitbucket.org/pypa/setuptools/i … ed-version

  • CMake behaves differently from within PKGBUILD and from command line

    Hi,
    I am currently struggling with an issue which I cannot find a solution. The problem is, I am trying to create a PKGBUILD for the CasADi code. The following is the PKGBUILD file written. My problem is the cmake configuration part. When the code is configured from the command line, without PKGBUILD, camke detects the -fopenmp flag for C and C++ compilers. For exactly the same compilers, cmake detects openmp for C compiler but fails to do so for the C++ compiler, when configuration is done from within the PKGBUILD file using makepkg.
    My question is, why different behaviors? Any suggestions on what is wrong?
    pkgname=casadi-git
    pkgver=0
    pkgrel=1
    pkgdesc="A symbolic framework for automatic differentiation and numeric optimization"
    arch=('i686' 'x86_64')
    url=""
    license=('GPL')
    groups=()
    depends=('sundials' 'ipopt' 'blas' 'lapack' 'python2')
    makedepends=('cmake' 'swig')
    checkdepends=()
    optdepends=()
    provides=('casadi')
    conflicts=()
    replaces=()
    backup=()
    options=()
    install=
    changelog=
    source=('casadi::git+https://github.com/casadi/casadi.git')
    md5sums='SKIP'
    build() {
    cd "$srcdir/casadi"
    sed -i 's/PythonLibs/PythonLibs 2.7/g' ./cmake_modules/FindNUMPY.cmake ./swig/CMakeLists.txt
    cmake . -DCMAKE_INSTALL_PREFIX=/usr \
    -DPYTHON_EXECUTABLE=/usr/bin/python2 \
    -DWITH_DL:BOOL=ON \
    -DWITH_LLVM:BOOL=OFF \
    -DWITH_PYTHON_INTERRUPTS:BOOL=ON \
    -DWITH_OPENMP:BOOL=ON \
    -DWITH_OOQP:BOOL=ON \
    -DWITH_DOC:BOOL=ON \
    -DWITH_OPENCL:BOOL=OFF
    make
    package() {
    cd "$srcdir/casadi"
    make DESTDIR="$pkgdir/" install
    Output when cmake is run from command line
    -- The C compiler identification is GNU 4.8.1
    -- The CXX compiler identification is GNU 4.8.1
    -- Check for working C compiler: /usr/bin/colorgcc
    -- Check for working C compiler: /usr/bin/colorgcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- The Fortran compiler identification is GNU
    -- Check for working Fortran compiler: /usr/bin/gfortran
    -- Check for working Fortran compiler: /usr/bin/gfortran -- works
    -- Detecting Fortran compiler ABI info
    -- Detecting Fortran compiler ABI info - done
    -- Checking whether /usr/bin/gfortran supports Fortran 90
    -- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
    -- Flag needed for enabling C++11 features: -std=gnu++11
    -- x86_64 architecture detected - setting flag -fPIC
    -- Try OpenMP C flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Success
    -- Try OpenMP CXX flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Success
    -- Found OpenMP: -fopenmp
    -- Looking for Fortran sgemm
    -- Looking for Fortran sgemm - found
    -- Looking for include file pthread.h
    -- Looking for include file pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - found
    -- Found Threads: TRUE
    -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1")
    -- A library with BLAS API found.
    -- Looking for Fortran cheev
    -- Looking for Fortran cheev - found
    -- A library with LAPACK API found.
    -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
    -- checking for one of the modules 'ipopt'
    -- Detected an IPOPT configuration without development headers. Build will proceed, but without callback functionality. To enable it, see https://github.com/casadi/casadi/wiki/enableIpoptCallback
    -- Detected an IPOPT configuration without sIPOPT headers. Build will proceed, but without sIPOPT functionality.
    -- Found IPOPT: ipopt;lapack;blas;m;dl;coinmumps;pthread;blas;gfortran;m;gcc_s;quadmath;coinmetis
    -- Could not find KNITRO include dir
    -- Could not find KNITRO library
    -- Could not find CPLEX include dir
    -- Could not find CPLEX libraries
    -- Could not find MA57
    -- MA57 libraries not found. Falling back to MA27
    -- Could not find MA27
    -- Could not find OOQP include dir
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Found SWIG: /usr/bin/swig (found version "2.0.10")
    -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.5", minimum required is "2.7")
    -- Python executable is /home/hamid/bin/python
    -- numpy.get_include() is /usr/lib/python2.7/site-packages/numpy/core/include
    -- Numpy path found: /usr/include/python2.7/numpy
    -- Python libs: /usr/lib64/libpython2.7.so
    -- Numpy includes: /usr/include/python2.7/numpy;/usr/include
    -- Numpy libs: /usr/lib64/python2.7/site-packages/numpy/core/multiarray.so
    -- Found PythonInterp: /home/hamid/bin/python (found version "2.7.5")
    -- Found Doxygen: /usr/bin/doxygen (found version "1.8.4")
    -- Found DOXYFILE_IN: /usr/src/AUR/build/casadi/src/casadi/documentation/api-doc/Doxyfile.in
    -- pyreport not found -- try 'easy_install pyreport'
    -- The following features have been enabled:
    * dynamic-loading , Compile with support for dynamic loading of generated functions (needed for ExternalFunction)
    * using-c++11 , Using C++11 features (improves efficiency and is required for some examples).
    * sundials-interface , Interface to the ODE/DAE integrator suite SUNDIALS.
    * csparse-interface , Interface to the sparse direct linear solver CSparse.
    * lapack-interface , Interface to LAPACK.
    * ipopt-interface , Interface to the NLP solver Ipopt.
    * qpoases-interface , Interface to the active-set QP solver qpOASES.
    * dsdp-interface , Interface to the interior point SDP solver DSDP (requires BLAS and LAPACK).
    -- The following OPTIONAL packages have been found:
    * OpenMP
    * LibXml2
    * BLAS
    * Threads
    * LAPACK
    * PkgConfig
    * IPOPT
    * SWIG
    * NUMPY
    * PythonInterp
    * Doxygen
    -- The following features have been disabled:
    * just-in-time , Just-in-time compiliation via the LLVM compiler framework.
    * opencl-support , Enable just-in-time compiliation to CPUs and GPUs with OpenCL.
    * get-ipopt , Download and build Ipopt.
    * knitro-interface , Interface to the NLP solver KNITRO.
    * cplex-interface , Interface to the QP solver CPLEX.
    * ooqp-interface , Interface to the QP solver OOQP (requires BLAS).
    * worhp-inteface , Interface to the NLP solver Worhp (requires LibXml2 headers).
    -- The following OPTIONAL packages have not been found:
    * KNITRO
    * CPLEX
    * MA57
    * MA27
    * OOQP
    * MATLAB
    * OCTAVE
    * LATEX
    * PYREPORT
    -- Configuring done
    -- Generating done
    Output when running makepkg
    -- The C compiler identification is GNU 4.8.1
    -- The CXX compiler identification is GNU 4.8.1
    -- Check for working C compiler: /usr/bin/colorgcc
    -- Check for working C compiler: /usr/bin/colorgcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- The Fortran compiler identification is GNU
    -- Check for working Fortran compiler: /usr/bin/gfortran
    -- Check for working Fortran compiler: /usr/bin/gfortran -- works
    -- Detecting Fortran compiler ABI info
    -- Detecting Fortran compiler ABI info - done
    -- Checking whether /usr/bin/gfortran supports Fortran 90
    -- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
    -- Flag needed for enabling C++11 features: -std=gnu++11
    -- x86_64 architecture detected - setting flag -fPIC
    -- Try OpenMP C flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Success
    -- Try OpenMP CXX flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [/openmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-Qopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-openmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [ ]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-xopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [+Oopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-qsmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-mp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Could NOT find OpenMP (missing: OpenMP_CXX_FLAGS)
    -- Looking for Fortran sgemm
    -- Looking for Fortran sgemm - found
    -- Looking for include file pthread.h
    -- Looking for include file pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - not found
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - found
    -- Found Threads: TRUE
    -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1")
    -- A library with BLAS API found.
    -- Looking for Fortran cheev
    -- Looking for Fortran cheev - found
    -- A library with LAPACK API found.
    -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
    -- checking for one of the modules 'ipopt'
    -- Detected an IPOPT configuration without development headers. Build will proceed, but without callback functionality. To enable it, see https://github.com/casadi/casadi/wiki/enableIpoptCallback
    -- Detected an IPOPT configuration without sIPOPT headers. Build will proceed, but without sIPOPT functionality.
    -- Found IPOPT: ipopt;lapack;blas;m;dl;coinmumps;pthread;blas;gfortran;m;gcc_s;quadmath;coinmetis
    -- Could not find KNITRO include dir
    -- Could not find KNITRO library
    -- Could not find CPLEX include dir
    -- Could not find CPLEX libraries
    -- Could not find MA57
    -- MA57 libraries not found. Falling back to MA27
    -- Could not find MA27
    -- Could not find OOQP include dir
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;-lpthread;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;-lpthread;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Found SWIG: /usr/bin/swig (found version "2.0.10")
    -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.5", minimum required is "2.7")
    -- Python executable is /usr/bin/python2
    -- numpy.get_include() is /usr/lib/python2.7/site-packages/numpy/core/include
    -- Numpy path found: /usr/include/python2.7/numpy
    -- Python libs: /usr/lib64/libpython2.7.so
    -- Numpy includes: /usr/include/python2.7/numpy;/usr/include
    -- Numpy libs: /usr/lib64/python2.7/site-packages/numpy/core/multiarray.so
    -- Found PythonInterp: /usr/bin/python2 (found version "2.7.5")
    -- Found Doxygen: /usr/bin/doxygen (found version "1.8.4")
    -- Found DOXYFILE_IN: /usr/src/AUR/build/casadi/src/casadi/documentation/api-doc/Doxyfile.in
    -- pyreport not found -- try 'easy_install pyreport'
    -- The following features have been enabled:
    * dynamic-loading , Compile with support for dynamic loading of generated functions (needed for ExternalFunction)
    * using-c++11 , Using C++11 features (improves efficiency and is required for some examples).
    * sundials-interface , Interface to the ODE/DAE integrator suite SUNDIALS.
    * csparse-interface , Interface to the sparse direct linear solver CSparse.
    * lapack-interface , Interface to LAPACK.
    * ipopt-interface , Interface to the NLP solver Ipopt.
    * qpoases-interface , Interface to the active-set QP solver qpOASES.
    * dsdp-interface , Interface to the interior point SDP solver DSDP (requires BLAS and LAPACK).
    -- The following OPTIONAL packages have been found:
    * LibXml2
    * BLAS
    * Threads
    * LAPACK
    * PkgConfig
    * IPOPT
    * SWIG
    * NUMPY
    * PythonInterp
    * Doxygen
    -- The following features have been disabled:
    * just-in-time , Just-in-time compiliation via the LLVM compiler framework.
    * opencl-support , Enable just-in-time compiliation to CPUs and GPUs with OpenCL.
    * get-ipopt , Download and build Ipopt.
    * knitro-interface , Interface to the NLP solver KNITRO.
    * cplex-interface , Interface to the QP solver CPLEX.
    * ooqp-interface , Interface to the QP solver OOQP (requires BLAS).
    * worhp-inteface , Interface to the NLP solver Worhp (requires LibXml2 headers).
    -- The following OPTIONAL packages have not been found:
    * OpenMP
    * KNITRO
    * CPLEX
    * MA57
    * MA27
    * OOQP
    * MATLAB
    * OCTAVE
    * LATEX
    * PYREPORT
    -- Configuring done
    -- Generating done

    With a little creativity, you can actually do all that from the command line with a single command. It'll look a little crazy, but it can be done.
    Whether the script exists on the local machine or not has zero to do with platform indpendence. You assumedly have to get the application onto the local machine, so including the script is not really an issue at all. However, you're talking about system independence, yet still wishing to run command line arguments? The two are mutually exclusive.

  • Compability problem with Java and Python  RSA algorithm implementation

    I have client server application. Server is writtein in python, client in java. Client receives messages from server encrypted with RSA (http://stuvel.eu/rsa), and I'm unable to decrypt it. It seems that this is RSA algorithm compatibility problem. I'm using algorithm from java.security package, instatinating Cipher object like this: c = Cipher.getInstance("RSA"); . I noticed that this algorithm produces for input blocks of lengtrh <=117 ouput block of length 128. Server I guess uses the most triviall impelentation of RSA ( (1 byte is encrypted to 1 byte) So i want to make my java algorithm compatibile with this one which server uses. How to do that ? Do i have to instatinate Cipher object in different way ? Or use another library ?

    azedor wrote:
    First you said it was no good because it could only handle <= 117 byte inputs, now you say it is no good because it produces a 128-byte output. You're not making sense.First i said that this two RSA implementations are not compatibile, and first reason i noticed firstly is that Python imlementation for input of length N produces cryptogram of the same length. Not true. In general, the RSA encryption of any number of bytes less than the length of the modulus will produce a result of length near that of the modulus. When N is less than the length of the modulus, it is rare that N bytes of cleartext produces N bytes of ciphertext.
    Java implementation for data block of length <=117 produces alwasy 128 bytes of output.Pretty much correct and very much desirable. This is primarily a function of the PKCS1 padding which is used to solve two basic problems. First, as I alluded to in my first response, it is the nature of the algorithm that leading zeros are not preserved and second when the cleartext is very small (a few bytes) the exponentiation does not roll over and it is easy to decrypt the result. Both these problems are addressed by PKCS1 padding.
    >
    >
    After what sabre150 said i think of giving up idea of translating Python code to Java and considering to use another assymetric cryptography algorithms on both sides. Can you recommend me sth what should be compatibile with Python ?This seems to be at odds with your statement in reply #3 "Also have acces only to client code so i have to change sth in java." ! This statement is why I said "I suspect ... you have dug a deep hole".
    In your position I would use the Python bindings for openssl. Once more, Google is your friend.

  • ICal Server and Python causing max CPU usage on 10.5.1 server

    We are having an issue with iCal Server where a python process is monopolizing the CPU (70%-95%) to the point everything grinds to a halt. Once iCal is stopped, then started again it will be ok for anywhere from 10 minutes to a few hours before it starts all over again.
    caldavd error Log is being bombarded with what looks like every transaction. See example below:
    2008-01-07 11:26:46-0600 [-] [caldav-8008] [HTTPChannel,4634,192.168.1.139] PROPFIND /principals/_uids_/BA237A85-F880-4A89-B1C1-F07E72A1508E/ HTTP/1.1
    This may be completely unrelated, but the DirectoryService process seems to be running high (35%-40%) as well.
    Any help would be greatly appreciated!
    Fun Facts:
    G5 Xserve - Dual 2.0
    4GB RAM
    Mac OS 10.5.1 Server
    DNS seems to be in working order

    Server is running with a FQDN and functioning kerberos. The only thing regarding python twisted framework or close to it is when iCal server starts.
    2008-01-07 18:25:37-0600 [-] [caldav-8008] [-] Log opened.
    2008-01-07 18:25:37-0600 [-] [caldav-8008] [-] twistd 2.5.0 (/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/ Contents/MacOS/Python 2.5.1) starting up
    2008-01-07 18:25:37-0600 [-] [caldav-8008] [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
    2008-01-07 18:25:37-0600 [-] [caldav-8008] [-] Configuring directory service of type: twistedcaldav.directory.appleopendirectory.OpenDirectoryService
    2008-01-07 18:25:37-0600 [-] [caldav-8008] [-] "Directory service <OpenDirectoryService '/Search': '/Search'> has no GUID; generating service GUID from realm name."
    2008-01-07 18:25:37-0600 [-] [caldav-8008] [-] Configuring SudoDirectoryService with file: /etc/caldavd/sudoers.plist
    2008-01-07 18:25:37-0600 [-] [caldav-8008] [-] Setting up document root at: /Library/CalendarServer/Documents
    2008-01-07 18:25:37-0600 [-] [caldav-8008] [-] Setting up principal collection: <class 'twistedcaldav.directory.principal.DirectoryPrincipalProvisioningResource'>
    2008-01-07 18:25:37-0600 [-] [caldav-8008] [-] Setting up calendar collection: <class 'twistedcaldav.static.CalendarHomeProvisioningFile'>
    2008-01-07 18:25:37-0600 [-] [caldav-8008] [-] Setting up root resource: <class 'twistedcaldav.root.RootResource'>
    2008-01-07 18:25:37-0600 [-] [caldav-8008] [-] Setting up default ACEs on root resource
    2008-01-07 18:25:37-0600 [-] [caldav-8008] [-] Setting up AdminPrincipals
    2008-01-07 18:25:37-0600 [-] [caldav-8008] [-] Setting root ACL
    2008-01-07 18:25:37-0600 [-] [caldav-8008] [-] Configuring authentication for realm: /Search
    2008-01-07 18:25:37-0600 [-] [caldav-8008] [-] Setting up scheme: kerberos
    2008-01-07 18:25:37-0600 [-] [caldav-8008] [-] Setting up scheme: digest
    2008-01-07 18:25:39-0600 [-] [caldav-8008] [-] Configuring authentication wrapper
    2008-01-07 18:25:39-0600 [-] [caldav-8008] [-] Setting up service
    2008-01-07 18:25:39-0600 [-] [caldav-8008] [-] Configuring log observer: <twistedcaldav.logging.AMPCommonAccessLoggingObserver object at 0x147a7f0>
    2008-01-07 18:25:39-0600 [-] [caldav-8008] [-] Adding server at :8008
    2008-01-07 18:25:39-0600 [-] [caldav-8008] [-] twisted.web2.channel.http.HTTPFactory starting on 8008
    2008-01-07 18:25:39-0600 [-] [caldav-8008] [-] Starting factory <twisted.web2.channel.http.HTTPFactory instance at 0x146fc10>
    2008-01-07 18:25:39-0600 [-] [caldav-8008] [-] set uid/gid 93/93
    2008-01-07 18:25:39-0600 [twistedcaldav.logging.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXSocket('/var/run/caldavd.sock') PEER:UNIXSocket(''))
    2008-01-07 18:25:39-0600 [-] [caldav-8008] [-] AMP connection established (HOST:UNIXSocket(None) PEER:UNIXSocket('/var/run/caldavd.sock'))

  • Java and Python

    Greetings
    I would like to know about how to use python as script language for make java games. I mean to control some behavior for example as trigger in a scene. Someone knows about any tutorial.
    Thanks in advance

    For Python and C++
    http://www.gamasutra.com/features/20020821/dawson_pfv.htm
    The book "Developing Games in Java" from New Riders publishing.
    Chapter 14: Game Scripting

  • [SOLVED] Inkscape and python-numpy problem.

    When I'm trying to use the perspective tool in Inkscape I'm getting this message.
    Inkscape has received additional data from the script executed.  The script did not return an error, but this may indicate the results will not be as expected.
    Failed to import the numpy or numpy.linalg modules. These modules are required by this extension. Please install them and try again. On a Debian-like system this can be done with the command, sudo apt-get install python-numpy.
    I got python-numpy installed, and was asking around in #inkscape, they think it has to do with a wrong path problem with prefix or exec-prefix(?).
    I tried to run Inkscape inside /usr/lib/python3.2/site-packages/numpy, but I'm getting the same message. Also tried to run as root... nothing helped.
    Any idea's?
    Last edited by Math (2011-10-23 04:45:23)

    It turned out to be a python2/python3 version problem. I just had to install python2-numpy to fix this.
    SOLVED!

  • AUR Pkgbuild and Node.js

    If my package needs some nodejs packages to build/run, it's preferred to install them through AUR (when provided) or just add a line
    npm install -g name_of_the_package
    into build() function?
    Keep in mind that if the package has been already installed on the system by npm, installation from AUR will fail.
    This is my pkgbuild https://aur.archlinux.org/packages/brackets/

    I don't want to sound pretentious, but nodejs is a strange framework (I don't know almost anything about it), and i.e. brackets has all this build dependencies (just the build ones...)
    "grunt": "0.4.1",
    "jasmine-node": "1.11.0",
    "grunt-jasmine-node": "0.1.0",
    "grunt-cli": "0.1.9",
    "phantomjs": "1.9.0-1",
    "grunt-lib-phantomjs": "0.3.0",
    "grunt-contrib-jshint": "0.6.0",
    "grunt-contrib-watch": "0.4.3",
    "grunt-contrib-jasmine": "0.4.2",
    "grunt-template-jasmine-requirejs": "0.1.0",
    "grunt-contrib-cssmin": "0.6.0",
    "grunt-contrib-clean": "0.4.1",
    "grunt-contrib-copy": "0.4.1",
    "grunt-contrib-htmlmin": "0.1.3",
    "grunt-contrib-less": "0.8.2",
    "grunt-contrib-requirejs": "0.4.1",
    "grunt-contrib-uglify": "0.2.0",
    "grunt-contrib-concat": "0.3.0",
    "grunt-targethtml": "0.2.6",
    "grunt-usemin": "0.1.11",
    "load-grunt-tasks": "0.2.0",
    "q": "0.9.2",
    "jshint": "2.1.4",
    "xmldoc": "^0.1.2"
    I don't think that a user without an AUR helper should be happy to have to install all these things, when it can just be avoided adding
    npm install
    inside PKGBUILD.

Maybe you are looking for

  • Importing XML Data Back into the Form

    I have a form that shows several subforms based on the selections the user has made while filling in the form. This is working quite well but when I import the XML data back into the form it doesn't show the subforms that have been used. Is there an

  • How do I set my contacts from iPhone 3GS to iPhone 4

    How I transfer the contacts from my iPone 3GS to the new iPone 4?

  • Can you take an airport card from a G4 and put it in a G5?

    I am trying to transfer an irport card from a G4 to a G5. The G5 shows the airport card but will not pick up a wireless account. Is the card compatable?

  • How to know the platform type

    Hi I would like to know the platform type am using in the frontend..am trying to use the static method cl_gui_frontend_services=>GET_PLATFORM...it returns '5'..am not able to interprete the importing parameter Please suggest Regards Panda

  • Screen resolution of target system

    Hi, My webdynpro application looks different when opened on browsers having different screen resolutions. The reason for this is that I have hardcoded the width/height specs of different UI elements. Therefore, I would like to know a mechanism by whi