asvel / pygs Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jmatt/pygs
[UNMAINTAINED] Python bindings to libqxt's QxtGlobalShortcut
License: GNU General Public License v3.0
This project forked from jmatt/pygs
[UNMAINTAINED] Python bindings to libqxt's QxtGlobalShortcut
License: GNU General Public License v3.0
On OS X where I installed PyQt from source, I get https://gist.githubusercontent.com/Tamriel/d7e9398d0d7f596059ec/raw/65a3506dab4131d96d538faa496b2df1cce2323b/gistfile1.txt
On OS X where I installed PyQt with brew, I get https://gist.githubusercontent.com/Tamriel/7b412366432e0df14ceb/raw/5f8074c26c5a730652e6c583dc9543ab65a2e1bd/gistfile1.txt
On Ubuntu where I installed PyQt with apt-get, I get https://gist.githubusercontent.com/Tamriel/5effe03e81ba94d2975b/raw/a63d311bbc8f58ba0bcba5eed8afdb8ccf4c30b5/gistfile1.txt
On Windows where I installed PyQt binary package and Visual C++ 2010 Express, I get https://gist.githubusercontent.com/Tamriel/7107521081f2f26cdd22/raw/f6cbb98f506162488117d46c1add013785272349/gistfile1.txt
Has anyone got this running with PyQt5?
When I run the file examples/simple.py
I get
File "C:\Users\Jan\Desktop\a.py", line 23, in <module>
shortcut_show.setShortcut(QKeySequence(SHORTCUT_SHOW))
TypeError: QxtGlobalShortcut.setShortcut(): argument 1 has unexpected type 'QKeySequence'
I installed pygs on windows via PyGlobalShortcut-0.2.1-Wheel-for-PyQt5-5.3.1-gpl-Py3.4-Qt5.3.1-x32.zip
HI, first off all, thank you for bringing cross-platform global shortcuts to python!!!
Could you please provide an example of how to include the hotkey functionality in a pyqt app?
yours sincerely Mrs. Frisbee
When trying to install pygs with pip it fails with the following error:
File "/tmp/pip_build_root/PyGlobalShortcut/setup.py", line 30, in check_call
except FileNotFoundError as ex:
NameError: global name 'FileNotFoundError' is not defined
FileNotFoundError
does not exist in Python 2.x
Hello,
When I try to install this lib thru pip, I get an error. Here is a full log:
Install packages failed: Error occurred when installing package PyGlobalShortcut.
The following command was executed:
/home/milan/Programy/pycharm-community-3.4/helpers/packaging_tool.py install --build-dir /tmp/pycharm-packaging2256632423874852340.tmp PyGlobalShortcut
The error output of the command:
DEPRECATION: --no-install, --no-download, --build, and --no-clean are deprecated. See https://github.com/pypa/pip/issues/906.
Downloading/unpacking PyGlobalShortcut
Running setup.py (path:/tmp/pycharm-packaging2256632423874852340.tmp/PyGlobalShortcut/setup.py) egg_info for package PyGlobalShortcut
Installing collected packages: PyGlobalShortcut
Running setup.py install for PyGlobalShortcut
building 'QxtGlobalShortcut' library
g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DBUILD_QXT_CORE -DBUILD_QXT_GUI -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../lib -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../libqxt/src/core -I../../libqxt/src/widgets -I. -I../../lib -I. -o qxtglobal.o ../../libqxt/src/core/qxtglobal.cpp
g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DBUILD_QXT_CORE -DBUILD_QXT_GUI -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../lib -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../libqxt/src/core -I../../libqxt/src/widgets -I. -I../../lib -I. -o qxtglobalshortcut.o ../../libqxt/src/widgets/qxtglobalshortcut.cpp
g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DBUILD_QXT_CORE -DBUILD_QXT_GUI -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../lib -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../libqxt/src/core -I../../libqxt/src/widgets -I. -I../../lib -I. -o qxtglobalshortcut_x11.o ../../libqxt/src/widgets/x11/qxtglobalshortcut_x11.cpp
/usr/lib/x86_64-linux-gnu/qt4/bin/moc -DBUILD_QXT_CORE -DBUILD_QXT_GUI -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../lib -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../libqxt/src/core -I../../libqxt/src/widgets -I. -I../../lib -I. ../../libqxt/src/widgets/qxtglobalshortcut.h -o moc_qxtglobalshortcut.cpp
g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DBUILD_QXT_CORE -DBUILD_QXT_GUI -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../lib -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../libqxt/src/core -I../../libqxt/src/widgets -I. -I../../lib -I. -o moc_qxtglobalshortcut.o moc_qxtglobalshortcut.cpp
rm -f libQxtGlobalShortcut.a
ar cqs libQxtGlobalShortcut.a qxtglobal.o qxtglobalshortcut.o qxtglobalshortcut_x11.o moc_qxtglobalshortcut.o
building 'pygs' extension
Traceback (most recent call last):
File "/tmp/pycharm-packaging2256632423874852340.tmp/PyGlobalShortcut/pygs/configure.py", line 84, in <module>
subprocess.check_call(command)
File "/usr/lib/python2.7/subprocess.py", line 535, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pycharm-packaging2256632423874852340.tmp/PyGlobalShortcut/setup.py", line 137, in <module>
'build_ext': build_ext_with_sip,
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/local/lib/python2.7/dist-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run
self.run_command('build')
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/distutils/command/build.py", line 128, 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/distutils/command/build_ext.py", line 337, in run
self.build_extensions()
File "/tmp/pycharm-packaging2256632423874852340.tmp/PyGlobalShortcut/setup.py", line 63, in build_extensions
build_ext.build_extensions(self)
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 446, in build_extensions
self.build_extension(ext)
File "/tmp/pycharm-packaging2256632423874852340.tmp/PyGlobalShortcut/setup.py", line 82, in build_extension
check_call([sys.executable, config], cwd=self.build_temp)
File "/tmp/pycharm-packaging2256632423874852340.tmp/PyGlobalShortcut/setup.py", line 30, in check_call
except FileNotFoundError as ex:
NameError: global name 'FileNotFoundError' is not defined
Complete output from command /usr/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pycharm-packaging2256632423874852340.tmp/PyGlobalShortcut/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-lu2QM5-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_clib
building 'QxtGlobalShortcut' library
g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DBUILD_QXT_CORE -DBUILD_QXT_GUI -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../lib -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../libqxt/src/core -I../../libqxt/src/widgets -I. -I../../lib -I. -o qxtglobal.o ../../libqxt/src/core/qxtglobal.cpp
g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DBUILD_QXT_CORE -DBUILD_QXT_GUI -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../lib -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../libqxt/src/core -I../../libqxt/src/widgets -I. -I../../lib -I. -o qxtglobalshortcut.o ../../libqxt/src/widgets/qxtglobalshortcut.cpp
g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DBUILD_QXT_CORE -DBUILD_QXT_GUI -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../lib -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../libqxt/src/core -I../../libqxt/src/widgets -I. -I../../lib -I. -o qxtglobalshortcut_x11.o ../../libqxt/src/widgets/x11/qxtglobalshortcut_x11.cpp
/usr/lib/x86_64-linux-gnu/qt4/bin/moc -DBUILD_QXT_CORE -DBUILD_QXT_GUI -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../lib -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../libqxt/src/core -I../../libqxt/src/widgets -I. -I../../lib -I. ../../libqxt/src/widgets/qxtglobalshortcut.h -o moc_qxtglobalshortcut.cpp
g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DBUILD_QXT_CORE -DBUILD_QXT_GUI -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../lib -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../libqxt/src/core -I../../libqxt/src/widgets -I. -I../../lib -I. -o moc_qxtglobalshortcut.o moc_qxtglobalshortcut.cpp
rm -f libQxtGlobalShortcut.a
ar cqs libQxtGlobalShortcut.a qxtglobal.o qxtglobalshortcut.o qxtglobalshortcut_x11.o moc_qxtglobalshortcut.o
running build_ext
building 'pygs' extension
Traceback (most recent call last):
File "/tmp/pycharm-packaging2256632423874852340.tmp/PyGlobalShortcut/pygs/configure.py", line 84, in <module>
subprocess.check_call(command)
File "/usr/lib/python2.7/subprocess.py", line 535, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pycharm-packaging2256632423874852340.tmp/PyGlobalShortcut/setup.py", line 137, in <module>
'build_ext': build_ext_with_sip,
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/local/lib/python2.7/dist-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run
self.run_command('build')
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/distutils/command/build.py", line 128, 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/distutils/command/build_ext.py", line 337, in run
self.build_extensions()
File "/tmp/pycharm-packaging2256632423874852340.tmp/PyGlobalShortcut/setup.py", line 63, in build_extensions
build_ext.build_extensions(self)
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 446, in build_extensions
self.build_extension(ext)
File "/tmp/pycharm-packaging2256632423874852340.tmp/PyGlobalShortcut/setup.py", line 82, in build_extension
check_call([sys.executable, config], cwd=self.build_temp)
File "/tmp/pycharm-packaging2256632423874852340.tmp/PyGlobalShortcut/setup.py", line 30, in check_call
except FileNotFoundError as ex:
NameError: global name 'FileNotFoundError' is not defined
----------------------------------------
Cleaning up...
Command /usr/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pycharm-packaging2256632423874852340.tmp/PyGlobalShortcut/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-lu2QM5-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pycharm-packaging2256632423874852340.tmp/PyGlobalShortcut
Storing debug log for failure in /root/.pip/pip.log
And when I try install package from downloaded zip, I get this:
sudo python setup.py install
running install
running bdist_egg
running egg_info
writing PyGlobalShortcut.egg-info/PKG-INFO
writing top-level names to PyGlobalShortcut.egg-info/top_level.txt
writing dependency_links to PyGlobalShortcut.egg-info/dependency_links.txt
reading manifest file 'PyGlobalShortcut.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'PyGlobalShortcut.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running build_clib
building 'QxtGlobalShortcut' library
make: Nothing to be done for `first'.
running install_lib
running build_ext
building 'pygs' extension
Traceback (most recent call last):
File "/home/milan/Stažené/PyGlobalShortcut-0.2.1/pygs/configure.py", line 84, in <module>
subprocess.check_call(command)
File "/usr/lib/python2.7/subprocess.py", line 535, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "setup.py", line 137, in <module>
'build_ext': build_ext_with_sip,
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/local/lib/python2.7/dist-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
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/local/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line 161, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line 147, in call_command
self.run_command(cmdname)
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/local/lib/python2.7/dist-packages/setuptools/command/install_lib.py", line 10, in run
self.build()
File "/usr/lib/python2.7/distutils/command/install_lib.py", line 111, in build
self.run_command('build_ext')
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/distutils/command/build_ext.py", line 337, in run
self.build_extensions()
File "setup.py", line 63, in build_extensions
build_ext.build_extensions(self)
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 446, in build_extensions
self.build_extension(ext)
File "setup.py", line 82, in build_extension
check_call([sys.executable, config], cwd=self.build_temp)
File "setup.py", line 30, in check_call
except FileNotFoundError as ex:
NameError: global name 'FileNotFoundError' is not defined
or this
sudo python setup.py install
running install
running bdist_egg
running egg_info
creating PyGlobalShortcut.egg-info
writing PyGlobalShortcut.egg-info/PKG-INFO
writing top-level names to PyGlobalShortcut.egg-info/top_level.txt
writing dependency_links to PyGlobalShortcut.egg-info/dependency_links.txt
writing manifest file 'PyGlobalShortcut.egg-info/SOURCES.txt'
reading manifest file 'PyGlobalShortcut.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'PyGlobalShortcut.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running build_clib
building 'QxtGlobalShortcut' library
g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DBUILD_QXT_CORE -DBUILD_QXT_GUI -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../lib -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../libqxt/src/core -I../../libqxt/src/widgets -I. -I../../lib -I. -o qxtglobal.o ../../libqxt/src/core/qxtglobal.cpp
g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DBUILD_QXT_CORE -DBUILD_QXT_GUI -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../lib -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../libqxt/src/core -I../../libqxt/src/widgets -I. -I../../lib -I. -o qxtglobalshortcut.o ../../libqxt/src/widgets/qxtglobalshortcut.cpp
g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DBUILD_QXT_CORE -DBUILD_QXT_GUI -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../lib -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../libqxt/src/core -I../../libqxt/src/widgets -I. -I../../lib -I. -o qxtglobalshortcut_x11.o ../../libqxt/src/widgets/x11/qxtglobalshortcut_x11.cpp
/usr/lib/x86_64-linux-gnu/qt4/bin/moc -DBUILD_QXT_CORE -DBUILD_QXT_GUI -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../lib -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../libqxt/src/core -I../../libqxt/src/widgets -I. -I../../lib -I. ../../libqxt/src/widgets/qxtglobalshortcut.h -o moc_qxtglobalshortcut.cpp
g++ -c -m64 -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DBUILD_QXT_CORE -DBUILD_QXT_GUI -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../lib -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../libqxt/src/core -I../../libqxt/src/widgets -I. -I../../lib -I. -o moc_qxtglobalshortcut.o moc_qxtglobalshortcut.cpp
rm -f libQxtGlobalShortcut.a
ar cqs libQxtGlobalShortcut.a qxtglobal.o qxtglobalshortcut.o qxtglobalshortcut_x11.o moc_qxtglobalshortcut.o
running install_lib
running build_ext
building 'pygs' extension
Traceback (most recent call last):
File "/home/milan/pygs-master/pygs/configure.py", line 84, in <module>
subprocess.check_call(command)
File "/usr/lib/python2.7/subprocess.py", line 535, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "setup.py", line 139, in <module>
'build_ext': build_ext_with_sip,
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/local/lib/python2.7/dist-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
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/local/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line 161, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line 147, in call_command
self.run_command(cmdname)
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/local/lib/python2.7/dist-packages/setuptools/command/install_lib.py", line 10, in run
self.build()
File "/usr/lib/python2.7/distutils/command/install_lib.py", line 111, in build
self.run_command('build_ext')
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/distutils/command/build_ext.py", line 337, in run
self.build_extensions()
File "setup.py", line 65, in build_extensions
build_ext.build_extensions(self)
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 446, in build_extensions
self.build_extension(ext)
File "setup.py", line 84, in build_extension
check_call([sys.executable, config], cwd=self.build_temp)
File "setup.py", line 30, in check_call
subprocess.check_call(command, cwd=cwd)
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python', '/home/milan/pygs-master/pygs/configure.py']' returned non-zero exit status 1
Platform:
Ubuntu 14.04 LTS x64
All packages are from official repository for this Ubuntu version. Installed:
If you need some more information about my platform settings, just ask. I would love to try your package. Please, fix this issue, thanks.
Milhaus
Hi,
I'm having problem importing pygs. With python3 and PyQt5 when I import pygs, I'm getting:
import pygs
Traceback (most recent call last):
File "", line 1, in
ImportError: /usr/local/lib/python3.4/dist-packages/pygs.so: undefined symbol: _ZTI26QAbstractNativeEventFilter
Installed pygs using pip3:
sudo pip3 install PyGlobalShortcut
I'm on Ubuntu 14.10 x64.
Hello,
Today I've tried to build pygs on another arch linux pc (but with gnome instead of KDE4). The issue on that system is that Qt5 is the default Qt framework and qmake actually points to qmake-qt5
instead of qmake-qt4
.
I've managed to build pygs by replacing qmake
by qmake-qt4
in setup.py
and configure.py
but that is not a proper fix.
Maybe we should add a QMAKE_EXECUTABLE
environement var? (similar to what I did with QT_API
)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.