Review my PySide (python 3) package

Hello, I noticed that PySide AUR packages still uses Python 2. Since I cant find their Python 3 counterpart, I might just use it as an opportunity to build my own packages.
This is my first time writing an AUR package, so please review them and give me your thoughts on my work so far.
- - - EDIT - - -
Thank you for trying out in my package, the latest version can be found at my repository:
https://bitbucket.org/arsooy/pyside_aur/
I'll try to answer any question as fast as I can. Please keep in mind that I cant login to ArchLinux forum regularly at this time, so I might be a little bit late (or maybe waaay too late) to respond if you have any issue. I usually push my changes to bitbucket before going to bed, so people should just check for new commits at my repository instead of posts from me in this thread.
Thank you.
Last edited by arlx_ignacy (2012-09-06 12:16:44)

First I'm sorry for the late reply, I'm one of those (rare) people who check their e-mails once every two week or so.
andre.vmatos wrote:
Hi.
Thanks very much for this effort, since I was waiting for a pyside python3 capable pkgbuild.
From hg repository, python-shibokengenerator and python-libshiboken compiled fine. But python-pyside package failed in make with the following error:
[ 54%] Building CXX object PySide/QtGui/CMakeFiles/QtGui.dir/PySide/QtGui/qtexttablecellformat_wrapper.cpp.o
[ 54%] Building CXX object PySide/QtGui/CMakeFiles/QtGui.dir/PySide/QtGui/qtexttablecell_wrapper.cpp.o
[ 54%] Building CXX object PySide/QtGui/CMakeFiles/QtGui.dir/PySide/QtGui/qtexttableformat_wrapper.cpp.o
In file included from /sec/Dev/PKGBUILDs/pyside_aur/python-pyside/src/build/PySide/QtGui/PySide/QtGui/qtexttableformat_wrapper.cpp:36:0:
/sec/Dev/PKGBUILDs/pyside_aur/python-pyside/src/build/PySide/QtGui/PySide/QtGui/pyside_qtgui_python.h: In function ‘PyTypeObject* Shiboken::SbkType() [with T = QStyleOptionButton, PyTypeObject = _typeobject]’:
/sec/Dev/PKGBUILDs/pyside_aur/python-pyside/src/build/PySide/QtGui/PySide/QtGui/pyside_qtgui_python.h:1181:65: internal compiler error: Falha de segmentação
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
make[2]: ** [PySide/QtGui/CMakeFiles/QtGui.dir/PySide/QtGui/qtexttableformat_wrapper.cpp.o] Erro 1
make[1]: ** [PySide/QtGui/CMakeFiles/QtGui.dir/all] Erro 2
make: ** [all] Erro 2
Can you help fixing it? Thnx again
As for your problem, I cannot re-produce this. I just remove my python-shiboken* + python-pyside* packages, rebuild them using AUR scripts from my bitbucket, and I manage to install them (yet again) successfully. Please provide more detail on your system.
andre.vmatos wrote:
Hi.
Trying to compile again, but now with pyside for python2 (from aur) installed, python-pyside compiled fine. But, the python libraries were installed into /usr/lib/python2.7. Follow content of package:
[root@midichlorian python-pyside #] tar -tf python-pyside-1.1.0-1-x86_64.pkg.tar.xz
.PKGINFO
usr/
usr/include/
usr/lib/
usr/share/
usr/share/PySide-py3/
usr/share/PySide-py3/typesystems/
usr/share/PySide-py3/typesystems/typesystem_help.xml
usr/share/PySide-py3/typesystems/typesystem_core_mac.xml
usr/share/PySide-py3/typesystems/typesystem_webkit.xml
usr/share/PySide-py3/typesystems/typesystem_opengl.xml
usr/share/PySide-py3/typesystems/typesystem_xml.xml
usr/share/PySide-py3/typesystems/typesystem_gui_win.xml
usr/share/PySide-py3/typesystems/typesystem_core_win.xml
usr/share/PySide-py3/typesystems/typesystem_gui.xml
usr/share/PySide-py3/typesystems/typesystem_webkit_simulator.xml
usr/share/PySide-py3/typesystems/typesystem_core_common.xml
usr/share/PySide-py3/typesystems/typesystem_svg.xml
usr/share/PySide-py3/typesystems/typesystem_test.xml
usr/share/PySide-py3/typesystems/typesystem_gui_x11.xml
usr/share/PySide-py3/typesystems/typesystem_phonon.xml
usr/share/PySide-py3/typesystems/typesystem_gui_simulator.xml
usr/share/PySide-py3/typesystems/typesystem_network.xml
usr/share/PySide-py3/typesystems/typesystem_declarative.xml
usr/share/PySide-py3/typesystems/typesystem_core_x11.xml
usr/share/PySide-py3/typesystems/typesystem_core.xml
usr/share/PySide-py3/typesystems/typesystem_core_maemo.xml
usr/share/PySide-py3/typesystems/typesystem_sql.xml
usr/share/PySide-py3/typesystems/typesystem_scripttools.xml
usr/share/PySide-py3/typesystems/typesystem_gui_maemo.xml
usr/share/PySide-py3/typesystems/typesystem_multimedia.xml
usr/share/PySide-py3/typesystems/typesystem_gui_mac.xml
usr/share/PySide-py3/typesystems/typesystem_templates.xml
usr/share/PySide-py3/typesystems/typesystem_uitools.xml
usr/share/PySide-py3/typesystems/typesystem_xmlpatterns.xml
usr/share/PySide-py3/typesystems/typesystem_gui_common.xml
usr/share/PySide-py3/typesystems/typesystem_script.xml
usr/lib/libpyside-py3-python2.7.so.1.1.0
usr/lib/cmake/
usr/lib/libpyside-py3-python2.7.so
usr/lib/pkgconfig/
usr/lib/python2.7/
usr/lib/libpyside-py3-python2.7.so.1.1
usr/lib/python2.7/site-packages/
usr/lib/python2.7/site-packages/PySide/
usr/lib/python2.7/site-packages/PySide/phonon.so
usr/lib/python2.7/site-packages/PySide/QtUiTools.so
usr/lib/python2.7/site-packages/PySide/QtXml.so
usr/lib/python2.7/site-packages/PySide/QtMultimedia.so
usr/lib/python2.7/site-packages/PySide/QtScript.so
usr/lib/python2.7/site-packages/PySide/QtSvg.so
usr/lib/python2.7/site-packages/PySide/QtScriptTools.so
usr/lib/python2.7/site-packages/PySide/QtGui.so
usr/lib/python2.7/site-packages/PySide/__init__.py
usr/lib/python2.7/site-packages/PySide/QtNetwork.so
usr/lib/python2.7/site-packages/PySide/QtXmlPatterns.so
usr/lib/python2.7/site-packages/PySide/QtDeclarative.so
usr/lib/python2.7/site-packages/PySide/QtCore.so
usr/lib/python2.7/site-packages/PySide/QtHelp.so
usr/lib/python2.7/site-packages/PySide/QtTest.so
usr/lib/python2.7/site-packages/PySide/QtWebKit.so
usr/lib/python2.7/site-packages/PySide/QtOpenGL.so
usr/lib/python2.7/site-packages/PySide/QtSql.so
usr/lib/pkgconfig/pyside-py3.pc
usr/lib/cmake/PySide-py3-1.1.0/
usr/lib/cmake/PySide-py3-1.1.0/PySideConfig.cmake
usr/lib/cmake/PySide-py3-1.1.0/PySideConfig-python2.7.cmake
usr/lib/cmake/PySide-py3-1.1.0/PySideConfigVersion.cmake
usr/include/PySide-py3/
usr/include/PySide-py3/QtGui/
usr/include/PySide-py3/QtNetwork/
usr/include/PySide-py3/pysidemetafunction.h
usr/include/PySide-py3/dynamicqmetaobject.h
usr/include/PySide-py3/phonon/
usr/include/PySide-py3/pysideconversions.h
usr/include/PySide-py3/QtXmlPatterns/
usr/include/PySide-py3/pysideweakref.h
usr/include/PySide-py3/pysidemacros.h
usr/include/PySide-py3/QtCore/
usr/include/PySide-py3/QtDeclarative/
usr/include/PySide-py3/QtScriptTools/
usr/include/PySide-py3/destroylistener.h
usr/include/PySide-py3/pysideproperty.h
usr/include/PySide-py3/QtMultimedia/
usr/include/PySide-py3/QtSvg/
usr/include/PySide-py3/QtScript/
usr/include/PySide-py3/QtWebKit/
usr/include/PySide-py3/pyside.h
usr/include/PySide-py3/globalreceiver.h
usr/include/PySide-py3/QtOpenGL/
usr/include/PySide-py3/QtHelp/
usr/include/PySide-py3/pysidesignal.h
usr/include/PySide-py3/pysideqflags.h
usr/include/PySide-py3/pyside_global.h
usr/include/PySide-py3/QtUiTools/
usr/include/PySide-py3/signalmanager.h
usr/include/PySide-py3/QtXml/
usr/include/PySide-py3/pysideclassinfo.h
usr/include/PySide-py3/QtSql/
usr/include/PySide-py3/QtTest/
usr/include/PySide-py3/QtTest/pyside_qttest_python.h
usr/include/PySide-py3/QtSql/pyside_qtsql_python.h
usr/include/PySide-py3/QtXml/pyside_qtxml_python.h
usr/include/PySide-py3/QtUiTools/pyside_qtuitools_python.h
usr/include/PySide-py3/QtHelp/pyside_qthelp_python.h
usr/include/PySide-py3/QtOpenGL/pyside_qtopengl_python.h
usr/include/PySide-py3/QtWebKit/pyside_qtwebkit_python.h
usr/include/PySide-py3/QtScript/pyside_qtscript_python.h
usr/include/PySide-py3/QtSvg/pyside_qtsvg_python.h
usr/include/PySide-py3/QtMultimedia/pyside_qtmultimedia_python.h
usr/include/PySide-py3/QtScriptTools/pyside_qtscripttools_python.h
usr/include/PySide-py3/QtDeclarative/pyside_qtdeclarative_python.h
usr/include/PySide-py3/QtCore/pyside_qtcore_python.h
usr/include/PySide-py3/QtXmlPatterns/pyside_qtxmlpatterns_python.h
usr/include/PySide-py3/phonon/pyside_phonon_python.h
usr/include/PySide-py3/QtNetwork/pyside_qtnetwork_python.h
usr/include/PySide-py3/QtGui/pyside_qtgui_python.h
usr/include/PySide-py3/QtGui/qpytextobject.h
Thnx again.
I see you are running as root, I dont know if this related to the problem.. maybe you should try running makepkg as normal user?
As for the files .. they are going to the right locations. It seems your system uses Python 2 modules (usr/lib/libpyside-py3-python2.7.so) when building pyside, this should not happen if python-shibokengenerator installed.
Are you sure you have python-shibokengenerator and python-libshiboken installed before building python-pyside? Most likely the cmake failed to detect your python 3 module. If you have python-shibokengenerator (which uses Python 3) installed it will tell cmake to use your python 3 interpreter.
As a comparision, this is how I install my pyside packages:
build python-shibokengenerator
build python-libshiboken
install python-shibokengenerator
install python-libshiboken
build python-pyside
install python-pyside
build python-pyside-tools
install python-pyside-tools
Thanks.

Similar Messages

  • Is there a python-dev package?

    I can't compile python-sexy from aur because python headers not found:
    checking for headers required to compile python extensions... not found
    configure: error: could not find Python headers
    is there python-dev package in arch?
    What can i do?
    Last edited by gaara (2007-11-15 05:48:58)

    I have base-devel and the problem continue, I found my python headers with python-config --cflags, but i don't know what does python-sexy not found those libraries
    Last edited by gaara (2007-11-15 16:25:02)

  • Python-mako package and python3

    Hi everyone,
    Mako 5 is compatible with both python 2 and python 3 but currently there is only one package, python-mako, which installs Mako for python2 only.
    Shouldn't there be two packages, python2-mako and python-mako ?
    Thanks,
    Nathan

    Done : https://bugs.archlinux.org/task/26755 : FS#26755 - Current python-mako package should be split into python2-mako and python-mako
    Thanks you.
    Nathan

  • [SOLVED] Can't compile kyotocabinet-python AUR package after Python up

    Hello,
    after today's upgrade to 3.3.0-1, Python lost access to the kyotocabinet package (kyotocabinet-python 1.22-1 from AUR). I tried to recompile it, but when I run makepkg, It just aborts with an error. Anyone knows what is going on?
    running build
    running build_ext
    building 'kyotocabinet' extension
    gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include -I/usr/include/python3.3m -c kyotocabinet.cc -o build/temp.linux-i686-3.3/kyotocabinet.o
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from /usr/include/python3.3m/pyatomic.h:8:0,
    from /usr/include/python3.3m/Python.h:53,
    from kyotocabinet.cc:24:
    /usr/include/python3.3m/dynamic_annotations.h:472:3: error: template with C linkage
    error: command 'gcc' failed with exit status 1
    EDIT: Issue Solved.
    Last edited by jjalocha (2012-11-21 11:27:28)

    Hello,
    sadly I still haven't been able to recompile kyotocabinet-python with the new Python version (3.3.0-1)—it always gives the same error described in my first post. No new version has been released by Hatsuki Hirabayashi either, so I had to downgrade the system to Python 3.2.3-3.
    I'd like to know if anyone else is currently able/unable to use kyotocabinet-python, so that I may contact the package author directly.
    Any ideas?

  • [solved] Building with JHBuild needs the Python libxml2 package

    Hi all, I'm attempting to build GNOME Music with JHBuild. It's failing with an error about needing the Python package for libxml2 while building itstool.
    You can find my jhbuildrc here. Here's the log:
    *** Checking out itstool *** [2/64]
    *** Configuring itstool *** [2/64]
    ./configure --prefix /usr/local/gnome --libdir '/usr/local/gnome/lib64' --disable-static --disable-gtk-doc PYTHON=/usr/bin/python2
    configure: WARNING: unrecognized options: --disable-static, --disable-gtk-doc
    checking for a BSD-compatible install... /usr/bin/install-check
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether /usr/bin/python2 version >= 2.6... yes
    checking for /usr/bin/python2 version... 2.7
    checking for /usr/bin/python2 platform... linux2
    checking for /usr/bin/python2 script directory... ${prefix}/lib/python2.7/site-packages
    checking for /usr/bin/python2 extension module directory... ${exec_prefix}/lib/python2.7/site-packages
    checking for python module libxml2... not found
    configure: error: Python module libxml2 is needed to run this package
    *** Error during phase configure of itstool: ########## Error running ./configure --prefix /usr/local/gnome --libdir '/usr/local/gnome/lib64' --disable-static --disable-gtk-doc PYTHON=/usr/bin/python2 *** [2/64]
    I've tried installing python2-lxml - no luck. I've also tried
    sudo pip2 install lxml
    again with no luck. Is there some environment variable that I need to be setting?
    I've searched the BBS, I've Googled, and I've looked at the GNOME Wiki.
    jhbuild sanitycheck
    returns 0 with no output. I tried
    jhbuild bootstrap
    too - that said it built one thing (didn't say what), but did nothing to fix my problem.
    Any ideas?
    Last edited by strugee (2014-04-13 21:08:57)

    jdbrown wrote:Does this solve your problem?
    Yes, thanks so much. Should have checked the wiki...

  • Error trying to import python dbxml package

    Hi,
    I can see a similar thread fro windows (see: Python API setup problem on Windows but I'm having this problem with fedora15 (64bit) / Python2.7 / BDB XML 2.5.16:
    I can build and install BDB XML without any problems following the standard documentation. I'm then trying to get the Python API to work.
    I followed the instructions and the bsddb3.db library works fine:
    #$ python
    #>>> from bsddb3.db import *
    #>>> print version()
    (4, 8, 26)
    #>>> exit()
    the problem is trying to import dbxml:
    #$ python
    #>>> from bsddb3.db import *
    #>>> from dbxml import *
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/lib64/python2.7/site-packages/dbxml.py", line 25, in <module>
    dbxml = swigimport_helper()
    File "/usr/lib64/python2.7/site-packages/dbxml.py", line 24, in swig_import_helper
    return _mod
    UnboundLocalError: local variable '_mod' referenced before assignment
    #>>>
    And if I then try to reimport:
    (following directly on from the above snippet)
    #>>> from dbxml import *
    Segmentation fault
    ... and python closes.
    Any thoughts?
    Thanks!
    Edited by: 898830 on 23-Nov-2011 11:11
    Edited by: 898830 on 23-Nov-2011 11:13

    Hi,
    After an interesting few days I think it is now working! complete reinstall seemed to do it.
    Thanks!

  • Guide me in making AUR for a python package

    This is the package http://pypi.python.org/pypi/BitTorrent-bencode/5.0.8
    - This python package is wrongly packaged. http://stackoverflow.com/questions/2693 … ode-module
    - Also, it contains a test directory. Is it a concern?
    This is the AUR (thats wrong)
    pkgname=python2-bencode
    _realname=BitTorrent-bencode
    pkgver=5.0.8
    pkgrel=1
    pkgdesc="The BitTorrent bencode python module as leight-weight, standalone package."
    url="http://pypi.python.org/pypi/BitTorrent-bencode"
    arch=('i686' 'x86_64')
    license=('GPL')
    depends=('python2')
    makedepends=('python2-distribute')
    source=(http://pypi.python.org/packages/source/B/BitTorrent-bencode/$_realname-$pkgver.tar.gz)
    md5sums=('5ad77003d18fc2e698d8d0d83be78d11')
    build(){
    cd "$srcdir/$_realname-$pkgver"
    # python2 fix
    for file in $(find . -name '*.py' -print); do
    sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python2_' $file
    sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
    done
    python2 setup.py install --root="$pkgdir" --optimize=1
    Guide me in making a perfect PKGBUILD.

    What I do is get the sources and MD5s in the PKGBUILD, then makepkg -o.  I'll manually compile the sources but not install them, and when I have a few one-liners that make the magic happen, I put it into the build() section.  Then I'll rm -rf the $srcdir and actually try it with package { true; } as the package() function.  If that works, I'll try some install lines (instead of true) and run find against the $pkgdir.  If it all looks good, I'll make sure my dependencies are in check and pack it up.

  • [SOLVED] missing package [python-appindicator]

    First of all I must thank you guys for the amazing distribution and your hard work.
    I have tried to run https://gist.github.com/blazeeboy/6201049 but it gave me the following error
    ImportError: No module named appindicator
    and then I started searching for python-appindicator package .. for a week I couldn't find something works.
    that's it
    Last edited by ServeR00T (2013-10-14 02:50:54)

    Scimmia wrote:I believe it's part of the libappindicator package in the AUR. You may need to change the shebang to python2 instead of python to make it work as well.
    Thank you Scimmia .. It's really simple, this works

  • Idea for package review system

    I've set up a small proposal at http://arch.gooeylinux.org/ . I had been discussing with Xentac for a while about displaying random packages on the Arch front page. The devels would then encourage people to test them, and go along the lines of "if you can't program, or don't have lots of free time, help out this way". People want to help, but they need a "starting point", and the random packages give that.
    The packages listed at the top of the linked page are just random, and don't really mean much. It's just an example.
    Basically, my problem with the current system is that once a package makes it into -Current, there is no periodic review to make sure the packages are still working, up to date, etc. This would provide a network of people to review first, current packages, and second, new major changes that the devels want to implement, but don't want to risk without testing. It's all explained on the link.  This network of testers could be a very valuable asset to the developers.
    lavapunk helped out and tested 4 random packages I listed yesterday and found 3 packaging/build errors. I think this helps to prove the system is needed.
    I'd love any criticism. I'm sure there's kinks in the idea.

    contrasutra wrote:
    OK, I was thinking of expanding the project with a "package feedback" system, where people would report WORKING packages (bugtracker is still the place for broken packages).
    This would help me get an idea about who is participating, and it would give us some assurance packages are working well. Does this sound like a good idea? What type of system should I use?
    Just a small update, from chatting on IRC, it seems as if a few more broken packages were found through the project testing (not by me).
    this sounds like an excelent idea ... but what system to use i dont know exactly --- i would start with a mysql-db (maybe you can have an export from the original one??) and a php interface with user/account access ... but i'm proposing this, because this is the only solution i really can code to work and did, so maybe there are other better ones (tomcat? ...?)

  • Problems installing python-chess

    I need to install python-chess package:
    https://pypi.python.org/pypi/python-chess
    The author states the following is needed for installation:
    Building
    libboost-regex-dev and libboost-python-dev are required.
    I assume that he's talking about ubuntu based systems. I have boost installed, but am not sure do I need something else:
    pacman -Ss boost
    extra/boost 1.54.0-4 [installed]
    Free peer-reviewed portable C++ source libraries - Development
    extra/boost-libs 1.54.0-4 [installed]
    Free peer-reviewed portable C++ source libraries - Runtime
    community/boost-build 2.0_m12-5 [installed]
    Boost build system
    During installation, using easy_install I get the following warning, but it seems to install ok:
    easy_install --user python-chess
    Searching for python-chess
    Reading https://pypi.python.org/simple/python-chess/
    Best match: python-chess 0.0.5
    Downloading https://pypi.python.org/packages/source/p/python-chess/python-chess-0.0.5.tar.gz#md5=456efb47a1431c16472b27063269e85b
    Processing python-chess-0.0.5.tar.gz
    Writing /tmp/easy_install-skh87f/python-chess-0.0.5/setup.cfg
    Running python-chess-0.0.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-skh87f/python-chess-0.0.5/egg-dist-tmp-xfxhpk
    Not SVN Repository
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ [enabled by default]
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ [enabled by default]
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ [enabled by default]
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ [enabled by default]
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ [enabled by default]
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ [enabled by default]
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ [enabled by default]
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ [enabled by default]
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ [enabled by default]
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ [enabled by default]
    zip_safe flag not set; analyzing archive contents...
    __pycache__.libchess.cpython-33: module references __file__
    Adding python-chess 0.0.5 to easy-install.pth file
    Installing ecotool.py script to /home/ed/.local/bin
    Installed /home/ed/.local/lib/python3.3/site-packages/python_chess-0.0.5-py3.3-linux-x86_64.egg
    Processing dependencies for python-chess
    Finished processing dependencies for python-chess
    Finally, it seems that installation is finished but I get an error:
    import chess
    import chess
    ImportError Traceback (most recent call last)
    <ipython-input-1-31dd7659fda0> in <module>()
    ----> 1 import chess
    /home/ed/.local/lib/python3.3/site-packages/python_chess-0.0.5-py3.3-linux-x86_64.egg/chess/__init__.py in <module>()
    28
    29 # Import from libchess.
    ---> 30 from libchess import START_FEN
    31 from libchess import opposite_color
    32 from libchess import Square
    ImportError: /usr/lib/libboost_python.so.1.54.0: undefined symbol: PyClass_Type
    Btw, the library works fine with python 2.7.
    Last edited by enedene (2013-11-28 14:10:33)

    Python is not an app, it's an operating programme, like Flash or Java, you won't get an icon. By the way, why do you want Python ? I have it and it makes a novelty Beer programme fill screen then empty when tilted ! Only bothered with it because I have a mate who thought his fruit based product was the best thing since sliced bread, worry about Python if you find something you really want that requires it to work !
    Good Luck
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • Python applications using QT crashing

    When I run a program such as ipython with the qt interface or picard, I get import errors with the QtGui.so library. I've tried reinstalling the python-pyside, python-pyside-tools, python2-pyqt, and pyqt packages, to no avail.
    $ ipython qtconsole
    Traceback (most recent call last):
    File "/usr/lib/python3.3/site-packages/IPython/external/qt.py", line 40, in <module>
    from PySide import QtCore, QtGui, QtSvg
    ImportError: /usr/lib/python3.3/site-packages/PySide/QtGui.so: undefined symbol: _ZTI9QGtkStyle
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
    File "/usr/lib/python3.3/site-packages/IPython/external/qt.py", line 46, in <module>
    from PyQt4 import QtCore, QtGui, QtSvg
    ImportError: /usr/lib/python3.3/site-packages/PyQt4/QtGui.so: undefined symbol: _ZN15QSessionManager16staticMetaObjectE
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
    File "/usr/bin/ipython", line 9, in <module>
    load_entry_point('ipython==0.13.2', 'console_scripts', 'ipython3')()
    File "/usr/lib/python3.3/site-packages/IPython/frontend/terminal/ipapp.py", line 388, in launch_new_instance
    app.initialize()
    File "<string>", line 2, in initialize
    File "/usr/lib/python3.3/site-packages/IPython/config/application.py", line 84, in catch_config_error
    return method(app, *args, **kwargs)
    File "/usr/lib/python3.3/site-packages/IPython/frontend/terminal/ipapp.py", line 313, in initialize
    super(TerminalIPythonApp, self).initialize(argv)
    File "<string>", line 2, in initialize
    File "/usr/lib/python3.3/site-packages/IPython/config/application.py", line 84, in catch_config_error
    return method(app, *args, **kwargs)
    File "/usr/lib/python3.3/site-packages/IPython/core/application.py", line 325, in initialize
    self.parse_command_line(argv)
    File "/usr/lib/python3.3/site-packages/IPython/frontend/terminal/ipapp.py", line 308, in parse_command_line
    return super(TerminalIPythonApp, self).parse_command_line(argv)
    File "<string>", line 2, in parse_command_line
    File "/usr/lib/python3.3/site-packages/IPython/config/application.py", line 84, in catch_config_error
    return method(app, *args, **kwargs)
    File "/usr/lib/python3.3/site-packages/IPython/config/application.py", line 420, in parse_command_line
    return self.initialize_subcommand(subc, subargv)
    File "<string>", line 2, in initialize_subcommand
    File "/usr/lib/python3.3/site-packages/IPython/config/application.py", line 84, in catch_config_error
    return method(app, *args, **kwargs)
    File "/usr/lib/python3.3/site-packages/IPython/config/application.py", line 352, in initialize_subcommand
    subapp = import_item(subapp)
    File "/usr/lib/python3.3/site-packages/IPython/utils/importstring.py", line 40, in import_item
    module = __import__(package,fromlist=[obj])
    File "/usr/lib/python3.3/site-packages/IPython/frontend/qt/console/qtconsoleapp.py", line 56, in <module>
    from IPython.external.qt import QtCore, QtGui
    File "/usr/lib/python3.3/site-packages/IPython/external/qt.py", line 57, in <module>
    raise ImportError('Cannot import PySide >= 1.0.3 or PyQt4 >= 4.7')
    ImportError: Cannot import PySide >= 1.0.3 or PyQt4 >= 4.7
    or
    $ picard
    Traceback (most recent call last):
    File "/usr/bin/picard", line 2, in <module>
    from picard.tagger import main; main('/usr/share/locale', True)
    File "/usr/lib/python2.7/site-packages/picard/tagger.py", line 21, in <module>
    from PyQt4 import QtGui, QtCore
    ImportError: /usr/lib/python2.7/site-packages/PyQt4/QtGui.so: undefined symbol: _ZN15QSessionManager16staticMetaObjectE
    It seems like there might have been a problem in linking. How can I fix this?

    I don't get this behavior, but I have only pyqt installed. It appears that you have both pyside and pyqt installed - I thought they were supposed to be mutually exclusive. Does having both cause some lib conflict? You might try uninstalling both, then reinstalling just one of them.
    Mike

  • [SOLVED]Matplotlib doesn't build (perhaps Python issue)

    Hi there,
    when trying to install `python2-matplotlib-noqt` I ve run into the following error:
    Traceback (most recent call last):
    File "setup.py", line 155, in <module>
    result = package.check()
    File "/tmp/yaourt-tmp-alex/aur-python2-matplotlib-noqt/src/matplotlib-1.4.2/setupext.py", line 1729, in check
    return super(BackendGtkAgg, self).check()
    File "/tmp/yaourt-tmp-alex/aur-python2-matplotlib-noqt/src/matplotlib-1.4.2/setupext.py", line 504, in check
    additional_info = self.check_requirements()
    File "/tmp/yaourt-tmp-alex/aur-python2-matplotlib-noqt/src/matplotlib-1.4.2/setupext.py", line 1626, in check_requirements
    import gtk
    File "/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 45, in <module>
    from gtk.deprecation import _Deprecated, _DeprecatedConstant
    ValueError: bad marshal data (unknown type code)
    ==> ERROR: A failure occurred in build().
    Aborting...
    ==> ERROR: Makepkg was unable to build python2-matplotlib-noqt.
    Googling suggests that the problem is incompatibility between matplotlib and python versions. So I updated python to version 3.4, but pkgbuid still pulls file from `/usr/lib/python2.7`,though this particular version is not explicitly set in `PKGBUILD`:
    pkgname=python2-matplotlib-noqt
    pkgver=1.4.2
    pkgrel=1
    pkgdesc="A python plotting library, making publication quality plots"
    arch=('i686' 'x86_64')
    url='http://matplotlib.org'
    license=('custom')
    depends=('python2-pytz' 'python2-numpy' 'python2-cairo' 'python2-dateutil' 'python2-pyparsing')
    makedepends=('python2-pytz' 'python2-numpy' 'tk' 'python2-cairo' 'python2-dateutil'
    'python2-gobject' 'python2-pyparsing' 'pygtk' 'python-six' 'ghostscript' 'texlive-bin')
    optdepends=('python-gobject: for GTK3Agg/GTK3Cairo backend'
    'python-cairo: for GTK3Cairo backend'
    'tk: used by the TkAgg backend'
    'ghostscript: usetex dependencies'
    'texlive-bin: usetex dependencies'
    'python-tornado: for webagg backend')
    source=("https://github.com/matplotlib/matplotlib/archive/v$pkgver.tar.gz")
    sha512sums=('60e7cca791fe607f17db85e5e5a85d4a503c7ae584cd0333ff271ca0a92acbb3f08774c2d0f6e03414a1fe116187d0bcf5c47d29935e77c5a0e91e493db8333f')
    prepare() {
    cd matplotlib-${pkgver}
    for file in $(find . -name '*.py' -print); do
    sed -i -e "s|^#!.*/usr/bin/python|#!/usr/bin/python2|" \
    -e "s|^#!.*/usr/bin/env *python|#!/usr/bin/env python2|" ${file}
    done
    build() {
    cd matplotlib-${pkgver}
    python2 setup.py build
    package() {
    cd matplotlib-${pkgver}
    python2 setup.py install -O1 --skip-build --root "${pkgdir}" --prefix=/usr
    install -dm755 "${pkgdir}"/usr/share/licenses/python2-matplotlib-noqt
    install -m 644 doc/users/license.rst "${pkgdir}"/usr/share/licenses/python2-matplotlib-noqt
    i'm at a loss
    Last edited by L1ghtmareI (2014-11-02 10:22:46)

    First of all, you should be clear about what's you are doing. You are trying to build python2-matplotlib-noqt from the AUR. Bugs in the AUR packages must be mentioned/discussed in the comment of that package. I don't see how this package disable the qt dependency besides nor requiring it, but I have not investigate the build process of matplotlib. What I would suggest is to try to build the official python-matplotlib package and make the modification yourself so that it does not depend of qt, if you know how to do it. If not, simply install the official package.
    Last edited by olive (2014-11-01 21:59:41)

  • Python-numpy broken

    Ok, my first pacman upgrade error ever I haven't been able to solve by a search in this forum, I'm afraid it might not be so straight forward.
    Last night doing a pacman -Syu gave me an error that said gcc-fortran was missing, found this http://bbs.archlinux.org/viewtopic.php?id=45642 thread and made a change in the PKGBUILD dependecy list from "gcc-fortran" to "gcc-libs". After that pacman -Su worked.
    However, today trying to work on a school project requiring python-numpy I got this error while trying to run my code:
    File "/usr/lib/python2.5/site-packages/numpy/linalg/linalg.py", line 25, in <module>
    from numpy.linalg import lapack_lite
    ImportError: libgfortran.so.2: cannot open shared object file: No such file or directory
    A quick look in /usr/lib/ showed no libgfortran.so.2 file but a libgfortran.so.3 file. Hoping for a quick fix so I could continue my work I made a symlink libgfortran.so.2 -> libgfortran.so.3. But it gave me this error:
    File "/usr/lib/python2.5/site-packages/numpy/linalg/linalg.py", line 25, in <module>
    from numpy.linalg import lapack_lite
    ImportError: /usr/lib/libblas.so.3: undefined symbol: scabs1_
    I would guess that the python-numpy package isn't updated to use the new fortran libs? If anyone have any idea how to fix this I would be greatful.
    Last edited by ccchris (2008-03-28 12:17:00)

    Ok, I finally had time to fix this, and learned a bit about Arch/ABS too
    For inexperienced users with the same problem as me this is what i did:
    1. Installed ABS and ran 'abs' as root (more info here http://wiki.archlinux.org/index.php/ABS … ild_System )
    2. Copied the files in /var/abs/extra/science/blas/ to a folder in my ~
    3. nano Makefile -> add 'scabs1.o' to the end of the OBJS list, save & quit. (info from here: http://bugs.archlinux.org/task/9905?pro … &pagenum=2 )
    4. md5sum Makefile -> replace old md5 in PKGBUILD, save & quit.
    5. as user, 'makepkg'
    6. as root, pacman -U blas-19980702-4-i686.pkg.tar.gz
    Now it seems to work, thanks for the help!

  • 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.

  • Upgrade Python to 2.7 in Sparc Solaris 11.2

    Hi,
    Can anyone suggest a way to upgrade the Python from 2.6.8 in my Sparc Solaris 11.2 to 2.7+?

    Python 2.7 is available since Solaris 11. You have just to install the runtime/python-27 package.
    For information, this is not an upgrade but a parallel installation.

Maybe you are looking for

  • Replacement iPod - Still Not Working

    Last week I sent my 30GB to Apple for service (after having it only a month) and I recieved my replacement yesterday, but I'm still having issues. When I first got it home, it hooked up to iTunes and my laptop just fine, but then it stopped transferr

  • RFC lookup issue

    Dear experts, i have a file to file scenario where in the graphical mapping i have to write a RFC lookup to get some data from R3 system ... i have written the following RFC lookup and it is working fine.... java.lang.;java.util.;com.sap.aii.mapping.

  • Making images rotate randomly on a page.....

    Hi, I am sorta new to DW, and I want to design a page that has either random images or text displayed without using flash.  I kinda want this effect (it takes about 10 seconds to start)  http://www.oen.org/ Is this done with Java Script?  And any poi

  • Reg Mapping KANBAN - safety stock

    Hi This is Regarding KANBAN Business scenario: Container will have safety stock maintained, Procurement will trigger only when stock in container goes below safety stock. not when container is empty. We dont want system to calculate KANBAN quantity P

  • Download Internal table to Excel with different Tabs -  ole2_object

    Hi All, I am using  ole2_object to download the data from internal table to Excel file. As per different values in sorting key, data will be downloading in different tab in same Excel file. In my internal table one field is of character type and some