pyside / pyside Goto Github PK
View Code? Open in Web Editor NEWATTENTION: This project is deprecated, please refer to PySide2
Home Page: https://wiki.qt.io/PySide2
License: GNU Lesser General Public License v2.1
ATTENTION: This project is deprecated, please refer to PySide2
Home Page: https://wiki.qt.io/PySide2
License: GNU Lesser General Public License v2.1
A desktop application generates information in a QThread and signals this infos
to the Main thread of the widget. The signaling crashes the application at
random locations and sometimes overwrites readonly memory.
Qt Promises this is a safe way to send information between threads.
On Linux this works as expected.
The example code has been stripped to signal only strings from the thread to
the widget. The widget will only read the signaled message (copy it to a new
buffer) and does nothing complicated/gui related with the data.
PySide Version: 1.2.4
on a clean osx 10.11.6 do:
sudo xcode-select --install
brew install qt cmake
sudo pip install pyside virtualenv
then fix the installation, because it has broken @rpath and relative library
refs, as root:::
install_name_tool -change \
@rpath/libshiboken-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib
install_name_tool -change \
@rpath/libpyside-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/QtGui.so
install_name_tool -change \
@rpath/libpyside-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/QtCore.so
install_name_tool -change \
@rpath/libshiboken-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/QtGui.so
install_name_tool -change \
@rpath/libshiboken-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/QtCore.so
virtualenv ./var/venv/pyside
# then copy /Library/Python/2.7/site-packages/Pyside to the
virtualenv/lib/python2.7/site-packages
also crashes without a virtualenv
The program displays a window and uses all available cpu due to the
dispatching of the events.
Sometimes the program crashes. The location and exception is not reproducible.
Sometimes the program ends in a non responsive way
Sometimes readonly memory (emitted data) is overwritten (with print on, 10x10
items):
some_item 12345678123456781234pay8load56781234567812345678123456781234 10
some_item <�������� <�������� < 10
More details at the end of the code.
# -*- coding: utf-8 -*-
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
'''
App that displays a GUI that uses a model that is updated using
a backend.
Running this app displays how many (hundred) events have been dispatched
between the backend-thread and the GUI.
Please also read the bug report at the end of the code
In real world the backend is a tornado ioloop that requests network resources
and the GUI should process JSON from those requests. Inspired by backbone.js.
The workaround is not to use threads in pyside.
'''
import atexit
import os
import time
import sys
from PySide.QtGui import QApplication, QWidget, QMainWindow, QVBoxLayout
from PySide.QtCore import (
Qt, QLocale, QTranslator, QTimer, QThread,
QObject, Signal, QCoreApplication
)
LOOP_TIMER_NOOP = 0.01
class many_items(QWidget):
'''
Widget that exists only to be visible and to process the backend data.
'''
def __init__(self, parent, dispatcher):
QWidget.__init__(self, parent)
dispatcher.model_changed.connect(self.handler)
self.event_handled = 0
def handler(self, model_json):
# process data from the backend thread
data = ''
for c in model_json:
data += str(c)
# print 'many_item', data, self.event_handled
self.event_handled += 1
class some_items(QWidget):
'''
Widget that contains multiple widgets connected to the backend data.
The widget itself is also connected, it should be able to have many
more 'many_items' in the QVBoxLayout
'''
def __init__(self, parent, dispatcher):
QWidget.__init__(self, parent)
self.ui = QVBoxLayout(self)
self.items = []
self.event_handled = 0
dispatcher.model_changed.connect(self.handler)
for i in range(0, 10):
item = many_items(self, dispatcher)
self.ui.addWidget(item)
self.items.append(item)
def handler(self, model_json):
# process data from the backend thread
data = ''
for c in model_json:
data += str(c)
# print 'some_item', data, self.event_handled
self.event_handled += 1
class main_item(QWidget):
'''
Main item that is used as central widget and contains many some_items in a
QVBoxLayout.
The widget itself is also connected.
'''
def __init__(self, parent, dispatcher):
QWidget.__init__(self, parent)
self.resize(30, 60)
self.ui = QVBoxLayout(self)
self.items = []
self.event_handled = 0
dispatcher.model_changed.connect(self.handler)
# Reduce the range to simplify the testcase and decrease the number of
# connected objects.
# somexmany: dispatched events required
# 0-10x10: ~ 1k
# 100x100: > 5k
# 10x100: > 20k
# 100x10: ~ 1k
# 1x1: > 1M
# 10x1: < 1k
# 1000x1: > 5k
# if >5k: killall python, restart!
for i in range(0, 10):
item = some_items(self, dispatcher)
self.ui.addWidget(item)
self.items.append(item)
def handler(self, model_json):
# process data from the backend thread
data = ''
for c in model_json:
data += str(c)
# print 'main_item', data, self.event_handled
self.event_handled += 1
#
# the following code is required to make the window and simulate a backend
#
class mainwindow(QMainWindow):
def __init__(self, backend, logger=None):
QMainWindow.__init__(self)
self.backend = backend
self.setCentralWidget(main_item(self, self.backend))
self.resize(300, 600)
self.show()
self.backend.shutdown.connect(self.shutdown)
self.backend.request_data.emit()
def shutdown(self):
print 'mainwindow.shutdown'
QApplication.setQuitOnLastWindowClosed(True)
self.close()
class backend_thread(QThread):
'''
Backend Thread that is responsible to create the backend dispatcher and
make it available to the main-thread. The Backend Thread continuously
executes QCoreApplication.processEvents to ensure that emit'ed signals are
received in this thread. The dispatcher QObject is created when the thread
has started.
'''
def __init__(self, dispatcher_class):
QThread.__init__(self, None)
self.backend_dispatcher_class = dispatcher_class
self.backend_dispatcher = None
def get_dispatcher(self):
'''
Returns the dispatcher for the main-thread.
Should be called after start()
'''
while self.backend_dispatcher is None:
# Thread not yet running
# wait until the dispatcher is available
time.sleep(LOOP_TIMER_NOOP)
return self.backend_dispatcher
def run(self):
'''
Backend Thread main. Schedules qt event loop and enters the tornado
event loop.
'''
self.backend_dispatcher = self.backend_dispatcher_class()
self.backend_dispatcher.shutdown.connect(self.quit)
self.exec_()
class backend_dispatcher(QObject):
'''
Backend Dispatcher to be used by the main thread. All functions of this
class are private and must not be called from the main thread. only
signals may be emitted that qt promises to be thread safe. Most signals
receive a done_signal and a failed_signal in order to handle the async
requests.
'''
model_changed = Signal(basestring)
request_data = Signal()
available = Signal()
shutdown = Signal()
def __init__(self):
QObject.__init__(self)
# receive signal from main thread
self.request_data.connect(self._request_data)
self.dispatched_events = 0
def _request_data(self):
# send response to main thread
# the data is chosen to see the actual corruption
# the corruption is not consistently happening
self.model_changed.emit(
'1234567812345678'
'1234pay8load5678'
'1234567812345678'
'1234567812345678'
'')
self._schedule_request_data()
def _schedule_request_data(self):
'''
Schedule request_data without producing a endless stack.
'''
self.dispatched_events += 1
if self.dispatched_events % 100 == 0:
print self.dispatched_events, int(sys.argv[1])
if int(sys.argv[1]) - self.dispatched_events < 0:
print 'requested amount of requests reached'
self.shutdown.emit()
# do not schedule more requests
# sys.exit(0)
else:
timer = QTimer(self)
timer.start(10)
timer.setSingleShot(True)
timer.timeout.connect(self._request_data)
def run_gui():
'''
Run the GUI for the application.
'''
qApp = QApplication(sys.argv)
backend = backend_thread(backend_dispatcher)
backend.start()
dispatcher = backend.get_dispatcher()
item_window = mainwindow(dispatcher)
item_window.show()
exit_code = qApp.exec_()
sys.exit(exit_code)
if __name__ == '__main__':
run_gui()
'''
Bug Title: Signals between QThread and QWidget cause SIGSEGV in random location
Bug Description:
A desktop application generates information in a QThread and signals this infos
to the Main thread of the widget. The signaling crashes the application at
random locations and sometimes overwrites readonly memory.
Qt Promises this is a safe way to send information between threads.
On Linux this works as expected.
The example code has been stripped to signal only strings from the thread to
the widget. The widget will only read the signaled message (copy it to a new
buffer) and does nothing complicated/gui related with the data.
Pyside Version: 1.2.4
Precondition
linux:
virtualenv ./var/venv/pyside
source ./var/venv/pyside/bin/activate
pip install pyside
on a clean osx 10.11.6 do:
sudo xcode-select --install
brew install qt cmake
sudo pip install pyside virtualenv
then fix the installation, because it has broken @rpath and relative library
refs, as root:::
install_name_tool -change \
@rpath/libshiboken-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib
install_name_tool -change \
@rpath/libpyside-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/QtGui.so
install_name_tool -change \
@rpath/libpyside-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/QtCore.so
install_name_tool -change \
@rpath/libshiboken-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/QtGui.so
install_name_tool -change \
@rpath/libshiboken-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib \
/Library/Python/2.7/site-packages/PySide/QtCore.so
virtualenv ./var/venv/pyside
# then copy /Library/Python/2.7/site-packages/Pyside to the
virtualenv/lib/python2.7/site-packages
Steps:
# run this test multiple times to about 5000 dispatched events
# usually happens with 100, but sometimes later
while [ 1 ]; do python ./qt-signal-bug-test.py 5000 || sleep 20; done
Expectation:
The program displays a window and uses all available cpu due to the
dispatching of the events.
Actual:
Sometimes the program crashes. The location and exception is not reproducible.
Sometimes the program ends in a nonresponsive way
Sometimes readonly memory (emitted data) is overwritten (with print on, 10x10
items):
some_item 12345678123456781234pay8load56781234567812345678123456781234 10
some_item <�������� <�������� < 10
Also happens when
- No data emit('')
- Single connect in gui thread (but later / harder to reproduce)
- Qt and Tornado implementation
The loop of the steps also shows other weird exceptions like
Fatal Python error: deletion of interned string failed
Abort trap: 6
or
Process: python [34397]
Identifier: python
Version: 94
Code Type: X86-64 (Native)
Date/Time: 2016-08-07
OS Version: Mac OS X 10.11.6 (15G31)
Report Version: 11 (stripped)
Time Awake Since Boot: 380000 seconds
Time Since Wake: 14000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000000a8
VM Regions Near 0xa8:
-->
__TEXT 000000010a687000-000000010a688000 [ 4K] r-x/rwx SM=COW /data/*
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 org.python.python 0x000000010a693b82 PyObject_GetIter + 14
1 org.python.python 0x000000010a70da70 PyEval_EvalFrameEx + 1213
2 org.python.python 0x000000010a70d3c1 PyEval_EvalCodeEx + 1583
3 org.python.python 0x000000010a6b22e5 0x10a68a000 + 164581
4 org.python.python 0x000000010a694202 PyObject_Call + 99
5 org.python.python 0x000000010a69eff5 0x10a68a000 + 86005
6 org.python.python 0x000000010a694202 PyObject_Call + 99
7 org.python.python 0x000000010a712e83 PyEval_CallObjectWithKeywords + 165
8 libpyside-python2.7.1.2.dylib 0x000000010b236ae6 PySide::SignalManager::callPythonMetaMethod(QMetaMethod const&, void**, _object*, bool) + 598
9 libpyside-python2.7.1.2.dylib 0x000000010b2366ef PySide::SignalManager::qt_metacall(QObject*, QMetaObject::Call, int, void**) + 527
10 QtCore 0x000000010b39bca7 QObject::event(QEvent*) + 619
11 QtGui 0x000000010cc7b799 QWidget::event(QEvent*) + 3509
12 QtGui.so 0x000000010c50e1dd QWidgetWrapper::event(QEvent*) + 237
13 QtGui 0x000000010cc3855e QApplicationPrivate::notify_helper(QObject*, QEvent*) + 194
14 QtGui 0x000000010cc3aeb4 QApplication::notify(QObject*, QEvent*) + 6146
15 QtGui.so 0x000000010c002e2b QApplicationWrapper::notify(QObject*, QEvent*) + 267
16 QtCore 0x000000010b38b4f6 QCoreApplication::notifyInternal(QObject*, QEvent*) + 118
17 QtCore 0x000000010b38be69 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 599
18 com.apple.CoreFoundation 0x00007fff92be6881 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
19 com.apple.CoreFoundation 0x00007fff92bc5fbc __CFRunLoopDoSources0 + 556
20 com.apple.CoreFoundation 0x00007fff92bc54df __CFRunLoopRun + 927
21 com.apple.CoreFoundation 0x00007fff92bc4ed8 CFRunLoopRunSpecific + 296
22 com.apple.HIToolbox 0x00007fff9419f935 RunCurrentEventLoopInMode + 235
23 com.apple.HIToolbox 0x00007fff9419f76f ReceiveNextEventCommon + 432
24 com.apple.HIToolbox 0x00007fff9419f5af _BlockUntilNextEventMatchingListInModeWithFilter + 71
25 com.apple.AppKit 0x00007fff944f5df6 _DPSNextEvent + 1067
26 com.apple.AppKit 0x00007fff944f5226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
27 com.apple.AppKit 0x00007fff944e9d80 -[NSApplication run] + 682
28 QtGui 0x000000010cbf5ace QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1496
29 QtCore 0x000000010b388bc7 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 77
30 QtCore 0x000000010b388d41 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 365
31 QtCore 0x000000010b38b94b QCoreApplication::exec() + 199
32 QtGui.so 0x000000010c004bef Sbk_QApplicationFunc_exec_(_object*) + 31
33 org.python.python 0x000000010a710a90 PyEval_EvalFrameEx + 13533
34 org.python.python 0x000000010a713541 0x10a68a000 + 562497
35 org.python.python 0x000000010a71030c PyEval_EvalFrameEx + 11609
36 org.python.python 0x000000010a70d3c1 PyEval_EvalCodeEx + 1583
37 org.python.python 0x000000010a70cd8c PyEval_EvalCode + 54
38 org.python.python 0x000000010a72ca42 0x10a68a000 + 666178
39 org.python.python 0x000000010a72cae5 PyRun_FileExFlags + 133
40 org.python.python 0x000000010a72c634 PyRun_SimpleFileExFlags + 698
41 org.python.python 0x000000010a73e011 Py_Main + 3137
42 libdyld.dylib 0x00007fff8c88a5ad start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff93321efa kevent_qos + 10
1 libdispatch.dylib 0x00007fff8899c165 _dispatch_mgr_invoke + 216
2 libdispatch.dylib 0x00007fff8899bdcd _dispatch_mgr_thread + 52
Thread 2:
0 libsystem_kernel.dylib 0x00007fff933215e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff91aea578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff91ae8341 start_wqthread + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff933215e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff91aea578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff91ae8341 start_wqthread + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff933215e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff91aea578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff91ae8341 start_wqthread + 13
Thread 5:
0 libsystem_kernel.dylib 0x00007fff933215e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff91aea578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff91ae8341 start_wqthread + 13
Thread 6:: backend_thread
0 libsystem_kernel.dylib 0x00007fff93320db6 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff91aeb728 _pthread_cond_wait + 767
2 org.python.python 0x000000010a73c1a4 PyThread_acquire_lock + 101
3 org.python.python 0x000000010a70cb0a PyEval_RestoreThread + 62
4 org.python.python 0x000000010a72b4a7 PyGILState_Ensure + 93
5 libshiboken-python2.7.1.2.dylib 0x000000010b263c7b Shiboken::GilState::GilState() + 27
6 QtGui.so 0x000000010c002d41 QApplicationWrapper::notify(QObject*, QEvent*) + 33
7 QtCore 0x000000010b38b4f6 QCoreApplication::notifyInternal(QObject*, QEvent*) + 118
8 QtCore 0x000000010b3b486f QTimerInfoList::activateTimers() + 751
9 QtCore 0x000000010b3b4f79 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 347
10 QtCore 0x000000010b388bc7 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 77
11 QtCore 0x000000010b388d41 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 365
12 QtCore 0x000000010b2a81f5 QThread::exec() + 209
13 QtCore.so 0x000000010b073097 Sbk_QThreadFunc_exec_(_object*) + 87
14 org.python.python 0x000000010a710a90 PyEval_EvalFrameEx + 13533
15 org.python.python 0x000000010a70d3c1 PyEval_EvalCodeEx + 1583
16 org.python.python 0x000000010a6b22e5 0x10a68a000 + 164581
17 org.python.python 0x000000010a694202 PyObject_Call + 99
18 org.python.python 0x000000010a69eff5 0x10a68a000 + 86005
19 org.python.python 0x000000010a694202 PyObject_Call + 99
20 QtCore.so 0x000000010b07230a QThreadWrapper::run() + 90
21 QtCore 0x000000010b2a9bee QThreadPrivate::start(void*) + 386
22 libsystem_pthread.dylib 0x00007fff91aea99d _pthread_body + 131
23 libsystem_pthread.dylib 0x00007fff91aea91a _pthread_start + 168
24 libsystem_pthread.dylib 0x00007fff91ae8351 thread_start + 13
Thread 7:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fff9331af72 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff9331a3b3 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff92bc61c4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff92bc568c __CFRunLoopRun + 1356
4 com.apple.CoreFoundation 0x00007fff92bc4ed8 CFRunLoopRunSpecific + 296
5 com.apple.AppKit 0x00007fff9464bd95 _NSEventThread + 149
6 libsystem_pthread.dylib 0x00007fff91aea99d _pthread_body + 131
7 libsystem_pthread.dylib 0x00007fff91aea91a _pthread_start + 168
8 libsystem_pthread.dylib 0x00007fff91ae8351 thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x000000010ab769f0 rcx: 0x000000010a712738 rdx: 0x0000000000000000
rdi: 0x000000010ab769f0 rsi: 0x000000000000000c rbp: 0x00007fff55575bf0 rsp: 0x00007fff55575be0
r8: 0x000000010ab7c2b0 r9: 0x0000000000000000 r10: 0x00000000265e49dd r11: 0x00007fc484c00000
r12: 0x000000010ab9a4e1 r13: 0x000000010ade1d30 r14: 0x000000010ab769f0 r15: 0x0000000000000000
rip: 0x000000010a693b82 rfl: 0x0000000000010213 cr2: 0x00000000000000a8
Logical CPU: 0
Error Code: 0x00000004
Trap Number: 14
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 1
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 20489155
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=246.8M resident=0K(0%) swapped_out_or_unallocated=246.8M(100%)
Writable regions: Total=94.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=94.2M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate.framework 128K 2
Activity Tracing 2048K 2
CG backing stores 1044K 2
CG image 16K 4
CG shared images 176K 6
CoreAnimation 64K 10
CoreUI image data 536K 7
CoreUI image file 192K 4
Dispatch continuations 8192K 2
Kernel Alloc Once 8K 3
MALLOC 48.1M 24
MALLOC guard page 32K 7
Memory Tag 242 12K 2
STACK GUARD 56.0M 9
Stack 11.1M 10
VM_ALLOCATE 6960K 17
__DATA 18.5M 224
__IMAGE 528K 2
__LINKEDIT 101.8M 44
__TEXT 145.1M 225
__UNICODE 552K 2
mapped file 112.2M 49
shared memory 16.3M 10
=========== ======= =======
TOTAL 529.0M 644
Model: MacBookPro8,1, 2 processors, Intel Core i5, 2,3 GHz, 8 GB, SMC 1.68f99
Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In
'''
There is no virtualenv shenigans here, only PySide installed on Sierra using the following:
brew install cartr/qt4/qt
brew install cmake
/usr/local/bin/python -m pip install pyside
Installed version:
tv:PySide ben$ /usr/local/bin/python2.7 -m pip freeze | grep -i pyside
PySide==1.2.4
Given that this prefix is in /usr/local, I would assume that PySide should safely work, however the following failed:
>>> from PySide import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/PySide/QtCore.so, 2): Library not loaded: @rpath/libpyside-python2.7.1.2.dylib
Referenced from: /usr/local/lib/python2.7/site-packages/PySide/QtCore.so
Reason: image not found
>>>
Correcting the issue was as simple as setting the rpath to look into the packages installation directory:
tv:~ ben$ cd /usr/local/lib/python2.7/site-packages/PySide
tv:PySide ben$ for filename in $(ls *.so); do install_name_tool -add_rpath `pwd` $filename; done
I suspect that something is not functioning correctly in the fix up script.
I'm trying to build a project that uses pyside (chipwhisperer) on Travis and am having issues using both Travis and the Travis cache.
The Travis build time is long (~30 minutes). Using pip, no console output from the build process shows (which can lead to travis timeouts). Are there any known ways of getting console output to keep travis from timing out?
Also, Travis is building in /tmp for all of its build outputs. Is there any way to get this into the .cache/pip folder or an arbitrary folder? That way, travis could cache the build outputs
As the title says I just want a local doc to read.
I got an error, when I using the following command to build my docs.
ml@mldeMacBook-Air ~/D/g/P/doc> sphinx-build -b epub ./ ./
Error: Config directory doesn't contain a conf.py file.
Here I want to know is how can I get this go through.
There were 2 new commits (version bumps) but no changes since 1.2.2 except new version number.
Hello,
I am using Pyside 1.2.2, Pycharm Community Edition, Python 3.4.4, Opencv 3.1.0
I have just built a simple GUI , which displays a HD video streaming (1920x1080) but I lose about 6GB of memory in about a minute, if the timer which is set to 30 milliseconds is set to 250, the video streaming is a little slow and even the memory leak here is the code
`#!/usr/bin/env python
from PySide.QtCore import *
from PySide.QtGui import *
import cv2
import sys
import gc
class MainApp(QWidget):
def __init__(self):
QWidget.__init__(self)
self.video_size = QSize(1920, 1080)
self.setup_ui()
self.setup_camera()
def setup_ui(self):
"""Initialize widgets.
"""
self.image_label = QLabel()
self.image_label.setFixedSize(self.video_size)
self.quit_button = QPushButton("Quit")
self.quit_button.clicked.connect(self.close)
self.main_layout = QVBoxLayout()
self.main_layout.addWidget(self.image_label)
self.main_layout.addWidget(self.quit_button)
self.setLayout(self.main_layout)
def setup_camera(self):
"""Initialize camera.
"""
self.capture = cv2.VideoCapture(0)
self.capture.set(cv2.CAP_PROP_FRAME_WIDTH, self.video_size.width())
self.capture.set(cv2.CAP_PROP_FRAME_HEIGHT, self.video_size.height())
self.timer = QTimer()
self.timer.timeout.connect(self.display_video_stream)
self.timer.start(30)
def display_video_stream(self):
"""Read frame from camera and repaint QLabel widget.
"""
_, frame = self.capture.read()
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
# frame = cv2.flip(frame, 1)
image = QImage(frame, frame.shape[1], frame.shape[0],
QImage.Format_RGB888)
self.image_label.setPixmap(QPixmap.fromImage(image))
if __name__ == "__main__":
app = QApplication(sys.argv)
win = MainApp()
win.show()
sys.exit(app.exec_())
`
When pip installing PySide in a zsh shell (El Capitan), it fails. Not sure if this will be seen upon as an upstream issue, so I'll report it for now.
Use a bash shell (e.g. regular Terminal.app at defaults).
This is my locale:
$ locale
LANG=
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=
I've just done this in a zsh 5.2 (x86_64-apple-darwin15.0.0) shell:
brew install python # installs in /usr/local/Cellar/python/2.7.11
brew install qt # installs in /usr/local/Cellar/qt/4.8.7_2
And then making sure...
$ which pip
/usr/local/bin/pip # good, it's using brew's pip
And then, when I do pip install PySide
...
File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 475, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
make[3]: *** [doc/CMakeFiles/doc] Error 1
make[2]: *** [doc/CMakeFiles/doc.dir/all] Error 2
make[1]: *** [doc/CMakeFiles/doc.dir/rule] Error 2
make: *** [doc] Error 2
error: Error generating documentation shiboken
----------------------------------------
Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-JoHrtb/PySide/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-4oWuGM-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-JoHrtb/PySide/
Full output:
Last login: Thu Apr 21 13:04:40 on ttys000
~
❯ which pip
/usr/local/bin/pip
~
❯ pip --version
pip 8.1.1 from /usr/local/lib/python2.7/site-packages (python 2.7)
~
❯ python --version
Python 2.7.11
~
❯ brew list qt
/usr/local/Cellar/qt/4.8.7_2/Assistant.app/Contents/ (5 files)
/usr/local/Cellar/qt/4.8.7_2/bin/lconvert
/usr/local/Cellar/qt/4.8.7_2/bin/lrelease
/usr/local/Cellar/qt/4.8.7_2/bin/lupdate
/usr/local/Cellar/qt/4.8.7_2/bin/macdeployqt
/usr/local/Cellar/qt/4.8.7_2/bin/moc
/usr/local/Cellar/qt/4.8.7_2/bin/qcollectiongenerator
/usr/local/Cellar/qt/4.8.7_2/bin/qdoc3
/usr/local/Cellar/qt/4.8.7_2/bin/qhelpgenerator
/usr/local/Cellar/qt/4.8.7_2/bin/qmake
/usr/local/Cellar/qt/4.8.7_2/bin/qmlplugindump
/usr/local/Cellar/qt/4.8.7_2/bin/qt3to4
/usr/local/Cellar/qt/4.8.7_2/bin/rcc
/usr/local/Cellar/qt/4.8.7_2/bin/uic
/usr/local/Cellar/qt/4.8.7_2/bin/xmlpatterns
/usr/local/Cellar/qt/4.8.7_2/bin/xmlpatternsvalidator
/usr/local/Cellar/qt/4.8.7_2/Designer.app/Contents/ (6 files)
/usr/local/Cellar/qt/4.8.7_2/imports/Qt/ (8 files)
/usr/local/Cellar/qt/4.8.7_2/imports/QtWebKit/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/include/QtUiTools/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/lib/libQtCLucene.4.8.7.dylib
/usr/local/Cellar/qt/4.8.7_2/lib/QtCore.framework/ (454 files)
/usr/local/Cellar/qt/4.8.7_2/lib/QtDeclarative.framework/ (52 files)
/usr/local/Cellar/qt/4.8.7_2/lib/QtDesigner.framework/ (84 files)
/usr/local/Cellar/qt/4.8.7_2/lib/QtDesignerComponents.framework/ (5 files)
/usr/local/Cellar/qt/4.8.7_2/lib/QtGui.framework/ (854 files)
/usr/local/Cellar/qt/4.8.7_2/lib/QtHelp.framework/ (26 files)
/usr/local/Cellar/qt/4.8.7_2/lib/QtMultimedia.framework/ (31 files)
/usr/local/Cellar/qt/4.8.7_2/lib/QtNetwork.framework/ (81 files)
/usr/local/Cellar/qt/4.8.7_2/lib/QtOpenGL.framework/ (33 files)
/usr/local/Cellar/qt/4.8.7_2/lib/QtScript.framework/ (35 files)
/usr/local/Cellar/qt/4.8.7_2/lib/QtScriptTools.framework/ (8 files)
/usr/local/Cellar/qt/4.8.7_2/lib/QtSql.framework/ (67 files)
/usr/local/Cellar/qt/4.8.7_2/lib/QtSvg.framework/ (14 files)
/usr/local/Cellar/qt/4.8.7_2/lib/QtTest.framework/ (56 files)
/usr/local/Cellar/qt/4.8.7_2/lib/QtWebKit.framework/ (46 files)
/usr/local/Cellar/qt/4.8.7_2/lib/QtXml.framework/ (52 files)
/usr/local/Cellar/qt/4.8.7_2/lib/QtXmlPatterns.framework/ (36 files)
/usr/local/Cellar/qt/4.8.7_2/lib/phonon.framework/ (92 files)
/usr/local/Cellar/qt/4.8.7_2/lib/pkgconfig/ (21 files)
/usr/local/Cellar/qt/4.8.7_2/lib/ (8 other files)
/usr/local/Cellar/qt/4.8.7_2/Linguist.app/Contents/ (5 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/aix-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/aix-g++-64/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/aix-xlc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/aix-xlc-64/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/blackberry-armv7le-qcc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/blackberry-playbook-armv7le-qcc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/blackberry-playbook-x86-qcc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/blackberry-x86-qcc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/common/ (66 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/cygwin-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/darwin-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/features/ (117 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/freebsd-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/freebsd-g++46/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/freebsd-icc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/hpux-acc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/hpux-acc-64/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/hpux-acc-o64/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/hpux-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/hpux-g++-64/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/hpuxi-acc-32/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/hpuxi-acc-64/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/hpuxi-g++-64/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/hurd-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/irix-cc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/irix-cc-64/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/irix-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/irix-g++-64/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/linux-arm-gnueabi-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/linux-cxx/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/linux-ecc-64/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/linux-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/linux-g++-32/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/linux-g++-64/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/linux-g++-maemo/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/linux-icc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/linux-icc-32/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/linux-icc-64/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/linux-kcc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/linux-llvm/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/linux-lsb-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/linux-pgcc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/lynxos-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/macx-g++/ (4 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/macx-g++40/ (4 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/macx-g++42/ (4 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/macx-icc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/macx-llvm/ (4 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/macx-pbuilder/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/macx-xcode/ (4 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/macx-xlc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/modules/qt_webkit_version.pri
/usr/local/Cellar/qt/4.8.7_2/mkspecs/netbsd-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/openbsd-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/qnx-armv7le-qcc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/qnx-x86-qcc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/qws/ (64 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/sco-cc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/sco-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/solaris-cc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/solaris-cc-64/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/solaris-cc-64-stlport/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/solaris-cc-stlport/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/solaris-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/solaris-g++-64/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/symbian-abld/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/symbian-armcc/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/symbian-gcce/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/symbian-sbsv2/ (8 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/tru64-cxx/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/tru64-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/unixware-cc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/unixware-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/unsupported/ (60 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/win32-borland/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/win32-g++/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/win32-g++-4.6/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/win32-icc/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/win32-msvc2003/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/win32-msvc2005/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/win32-msvc2008/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/win32-msvc2010/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/win32-msvc2012/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/win32-msvc2013/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/win32-msvc2015/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wince50standard-armv4i-msvc2005/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wince50standard-armv4i-msvc2008/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wince50standard-mipsii-msvc2005/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wince50standard-mipsii-msvc2008/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wince50standard-mipsiv-msvc2005/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wince50standard-mipsiv-msvc2008/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wince50standard-sh4-msvc2005/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wince50standard-sh4-msvc2008/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wince50standard-x86-msvc2005/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wince50standard-x86-msvc2008/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wince60standard-armv4i-msvc2005/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wince60standard-x86-msvc2005/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wince70embedded-armv4i-msvc2008/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wince70embedded-x86-msvc2008/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wincewm50pocket-msvc2005/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wincewm50pocket-msvc2008/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wincewm50smart-msvc2005/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wincewm50smart-msvc2008/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wincewm60professional-msvc2005/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wincewm60professional-msvc2008/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wincewm60standard-msvc2005/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wincewm60standard-msvc2008/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wincewm65professional-msvc2005/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/wincewm65professional-msvc2008/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/mkspecs/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/phrasebooks/ (13 files)
/usr/local/Cellar/qt/4.8.7_2/plugins/accessible/libqtaccessiblewidgets.dylib
/usr/local/Cellar/qt/4.8.7_2/plugins/bearer/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/plugins/codecs/ (4 files)
/usr/local/Cellar/qt/4.8.7_2/plugins/designer/ (3 files)
/usr/local/Cellar/qt/4.8.7_2/plugins/graphicssystems/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/plugins/iconengines/libqsvgicon.dylib
/usr/local/Cellar/qt/4.8.7_2/plugins/imageformats/ (7 files)
/usr/local/Cellar/qt/4.8.7_2/plugins/phonon_backend/libphonon_qt7.dylib
/usr/local/Cellar/qt/4.8.7_2/plugins/qmltooling/ (2 files)
/usr/local/Cellar/qt/4.8.7_2/plugins/sqldrivers/libqsqlite.dylib
/usr/local/Cellar/qt/4.8.7_2/QMLViewer.app/Contents/ (5 files)
/usr/local/Cellar/qt/4.8.7_2/qttracereplay.app/Contents/ (4 files)
/usr/local/Cellar/qt/4.8.7_2/tests/qt4/ (12 files)
/usr/local/Cellar/qt/4.8.7_2/translations/ (100 files)
~
❯ pip install -U PySide
Collecting PySide
Using cached PySide-1.2.4.tar.gz
Building wheels for collected packages: PySide
Running setup.py bdist_wheel for PySide ... error
Complete output from command /usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/tmp6p7IDspip-wheel- --python-tag cp27:
Removing /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_package
running bdist_wheel
running build
Python architecture is 64bit
Inserting path "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/bin" to environment
Inserting path "/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_install/py2.7-qt4.8.7-64bit-release/bin" to environment
==============================
Package version: 1.2.4
Build type: Release
Build tests: False
---
Make path: /usr/bin/make
Make generator: Unix Makefiles
Make jobs:
---
Script directory: /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide
Sources directory: /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources
Build directory: /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_build/py2.7-qt4.8.7-64bit-release
Install directory: /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_install/py2.7-qt4.8.7-64bit-release
Python site-packages install directory: /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_install/py2.7-qt4.8.7-64bit-release/lib/python2.7/site-packages
---
Python executable: /usr/local/opt/python/bin/python2.7
Python includes: /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/include/python2.7
Python library: /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib
Python prefix: /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7
Python scripts: /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/bin
---
Qt qmake: /usr/local/bin/qmake
Qt version: 4.8.7
Qt bins: /usr/local/Cellar/qt/4.8.7_2/bin
Qt plugins: /usr/local/Cellar/qt/4.8.7_2/plugins
---
OpenSSL libs: None
==============================
Creating build folder /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_build/py2.7-qt4.8.7-64bit-release...
Creating install folder /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_install/py2.7-qt4.8.7-64bit-release...
Building module shiboken...
Creating module build folder /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_build/py2.7-qt4.8.7-64bit-release/shiboken...
Configuring module shiboken (/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken)...
Running process: /usr/local/bin/cmake -G "Unix Makefiles" -DQT_QMAKE_EXECUTABLE=/usr/local/bin/qmake -DBUILD_TESTS=False -DDISABLE_DOCSTRINGS=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_install/py2.7-qt4.8.7-64bit-release /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken -DPYTHON_EXECUTABLE=/usr/local/opt/python/bin/python2.7 -DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/include/python2.7 -DPYTHON_LIBRARY=/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=yes -DALTERNATIVE_QT_INCLUDE_DIR=/usr/local/Cellar/qt/4.8.7_2/include
/usr/local/bin/cmake -G Unix Makefiles -DQT_QMAKE_EXECUTABLE=/usr/local/bin/qmake -DBUILD_TESTS=False -DDISABLE_DOCSTRINGS=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_install/py2.7-qt4.8.7-64bit-release /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken -DPYTHON_EXECUTABLE=/usr/local/opt/python/bin/python2.7 -DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/include/python2.7 -DPYTHON_LIBRARY=/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=yes -DALTERNATIVE_QT_INCLUDE_DIR=/usr/local/Cellar/qt/4.8.7_2/include
-- The C compiler identification is AppleClang 7.3.0.7030029
-- The CXX compiler identification is AppleClang 7.3.0.7030029
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /usr/local/bin/qmake (found suitable version "4.8.7", minimum required is "4.5.0")
-- Found PythonLibs: /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib (found suitable version "2.7.11", minimum required is "2.6")
-- !!! The generated bindings will be installed on /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_install/py2.7-qt4.8.7-64bit-release/lib/python2.7/site-packages, is it right!?
-- Found LibXml2: /usr/lib/libxml2.dylib (found suitable version "2.9.2", minimum required is "2.6.32")
-- Found LibXslt: /usr/lib/libxslt.dylib (found suitable version "1.1.28", minimum required is "1.1.19")
-- sphinx-build - found
-- Configuring done
CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
libshiboken
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
ALTERNATIVE_QT_INCLUDE_DIR
-- Build files have been written to: /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_build/py2.7-qt4.8.7-64bit-release/shiboken
Compiling module shiboken...
Running process: /usr/bin/make
/usr/bin/make
[ 1%] Generating qrc_generator.cxx
Scanning dependencies of target apiextractor
[ 3%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/apiextractor.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/apiextractor.cpp:24:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/apiextractor.h:28:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
1 warning generated.
[ 5%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/abstractmetabuilder.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetabuilder.cpp:24:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetabuilder.h:28:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
1 warning generated.
[ 6%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/abstractmetalang.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.cpp:24:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1911:10: warning: private field 'm_namespace' is not used [-Wunused-private-field]
uint m_namespace : 1;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1912:10: warning: private field 'm_qobject' is not used [-Wunused-private-field]
uint m_qobject : 1;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1928:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 17;
^
4 warnings generated.
[ 8%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/asttoxml.cpp.o
[ 10%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/fileout.cpp.o
[ 12%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/graph.cpp.o
[ 13%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/reporthandler.cpp.o
[ 15%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/typeparser.cpp.o
[ 17%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/typesystem.cpp.o
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/typesystem.cpp:674:60: warning: adding 'ContainerTypeEntry::Type' to a string does not append to the string [-Wstring-plus-int]
m_error = "there is no container of type " + containerType;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/typesystem.cpp:674:60: note: use array indexing to silence this warning
m_error = "there is no container of type " + containerType;
^
& [ ]
1 warning generated.
[ 18%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/include.cpp.o
[ 20%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/typedatabase.cpp.o
[ 22%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/ast.cpp.o
[ 24%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/binder.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/binder.cpp:25:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/binder.h:105:14: warning: private field '_M_control' is not used [-Wunused-private-field]
Control *_M_control;
^
1 warning generated.
[ 25%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/class_compiler.cpp.o
[ 27%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/codemodel.cpp.o
[ 29%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/codemodel_finder.cpp.o
[ 31%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/compiler_utils.cpp.o
[ 32%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/control.cpp.o
[ 34%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/declarator_compiler.cpp.o
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/declarator_compiler.cpp:109:2: warning: "ptr to mem -- not implemented" [-W#warnings]
#warning "ptr to mem -- not implemented"
^
1 warning generated.
[ 36%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/default_visitor.cpp.o
[ 37%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/dumptree.cpp.o
[ 39%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/lexer.cpp.o
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/lexer.cpp:688:5: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result]
errmsg.arg(int(*cursor));
^~~~~~~~~~
1 warning generated.
[ 41%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/list.cpp.o
[ 43%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/name_compiler.cpp.o
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/name_compiler.cpp:65:2: warning: "NameCompiler::visitUnqualifiedName() -- implement me" [-W#warnings]
#warning "NameCompiler::visitUnqualifiedName() -- implement me"
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/name_compiler.cpp:75:2: warning: "don't use an hardcoded string as cast' name" [-W#warnings]
#warning "don't use an hardcoded string as cast' name"
^
2 warnings generated.
[ 44%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/parser.cpp.o
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/parser.cpp:733:2: warning: "implement me" [-W#warnings]
#warning "implement me"
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/parser.cpp:2120:2: warning: "implement me" [-W#warnings]
#warning "implement me"
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/parser.cpp:2140:2: warning: "implemente me (AST)" [-W#warnings]
#warning "implemente me (AST)"
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/parser.cpp:2297:2: warning: "implement me" [-W#warnings]
#warning "implement me"
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/parser.cpp:2305:2: warning: "implement me" [-W#warnings]
#warning "implement me"
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/parser.cpp:2900:2: warning: "mark the ast as constant" [-W#warnings]
#warning "mark the ast as constant"
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/parser.cpp:2990:2: warning: "Parser::skipFunctionBody() -- implement me" [-W#warnings]
#warning "Parser::skipFunctionBody() -- implement me"
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/parser.cpp:3019:2: warning: "implement me" [-W#warnings]
#warning "implement me"
^
8 warnings generated.
[ 46%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/smallobject.cpp.o
[ 48%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/tokens.cpp.o
[ 50%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/type_compiler.cpp.o
[ 51%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/visitor.cpp.o
[ 53%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/rpp/builtin-macros.cpp.o
[ 55%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/rpp/preprocessor.cpp.o
[ 56%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/qrc_generator.cxx.o
[ 58%] Linking CXX static library libapiextractor.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libapiextractor.a(list.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libapiextractor.a(smallobject.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libapiextractor.a(builtin-macros.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libapiextractor.a(list.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libapiextractor.a(smallobject.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libapiextractor.a(builtin-macros.cpp.o) has no symbols
[ 58%] Built target apiextractor
Scanning dependencies of target libshiboken
[ 60%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/basewrapper.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/basewrapper.cpp:27:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: warning: class 'SbkObject' was previously declared as a struct [-Wmismatched-tags]
class SbkObject;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/basewrapper.h:40:24: note: previous use is here
struct LIBSHIBOKEN_API SbkObject
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: note: did you mean struct here?
class SbkObject;
^~~~~
struct
1 warning generated.
[ 62%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/debugfreehook.cpp.o
[ 63%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/gilstate.cpp.o
[ 65%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/helper.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/helper.cpp:23:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/helper.h:28:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/conversions.h:41:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: warning: class 'SbkObject' was previously declared as a struct [-Wmismatched-tags]
class SbkObject;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/basewrapper.h:40:24: note: previous use is here
struct LIBSHIBOKEN_API SbkObject
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: note: did you mean struct here?
class SbkObject;
^~~~~
struct
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/helper.cpp:118:9: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete]
delete message;
^
[]
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/helper.cpp:112:21: note: allocated with 'new[]' here
char* message = new char[size];
^
2 warnings generated.
[ 67%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/sbkconverter.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/sbkconverter.cpp:27:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: warning: class 'SbkObject' was previously declared as a struct [-Wmismatched-tags]
class SbkObject;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/basewrapper.h:40:24: note: previous use is here
struct LIBSHIBOKEN_API SbkObject
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: note: did you mean struct here?
class SbkObject;
^~~~~
struct
1 warning generated.
[ 68%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/sbkenum.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/sbkenum.cpp:28:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: warning: class 'SbkObject' was previously declared as a struct [-Wmismatched-tags]
class SbkObject;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/basewrapper.h:40:24: note: previous use is here
struct LIBSHIBOKEN_API SbkObject
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: note: did you mean struct here?
class SbkObject;
^~~~~
struct
1 warning generated.
[ 70%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/sbkmodule.cpp.o
[ 72%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/sbkstring.cpp.o
[ 74%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/bindingmanager.cpp.o
[ 75%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/threadstatesaver.cpp.o
[ 77%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/typeresolver.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/typeresolver.cpp:23:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/typeresolver.h:27:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/conversions.h:41:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: warning: class 'SbkObject' was previously declared as a struct [-Wmismatched-tags]
class SbkObject;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/basewrapper.h:40:24: note: previous use is here
struct LIBSHIBOKEN_API SbkObject
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: note: did you mean struct here?
class SbkObject;
^~~~~
struct
1 warning generated.
[ 79%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/shibokenbuffer.cpp.o
[ 81%] Linking CXX shared library libshiboken-python2.7.dylib
[ 81%] Built target libshiboken
Scanning dependencies of target shiboken
[ 82%] Building CXX object generator/CMakeFiles/shiboken.dir/generator.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/generator.cpp:24:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/generator.h:30:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
1 warning generated.
[ 84%] Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/cppgenerator.cpp.o
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/cppgenerator.cpp:1742:32: warning: equality comparison result unused [-Wunused-comparison]
strArg == "2-tuple";
~~~~~~~^~~~~~~~~~~~
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/cppgenerator.cpp:1742:32: note: use '=' to turn this equality comparison into an assignment
strArg == "2-tuple";
^~
=
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/cppgenerator.cpp:24:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/cppgenerator.h:27:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/shibokengenerator.h:51:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/generator.h:30:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
2 warnings generated.
[ 86%] Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/headergenerator.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/headergenerator.cpp:24:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/headergenerator.h:27:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/shibokengenerator.h:51:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/generator.h:30:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
1 warning generated.
[ 87%] Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/overloaddata.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/overloaddata.cpp:27:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/overloaddata.h:27:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
1 warning generated.
[ 89%] Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/shibokengenerator.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/shibokengenerator.cpp:24:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/shibokengenerator.h:51:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/generator.h:30:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
1 warning generated.
[ 91%] Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/shibokennormalize.cpp.o
[ 93%] Building CXX object generator/CMakeFiles/shiboken.dir/main.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/main.cpp:29:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/apiextractor.h:28:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
1 warning generated.
[ 94%] Linking CXX executable shiboken
[ 94%] Built target shiboken
[ 96%] Running generator for 'shiboken'...
Detecting inconsistencies in typesystem... [OK]
No C++ classes found!
Done, 1 warnings (0 known issues)
Scanning dependencies of target shibokenmodule
[ 98%] Building CXX object shibokenmodule/CMakeFiles/shibokenmodule.dir/shiboken/shiboken_module_wrapper.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_build/py2.7-qt4.8.7-64bit-release/shiboken/shibokenmodule/shiboken/shiboken_module_wrapper.cpp:3:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/shiboken.h:28:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/basewrapper.h:27:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/bindingmanager.h:30:1: warning: struct 'SbkObject' was previously declared as a class [-Wmismatched-tags]
struct SbkObject;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:7: note: previous use is here
class SbkObject;
^
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_build/py2.7-qt4.8.7-64bit-release/shiboken/shibokenmodule/shiboken/shiboken_module_wrapper.cpp:3:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/shiboken.h:28:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/basewrapper.h:40:1: warning: 'SbkObject' defined as a struct here but previously declared as a class [-Wmismatched-tags]
struct LIBSHIBOKEN_API SbkObject
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: note: did you mean struct here?
class SbkObject;
^~~~~
struct
2 warnings generated.
[100%] Linking CXX shared module shiboken.so
[100%] Built target shibokenmodule
Generating Shiboken documentation shiboken...
Running process: /usr/bin/make doc
/usr/bin/make doc
Scanning dependencies of target doc
Traceback (most recent call last):
File "/usr/local/bin/sphinx-build", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/sphinx/__init__.py", line 51, in main
sys.exit(build_main(argv))
File "/usr/local/lib/python2.7/site-packages/sphinx/__init__.py", line 61, in build_main
from sphinx import cmdline
File "/usr/local/lib/python2.7/site-packages/sphinx/cmdline.py", line 19, in <module>
from docutils.utils import SystemMessage
File "/usr/local/lib/python2.7/site-packages/docutils/utils/__init__.py", line 20, in <module>
import docutils.io
File "/usr/local/lib/python2.7/site-packages/docutils/io.py", line 18, in <module>
from docutils.utils.error_reporting import locale_encoding, ErrorString, ErrorOutput
File "/usr/local/lib/python2.7/site-packages/docutils/utils/error_reporting.py", line 47, in <module>
locale_encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1]
File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 543, in getdefaultlocale
return _parse_localename(localename)
File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 475, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
make[3]: *** [doc/CMakeFiles/doc] Error 1
make[2]: *** [doc/CMakeFiles/doc.dir/all] Error 2
make[1]: *** [doc/CMakeFiles/doc.dir/rule] Error 2
make: *** [doc] Error 2
error: Error generating documentation shiboken
----------------------------------------
Failed building wheel for PySide
Running setup.py clean for PySide
Failed to build PySide
Installing collected packages: PySide
Running setup.py install for PySide ... error
Complete output from command /usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-BRDGc2-record/install-record.txt --single-version-externally-managed --compile:
Removing /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_package
running install
running build
Python architecture is 64bit
Inserting path "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/bin" to environment
Inserting path "/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_install/py2.7-qt4.8.7-64bit-release/bin" to environment
==============================
Package version: 1.2.4
Build type: Release
Build tests: False
---
Make path: /usr/bin/make
Make generator: Unix Makefiles
Make jobs:
---
Script directory: /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide
Sources directory: /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources
Build directory: /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_build/py2.7-qt4.8.7-64bit-release
Install directory: /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_install/py2.7-qt4.8.7-64bit-release
Python site-packages install directory: /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_install/py2.7-qt4.8.7-64bit-release/lib/python2.7/site-packages
---
Python executable: /usr/local/opt/python/bin/python2.7
Python includes: /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/include/python2.7
Python library: /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib
Python prefix: /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7
Python scripts: /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/bin
---
Qt qmake: /usr/local/bin/qmake
Qt version: 4.8.7
Qt bins: /usr/local/Cellar/qt/4.8.7_2/bin
Qt plugins: /usr/local/Cellar/qt/4.8.7_2/plugins
---
OpenSSL libs: None
==============================
Building module shiboken...
Deleting module build folder /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_build/py2.7-qt4.8.7-64bit-release/shiboken...
Creating module build folder /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_build/py2.7-qt4.8.7-64bit-release/shiboken...
Configuring module shiboken (/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken)...
Running process: /usr/local/bin/cmake -G "Unix Makefiles" -DQT_QMAKE_EXECUTABLE=/usr/local/bin/qmake -DBUILD_TESTS=False -DDISABLE_DOCSTRINGS=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_install/py2.7-qt4.8.7-64bit-release /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken -DPYTHON_EXECUTABLE=/usr/local/opt/python/bin/python2.7 -DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/include/python2.7 -DPYTHON_LIBRARY=/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=yes -DALTERNATIVE_QT_INCLUDE_DIR=/usr/local/Cellar/qt/4.8.7_2/include
/usr/local/bin/cmake -G Unix Makefiles -DQT_QMAKE_EXECUTABLE=/usr/local/bin/qmake -DBUILD_TESTS=False -DDISABLE_DOCSTRINGS=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_install/py2.7-qt4.8.7-64bit-release /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken -DPYTHON_EXECUTABLE=/usr/local/opt/python/bin/python2.7 -DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/include/python2.7 -DPYTHON_LIBRARY=/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=yes -DALTERNATIVE_QT_INCLUDE_DIR=/usr/local/Cellar/qt/4.8.7_2/include
-- The C compiler identification is AppleClang 7.3.0.7030029
-- The CXX compiler identification is AppleClang 7.3.0.7030029
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /usr/local/bin/qmake (found suitable version "4.8.7", minimum required is "4.5.0")
-- Found PythonLibs: /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib (found suitable version "2.7.11", minimum required is "2.6")
-- !!! The generated bindings will be installed on /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_install/py2.7-qt4.8.7-64bit-release/lib/python2.7/site-packages, is it right!?
-- Found LibXml2: /usr/lib/libxml2.dylib (found suitable version "2.9.2", minimum required is "2.6.32")
-- Found LibXslt: /usr/lib/libxslt.dylib (found suitable version "1.1.28", minimum required is "1.1.19")
-- sphinx-build - found
-- Configuring done
CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
libshiboken
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
ALTERNATIVE_QT_INCLUDE_DIR
-- Build files have been written to: /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_build/py2.7-qt4.8.7-64bit-release/shiboken
Compiling module shiboken...
Running process: /usr/bin/make
/usr/bin/make
[ 1%] Generating qrc_generator.cxx
Scanning dependencies of target apiextractor
[ 3%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/apiextractor.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/apiextractor.cpp:24:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/apiextractor.h:28:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
1 warning generated.
[ 5%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/abstractmetabuilder.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetabuilder.cpp:24:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetabuilder.h:28:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
1 warning generated.
[ 6%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/abstractmetalang.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.cpp:24:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1911:10: warning: private field 'm_namespace' is not used [-Wunused-private-field]
uint m_namespace : 1;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1912:10: warning: private field 'm_qobject' is not used [-Wunused-private-field]
uint m_qobject : 1;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1928:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 17;
^
4 warnings generated.
[ 8%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/asttoxml.cpp.o
[ 10%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/fileout.cpp.o
[ 12%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/graph.cpp.o
[ 13%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/reporthandler.cpp.o
[ 15%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/typeparser.cpp.o
[ 17%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/typesystem.cpp.o
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/typesystem.cpp:674:60: warning: adding 'ContainerTypeEntry::Type' to a string does not append to the string [-Wstring-plus-int]
m_error = "there is no container of type " + containerType;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/typesystem.cpp:674:60: note: use array indexing to silence this warning
m_error = "there is no container of type " + containerType;
^
& [ ]
1 warning generated.
[ 18%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/include.cpp.o
[ 20%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/typedatabase.cpp.o
[ 22%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/ast.cpp.o
[ 24%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/binder.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/binder.cpp:25:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/binder.h:105:14: warning: private field '_M_control' is not used [-Wunused-private-field]
Control *_M_control;
^
1 warning generated.
[ 25%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/class_compiler.cpp.o
[ 27%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/codemodel.cpp.o
[ 29%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/codemodel_finder.cpp.o
[ 31%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/compiler_utils.cpp.o
[ 32%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/control.cpp.o
[ 34%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/declarator_compiler.cpp.o
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/declarator_compiler.cpp:109:2: warning: "ptr to mem -- not implemented" [-W#warnings]
#warning "ptr to mem -- not implemented"
^
1 warning generated.
[ 36%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/default_visitor.cpp.o
[ 37%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/dumptree.cpp.o
[ 39%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/lexer.cpp.o
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/lexer.cpp:688:5: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result]
errmsg.arg(int(*cursor));
^~~~~~~~~~
1 warning generated.
[ 41%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/list.cpp.o
[ 43%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/name_compiler.cpp.o
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/name_compiler.cpp:65:2: warning: "NameCompiler::visitUnqualifiedName() -- implement me" [-W#warnings]
#warning "NameCompiler::visitUnqualifiedName() -- implement me"
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/name_compiler.cpp:75:2: warning: "don't use an hardcoded string as cast' name" [-W#warnings]
#warning "don't use an hardcoded string as cast' name"
^
2 warnings generated.
[ 44%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/parser.cpp.o
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/parser.cpp:733:2: warning: "implement me" [-W#warnings]
#warning "implement me"
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/parser.cpp:2120:2: warning: "implement me" [-W#warnings]
#warning "implement me"
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/parser.cpp:2140:2: warning: "implemente me (AST)" [-W#warnings]
#warning "implemente me (AST)"
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/parser.cpp:2297:2: warning: "implement me" [-W#warnings]
#warning "implement me"
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/parser.cpp:2305:2: warning: "implement me" [-W#warnings]
#warning "implement me"
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/parser.cpp:2900:2: warning: "mark the ast as constant" [-W#warnings]
#warning "mark the ast as constant"
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/parser.cpp:2990:2: warning: "Parser::skipFunctionBody() -- implement me" [-W#warnings]
#warning "Parser::skipFunctionBody() -- implement me"
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/parser/parser.cpp:3019:2: warning: "implement me" [-W#warnings]
#warning "implement me"
^
8 warnings generated.
[ 46%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/smallobject.cpp.o
[ 48%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/tokens.cpp.o
[ 50%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/type_compiler.cpp.o
[ 51%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/visitor.cpp.o
[ 53%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/rpp/builtin-macros.cpp.o
[ 55%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/rpp/preprocessor.cpp.o
[ 56%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/qrc_generator.cxx.o
[ 58%] Linking CXX static library libapiextractor.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libapiextractor.a(list.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libapiextractor.a(smallobject.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libapiextractor.a(builtin-macros.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libapiextractor.a(list.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libapiextractor.a(smallobject.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libapiextractor.a(builtin-macros.cpp.o) has no symbols
[ 58%] Built target apiextractor
Scanning dependencies of target libshiboken
[ 60%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/basewrapper.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/basewrapper.cpp:27:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: warning: class 'SbkObject' was previously declared as a struct [-Wmismatched-tags]
class SbkObject;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/basewrapper.h:40:24: note: previous use is here
struct LIBSHIBOKEN_API SbkObject
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: note: did you mean struct here?
class SbkObject;
^~~~~
struct
1 warning generated.
[ 62%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/debugfreehook.cpp.o
[ 63%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/gilstate.cpp.o
[ 65%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/helper.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/helper.cpp:23:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/helper.h:28:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/conversions.h:41:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: warning: class 'SbkObject' was previously declared as a struct [-Wmismatched-tags]
class SbkObject;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/basewrapper.h:40:24: note: previous use is here
struct LIBSHIBOKEN_API SbkObject
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: note: did you mean struct here?
class SbkObject;
^~~~~
struct
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/helper.cpp:118:9: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete]
delete message;
^
[]
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/helper.cpp:112:21: note: allocated with 'new[]' here
char* message = new char[size];
^
2 warnings generated.
[ 67%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/sbkconverter.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/sbkconverter.cpp:27:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: warning: class 'SbkObject' was previously declared as a struct [-Wmismatched-tags]
class SbkObject;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/basewrapper.h:40:24: note: previous use is here
struct LIBSHIBOKEN_API SbkObject
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: note: did you mean struct here?
class SbkObject;
^~~~~
struct
1 warning generated.
[ 68%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/sbkenum.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/sbkenum.cpp:28:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: warning: class 'SbkObject' was previously declared as a struct [-Wmismatched-tags]
class SbkObject;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/basewrapper.h:40:24: note: previous use is here
struct LIBSHIBOKEN_API SbkObject
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: note: did you mean struct here?
class SbkObject;
^~~~~
struct
1 warning generated.
[ 70%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/sbkmodule.cpp.o
[ 72%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/sbkstring.cpp.o
[ 74%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/bindingmanager.cpp.o
[ 75%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/threadstatesaver.cpp.o
[ 77%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/typeresolver.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/typeresolver.cpp:23:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/typeresolver.h:27:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/conversions.h:41:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: warning: class 'SbkObject' was previously declared as a struct [-Wmismatched-tags]
class SbkObject;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/basewrapper.h:40:24: note: previous use is here
struct LIBSHIBOKEN_API SbkObject
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: note: did you mean struct here?
class SbkObject;
^~~~~
struct
1 warning generated.
[ 79%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/shibokenbuffer.cpp.o
[ 81%] Linking CXX shared library libshiboken-python2.7.dylib
[ 81%] Built target libshiboken
Scanning dependencies of target shiboken
[ 82%] Building CXX object generator/CMakeFiles/shiboken.dir/generator.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/generator.cpp:24:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/generator.h:30:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
1 warning generated.
[ 84%] Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/cppgenerator.cpp.o
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/cppgenerator.cpp:1742:32: warning: equality comparison result unused [-Wunused-comparison]
strArg == "2-tuple";
~~~~~~~^~~~~~~~~~~~
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/cppgenerator.cpp:1742:32: note: use '=' to turn this equality comparison into an assignment
strArg == "2-tuple";
^~
=
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/cppgenerator.cpp:24:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/cppgenerator.h:27:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/shibokengenerator.h:51:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/generator.h:30:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
2 warnings generated.
[ 86%] Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/headergenerator.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/headergenerator.cpp:24:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/headergenerator.h:27:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/shibokengenerator.h:51:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/generator.h:30:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
1 warning generated.
[ 87%] Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/overloaddata.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/overloaddata.cpp:27:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/overloaddata.h:27:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
1 warning generated.
[ 89%] Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/shibokengenerator.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/shibokengenerator.cpp:24:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/shiboken/shibokengenerator.h:51:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/generator.h:30:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
1 warning generated.
[ 91%] Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/shibokennormalize.cpp.o
[ 93%] Building CXX object generator/CMakeFiles/shiboken.dir/main.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/generator/main.cpp:29:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/apiextractor.h:28:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning: private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
1 warning generated.
[ 94%] Linking CXX executable shiboken
[ 94%] Built target shiboken
[ 96%] Running generator for 'shiboken'...
Detecting inconsistencies in typesystem... [OK]
No C++ classes found!
Done, 1 warnings (0 known issues)
Scanning dependencies of target shibokenmodule
[ 98%] Building CXX object shibokenmodule/CMakeFiles/shibokenmodule.dir/shiboken/shiboken_module_wrapper.cpp.o
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_build/py2.7-qt4.8.7-64bit-release/shiboken/shibokenmodule/shiboken/shiboken_module_wrapper.cpp:3:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/shiboken.h:28:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/basewrapper.h:27:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/bindingmanager.h:30:1: warning: struct 'SbkObject' was previously declared as a class [-Wmismatched-tags]
struct SbkObject;
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:7: note: previous use is here
class SbkObject;
^
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/pyside_build/py2.7-qt4.8.7-64bit-release/shiboken/shibokenmodule/shiboken/shiboken_module_wrapper.cpp:3:
In file included from /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/shiboken.h:28:
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/basewrapper.h:40:1: warning: 'SbkObject' defined as a struct here but previously declared as a class [-Wmismatched-tags]
struct LIBSHIBOKEN_API SbkObject
^
/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/sources/shiboken/libshiboken/autodecref.h:29:1: note: did you mean struct here?
class SbkObject;
^~~~~
struct
2 warnings generated.
[100%] Linking CXX shared module shiboken.so
[100%] Built target shibokenmodule
Generating Shiboken documentation shiboken...
Running process: /usr/bin/make doc
/usr/bin/make doc
Scanning dependencies of target doc
Traceback (most recent call last):
File "/usr/local/bin/sphinx-build", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/sphinx/__init__.py", line 51, in main
sys.exit(build_main(argv))
File "/usr/local/lib/python2.7/site-packages/sphinx/__init__.py", line 61, in build_main
from sphinx import cmdline
File "/usr/local/lib/python2.7/site-packages/sphinx/cmdline.py", line 19, in <module>
from docutils.utils import SystemMessage
File "/usr/local/lib/python2.7/site-packages/docutils/utils/__init__.py", line 20, in <module>
import docutils.io
File "/usr/local/lib/python2.7/site-packages/docutils/io.py", line 18, in <module>
from docutils.utils.error_reporting import locale_encoding, ErrorString, ErrorOutput
File "/usr/local/lib/python2.7/site-packages/docutils/utils/error_reporting.py", line 47, in <module>
locale_encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1]
File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 543, in getdefaultlocale
return _parse_localename(localename)
File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 475, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
make[3]: *** [doc/CMakeFiles/doc] Error 1
make[2]: *** [doc/CMakeFiles/doc.dir/all] Error 2
make[1]: *** [doc/CMakeFiles/doc.dir/rule] Error 2
make: *** [doc] Error 2
error: Error generating documentation shiboken
----------------------------------------
Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-BRDGc2-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/c_/fz13_p7d2t9753xndxjkpy4m0000gn/T/pip-build-Vwhwto/PySide/
~ 3m 3s
❯
I get an frame from the cam and convert it to an QImage. This produce a memory leak. First i mean it is a problem with the QLabel (#144 closed issue) but its a problem with the QImage.
i found this:
https://bugreports.qt.io/browse/PYSIDE-140
is this the same?
Info:
Python3.4.3 virtualenv
host: ubuntu 14.04 64bit
from PyV4L2Camera.camera import Camera
import time
import numpy
from PIL import Image
from PySide import QtGui
camera = Camera('/dev/video2')
while True:
frame = camera.get_frame()
# Decode the image
dim = Image.frombytes('RGB', (camera.width, camera.height), frame, 'raw', 'RGB')
# Convert the image to a numpy array and back to the pillow image
arr = numpy.asarray(dim)
im = Image.fromarray(numpy.uint8(arr))
data = im.convert("RGBA").tostring("raw", "BGRA")
size = im.size
image = QtGui.QImage(data, size[0], size[1], QtGui.QImage.Format_ARGB32)
time.sleep( 0.1 )
for simpler test you can use a picture as source...
or have plan for future
PySide on GitHub doesn't look good, and we could at least provide and up-to-date mirror and testing dashboard here. Some notes:
I tried launching ipython qtconsole
Predictably, I got an error that required me to pip install pyside
inside of my virtualenv.
Then I got this on attempting to load the console (which imported QtGui):
ImportError: dlopen(/Users/bjolit/.virtualenvs/cpython27/lib/python2.7/site-packages/PySide/QtGui.so, 2): Library not loaded: libpyside-python2.7.1.2.dylib
Referenced from: /Users/bjolit/.virtualenvs/cpython27/lib/python2.7/site-packages/PySide/QtGui.so
Reason: image not found
I changed the iPython loader effectively do this:
def import_pyside():
cwd = os.getcwd()
import PySide
os.chdir(os.path.dirname(os.path.abspath(PySide.__file__)))
from PySide import QtGui, QtCore, QtSvg
os.chdir(cwd)
return QtCore, QtGui, QtSvg, QT_API_PYSIDE
And it would work.
Apparently there is an error in QtGui.so that rpath is suppose to solve, but isn't. Bug?
This is on MacOSX on a VirtualEnv.
Example:
(cpython27) bjolit@BJOLIT1013mac:[~]$ python
Python 2.7.5 (default, Mar 9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from PySide import QtGui, QtCore, QtSvg
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/Users/bjolit/.virtualenvs/cpython27/lib/python2.7/site-packages/PySide/QtGui.so, 2): Library not loaded: libpyside-python2.7.1.2.dylib
Referenced from: /Users/bjolit/.virtualenvs/cpython27/lib/python2.7/site-packages/PySide/QtGui.so
Reason: image not found
>>> ^D
I was following
http://pyside.readthedocs.org/en/latest/building/macosx.html#installing-prerequisites
and I did following
export MACOSX_DEPLOYMENT_TARGET=10.11
I am seeing following error when I am trying to compile, PySide on Mac OSX 10.11
CMake Error at /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/Platform/Darwin.cmake:76 (message):
CMAKE_OSX_DEPLOYMENT_TARGET is '10.11' but CMAKE_OSX_SYSROOT:
""
is not set to a MacOSX SDK with a recognized version. Either set
CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
empty.
After upgrade from PySide 1.2.2 to 1.2.4 I get a message about missing msvcr120.
The application is started after message box normally, but message box is annoying
You can reproduce it with:
pip install karmadbg==0.1.32
python karmadbg_ui.pyw
I'm trying to install PySide for Python 3.4. This is created using an Anaconda Environment. I run the following command:
pip install -U PySide
and get the following error:
Failed to find the MSVC compiler version 10.0 on your system
The following example causes a segmentation fault:
from PySide import QtGui
from PySide.QtCore import Qt
class Data(object):
def __getitem__(self, item):
raise ValueError("Issue")
model = QtGui.QStandardItemModel()
item = QtGui.QStandardItem('a')
item.setData(Data(), role=Qt.UserRole)
model.appendRow(item)
model.item(0)
Somehow, the getitem which raises an exception is needed to reproduce the failure. if instead of raising an exception I do:
class Data(object):
def __getitem__(self, item):
return 1
then the script is stuck.
PySide doesn't find /usr/lib/libpython3.3m.so which doesn't exist anymore since it got moved to /usr/lib/x86_64-linux-gnu/libpython3.3m.so. You have to determine the path using something like:
florian@apollo13:~/sources/pyside-1.1.1/debian/patches$ python3.3-config --ldflags
-L/usr/lib/python3.3/config-3.3m-x86_64-linux-gnu -L/usr/lib -lpthread -ldl -lutil -lm -lpython3.3m -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
florian@apollo13:~/sources/pyside-1.1.1/debian/patches$ python3.3-config --configdir
/usr/lib/python3.3/config-3.3m-x86_64-linux-gnu
Same goes for include files:
python3.3-config --includes
-I/usr/include/python3.3m -I/usr/include/x86_64-linux-gnu/python3.3m
I have to report this error is still unresolved.
Running the suggested https://raw.githubusercontent.com/PySide/pyside-setup/1.2.2/pyside_postinstall.py also fails to succeed.
Using PySide 1.2.2, when I try to save the app settings, I noticed that the function in object returns 'true' and 'false' rather than True and False. Is this a bug?
Hi there!
First of all thanks for the excellent Qt4 bindings! 😄
I'm the author of the pytest-qt plugin for pytest, and I'm currently working on creating a Python version of ModelTest.
I'm having some trouble testing a QStringListModel
instance because it doesn't seem to provide all the public methods it should as a QAbstractListModel
subclass. For example, the docs for QAbstractListModel
explicitly say:
The columnCount() function is implemented for interoperability with all kinds of views, but by default informs views that the model contains only one column.
But the snippet below:
def test_string_list_model():
from PySide import QtCore, QtGui
model = QtGui.QStringListModel()
model.setStringList(['hello', 'world'])
assert model.columnCount(QtCore.QModelIndex()) == 1
Fails with this error:
TypeError: columnCount(const QModelIndex & parent) const is a private method.
I see the same issue with parent()
and hasChildren()
methods.
The same snippet works fine for PyQt4
and PyQt5
.
Is this a known issue? Is there any workaround?
Cheers,
🍻
I'm pip installing PySide into a virtualenv:
sudo virtualenv --always-copy $VENV
source $VENV/bin/activate
sudo $VENV/bin/pip install pyside
sudo $VENV/bin/python $VENV/bin/pyside_postinstall.py -install
deactivate
The virtualenv works great and I can run my Python/PySide script without problems:
$VENV/bin/python $SCRIPT
Now, I make my virtualenv relocatable:
virtualenv --relocatable $VENV
I move it:
mv $VENV $VENV_RELOCATED
...and again run my script:
source $VENV_RELOCATED/bin/activate
$VENV_RELOCATED/bin/python $SCRIPT
This time around, I'm getting an error:
Traceback (most recent call last):
File "script.py", line 1, in <module>
from PySide import QtCore, QtGui, QtUiTools
ImportError: dlopen(/absolute/path/to/relocated_venv/lib/python2.7/site-packages/PySide/QtCore.so, 2): Library not loaded: @rpath/libpyside-python2.7.1.2.dylib
Referenced from: /absolute/path/to/relocated_venv/lib/python2.7/site-packages/PySide/QtCore.so
Reason: image not found
These are the contents of the script:
from PySide import QtCore, QtGui, QtUiTools
Please note: the absolute path printed twice in the error message is the $VENV_RELOCATED
This is all on OS X 10.11.0 with Python 2.7.10 and PySide 1.2.2.
Any ideas on workaround so that the virtualenv could be moved around?
I followed the install instructions, but I'm getting this error:
Traceback (most recent call last):
File "bar.py", line 18, in <module>
import foo
File "/Users/misha/webkit.py", line 1, in <module>
from PySide.QtCore import QEventLoop, QTimer, QUrl
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/PySide/QtCore.so, 2): Library not loaded: @rpath/libpyside-python2.7.1.2.dylib
Referenced from: /usr/local/lib/python2.7/site-packages/PySide/QtCore.so
Reason: image not found
In the past, this appears to have been handled with pyside_postinstall.py
but this script is no longer present:
bash-3.2$ pip show -f PySide | grep post
bash-3.2$
What am I doing wrong?
There is a little question in using of PySide. When I import PySide in PyCharm, I can not use the function of code completion. The function name of qt is too long to remember ... If we can solve this little problem, it's better ! Hope for your reply.
Hi,
I am trying to make work my python code on Mac OS Catalina 10.15 with Python 3.9
I get this error message when I run my code:
Traceback (most recent call last):
File "/Users/alisa/Dropbox/cff/Python/Project/MyScript.py", line 139, in <module>
from PyQt5 import QtWidgets, uic
ImportError: dlopen(/usr/local/lib/python3.9/site-packages/PyQt5/QtWidgets.abi3.so, 2): Symbol not found: _InitSignatureStrings
Referenced from: /usr/local/lib/python3.9/site-packages/PySide2/libpyside2.abi3.5.15.dylib
Expected in: /usr/local/lib/python3.9/site-packages/PySide2/libshiboken2.abi3.5.15.dylib
in /usr/local/lib/python3.9/site-packages/PySide2/libpyside2.abi3.5.15.dylib
Does anyone have any idea about how to fix this issue, please?
For a package I am working on, we've found that on Travis, using PySide instead of PyQt4 will occasionally lead to Segmentation faults when the Python interpreter exits. I haven't managed to produce a minimal failing example that always fails, but I did manage to get hold of the traceback during one of the segfaults:
#0 0x0000000d00000002 in ?? ()
#1 0x00007fffe490a102 in PySide::SignalManager::SignalManagerPrivate::~SignalManagerPrivate() () from /root/miniconda/envs/test/lib/python2.7/site-packages/PySide/../../../libpyside-python2.7.so.1.2
#2 0x00007fffe4907f86 in PySide::SignalManager::clear() () from /root/miniconda/envs/test/lib/python2.7/site-packages/PySide/../../../libpyside-python2.7.so.1.2
#3 0x00007fffe4917000 in PySide::destroyQCoreApplication() () from /root/miniconda/envs/test/lib/python2.7/site-packages/PySide/../../../libpyside-python2.7.so.1.2
#4 0x00007fffe49171c5 in PySide::runCleanupFunctions() () from /root/miniconda/envs/test/lib/python2.7/site-packages/PySide/../../../libpyside-python2.7.so.1.2
#5 0x00007fffe4c92b1d in SbkQtCoreModule___moduleShutdown(_object*) () from /root/miniconda/envs/test/lib/python2.7/site-packages/PySide/QtCore.so
#6 0x00007ffff7aef37f in ext_do_call (nk=-134557616, na=<optimized out>, flags=<optimized out>, pp_stack=0x7fffffffdfc8, func=0x7fffe5097320) at Python/ceval.c:4345
#7 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2720
#8 0x00007ffff7af0dbe in PyEval_EvalCodeEx (co=0x7ffff574a030, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
at Python/ceval.c:3267
#9 0x00007ffff7a6e891 in function_call (func=0x7ffff5740848, arg=0x7ffff7fad050, kw=0x0) at Objects/funcobject.c:526
#10 0x00007ffff7a3f333 in PyObject_Call (func=0x7ffff5740848, arg=<optimized out>, kw=<optimized out>) at Objects/abstract.c:2529
#11 0x00007ffff7ae8973 in PyEval_CallObjectWithKeywords (func=0x7ffff5740848, arg=0x7ffff7fad050, kw=<optimized out>) at Python/ceval.c:3904
#12 0x00007ffff7b0feea in call_sys_exitfunc () at Python/pythonrun.c:1751
#13 Py_Finalize () at Python/pythonrun.c:424
#14 0x00007ffff7b10088 in Py_Exit (sts=0) at Python/pythonrun.c:1778
#15 0x00007ffff7b101d1 in handle_system_exit () at Python/pythonrun.c:1152
#16 0x00007ffff7b1045d in PyErr_PrintEx (set_sys_last_vars=1) at Python/pythonrun.c:1162
#17 0x00007ffff7b1112e in PyRun_SimpleFileExFlags (fp=<optimized out>, filename=<optimized out>, closeit=<optimized out>, flags=0x7fffffffe400) at Python/pythonrun.c:953
#18 0x00007ffff7b268f4 in Py_Main (argc=<optimized out>, argv=<optimized out>) at Modules/main.c:645
#19 0x00007ffff6d3a76d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#20 0x0000000000400649 in _start ()
Do you have any idea what could be causing this, and how I might further investigate what is going on?
Hi,
I'm unable to install PySide under mac OS Sierra. Can you tell me what the work around for this error?
Using Python 2.7.12_2
mac OS Sierra 10.12
Thank you
Mac-Pro:~ bruno$ pip install pyside
Collecting pyside
Using cached PySide-1.2.4.tar.gz
Building wheels for collected packages: pyside
Running setup.py bdist_wheel for pyside ... error
Complete output from command /usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/c3/yrzmhx454qzd1h9l352xqfsr0000gn/T/pip-build-O_gdNx/pyside/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/c3/yrzmhx454qzd1h9l352xqfsr0000gn/T/tmp98GfYZpip-wheel- --python-tag cp27:
Removing /private/var/folders/c3/yrzmhx454qzd1h9l352xqfsr0000gn/T/pip-build-O_gdNx/pyside/pyside_package
running bdist_wheel
running build
Python architecture is 64bit
error: Failed to find cmake. Please specify the path to cmake with --cmake parameter.
----------------------------------------
Failed building wheel for pyside
Running setup.py clean for pyside
Failed to build pyside
Installing collected packages: pyside
Running setup.py install for pyside ... error
Complete output from command /usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/c3/yrzmhx454qzd1h9l352xqfsr0000gn/T/pip-build-O_gdNx/pyside/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/c3/yrzmhx454qzd1h9l352xqfsr0000gn/T/pip-9I8Zli-record/install-record.txt --single-version-externally-managed --compile:
Removing /private/var/folders/c3/yrzmhx454qzd1h9l352xqfsr0000gn/T/pip-build-O_gdNx/pyside/pyside_package
running install
running build
Python architecture is 64bit
error: Failed to find cmake. Please specify the path to cmake with --cmake parameter.
----------------------------------------
Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/c3/yrzmhx454qzd1h9l352xqfsr0000gn/T/pip-build-O_gdNx/pyside/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/c3/yrzmhx454qzd1h9l352xqfsr0000gn/T/pip-9I8Zli-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/c3/yrzmhx454qzd1h9l352xqfsr0000gn/T/pip-build-O_gdNx/pyside/
Signals are not getting through if sender and receiver are in different threads.
import time
from PySide.QtCore import *
from PySide.QtGui import *
class NoiseMaker(QObject):
noise = Signal(int)
def work(self):
while True:
print "Making some noise"
self.noise.emit( 100 )
time.sleep(0.5)
class Listener(QObject):
def work(self):
while True:
time.sleep(0.5)
def receiveNoise(self, integer):
print "Got some noise"
class App(QApplication):
def __init__(self):
super( App, self ).__init__([])
# Create workers
self.noiseMaker = NoiseMaker()
self.listener = Listener()
# Create threads
self.noiseMakerThread = QThread()
self.listenerThread = QThread()
# Move workers to threads
self.noiseMaker.moveToThread( self.noiseMakerThread )
self.listener.moveToThread( self.listenerThread )
# NoiseMaker emits to Listener
self.noiseMaker.noise.connect( self.listener.receiveNoise )
# Start noise thread
self.noiseMakerThread.started.connect( self.noiseMaker.work )
self.noiseMakerThread.start()
# Start listener thread
self.listenerThread.started.connect( self.listener.work )
self.listenerThread.start()
App().exec_()
Expected output:
Making some noise
Got some noise
Actual output:
Making some noise
However:
If you comment out these lines the example works:
self.noiseMaker.moveToThread( self.noiseMakerThread )
self.listener.moveToThread( self.listenerThread )
Alternatively, if you move both workers to the same thread, that also works:
self.noiseMaker.moveToThread( self.noiseMakerThread )
self.listener.moveToThread( self.noiseMakerThread )
I'm getting the following error when cross compiling pyside:
git/PySide/QtGui/PySide/QtGui/qapplication_wrapper.cpp:1894:46: error: no matching function for call to 'QApplication::setArgs(int&, char_&)'
no known conversion for argument 2 from 'char_' to 'char**'
I've looked at qapplication_wrapper.cpp and it is passing a char* to setArgs which is expecting a char**. Why was qapplication_wrapper.cpp generated with the wrong pointer usage?
What generates qapplication_wrapper.cpp
and where should I start looking for the source of this issue?
First I create a virtualenv and pip install PySide into it.
fredrik@ubuntudev:~/virtualenvs$ virtualenv --always-copy myenv
New python executable in myenv/bin/python
Installing setuptools, pip, wheel...done.
fredrik@ubuntudev:~/virtualenvs$ source myenv/bin/activate
(myenv)fredrik@ubuntudev:~/virtualenvs$ pip install PySide
Collecting PySide
Installing collected packages: PySide
Successfully installed PySide-1.2.4
PySide works fine:
fredrik@ubuntudev:~/virtualenvs$ source myenv/bin/activate
(myenv)fredrik@ubuntudev:~/virtualenvs$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PySide import QtCore
Then I deactivate
, make the virtualenv relocatable and move the virtualenv. The PySide module is not found:
(myenv)fredrik@ubuntudev:~/virtualenvs$ deactivate
fredrik@ubuntudev:~/virtualenvs$ virtualenv --relocatable myenv
Making script myenv/bin/pip2.7 relative
Making script myenv/bin/wheel relative
Making script myenv/bin/easy_install-2.7 relative
Making script myenv/bin/pyside-uic relative
Making script myenv/bin/easy_install relative
Making script myenv/bin/pip2 relative
Making script myenv/bin/pip relative
fredrik@ubuntudev:~/virtualenvs$ mv myenv movedenv
fredrik@ubuntudev:~/virtualenvs$ source movedenv/bin/activate
(myenv)fredrik@ubuntudev:~/virtualenvs$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PySide import QtCore
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named PySide
>>>
However, if I specify the full path to the virtualenv's python
executable, the PySide module is found:
(myenv)fredrik@ubuntudev:~/virtualenvs$ movedenv/bin/python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PySide import QtCore
>>>
This is all on Ubuntu 14.04.3 and I do no see this behavior on OS X or Windows.
Trying to install PySide from pypi and getting this issue:
File "C:\Users{user}\AppData\Local\Temp\pip-build-3iy1pet1\pyside\popenasync.py", line 26, in
if subprocess.mswindows:
AttributeError: module 'subprocess' has no attribute 'mswindows'
Win7 OS; Python 3.5
An OverflowError is raised when passing a 64-bit long
value through the data
method of a QSortFilterProxyModel
. This only occurs on Linux. No error occurs and the correct value is returned on Windows. In both cases, 64-bit builds of Python 2.7.8 and PySide 1.2.2 are used.
First, here is the minimal example needed to reproduce this error:
from PySide import QtGui, QtCore
from PySide.QtCore import Qt
class TestModel(QtCore.QAbstractListModel):
def rowCount(self, parent=None):
return 1
def data(self, index, role=Qt.DisplayRole):
if role == Qt.DisplayRole:
return (1 << 45)
def main():
model = TestModel()
proxyModel = QtGui.QSortFilterProxyModel()
proxyModel.setSourceModel(model)
val = proxyModel.data(proxyModel.index(0, 0, QtCore.QModelIndex()))
assert (1<<45) == val
if __name__ == '__main__':
main()
And the error that results:
val = proxyModel.data(proxyModel.index(0, 0, QtCore.QModelIndex()))
OverflowError
This error is surprising, and is not justified by any of the other reasons for raising an OverflowError (e.g. passing a 64-bit value into a Qt function whose argument type is int
or short
). This is because QAbstractItemModel
and subclasses have a QVariant
return type for data()
.
I have not tested this with debug builds of PySide, so this is only my suspicion: The CppWrapper for TestModel
will convert the Py_Long returned by the Python data
method into a QVariant
, and this is where the OverflowError occurs.
PySide can't get installed without cmake using eggs. Can you please release windows 64 bit python eggs. Since we use zc.buildout which is not able to use wheels we can't install PySide without cmake installed.
I can not use a QSignalTransition with a signal having an str or unicode as argument.
Error message: QSignalTransition: no such signal: ObjectName::SignalName(str)
It works well with bool or int as Signal argument... or Signal with no argument...
PySide 1.2.1 / Python 2.7.6
I am trying to initialize QTextStream to stdout, but am getting this error. I am trying to redirect stdout, while following the PySide docs (even though it doesn't use proper Python syntax).
stream = QtCore.QTextStream(sys.stdout)
TypeError: 'PySide.QtCore.QTextStream' called with wrong argument types:
PySide.QtCore.QTextStream(file)
Supported signatures:
PySide.QtCore.QTextStream()
PySide.QtCore.QTextStream(PySide.QtCore.QByteArray, PySide.QtCore.QIODevice.OpenMode = QIODevice.ReadWrite)
PySide.QtCore.QTextStream(PySide.QtCore.QIODevice)
Example of crash:
https://gist.github.com/anonymous/6bec6e87acb62ee81646
Here's explanation of the issue as far as I could understand:
self.view.addItem('AAA')
Method addItem creates instance of QListWidgetItem. It's plain C++ object without any Python wrapper.
self.view.item(0)
Method QListWidget.item creates Python wrapper for created object and links it to the list using function Shiboken::Object::setParent, so the wrapper remains live till the exit from application potentially.
self.view.clear()
QListWidget.clear() clears internal list and destroys every item in it. After this the item object does no more exist, but the corresponding Python wrapper still does and it isn't marked as pointing to invalid object.
So there is two main ways how we can crash program using this invalid wrapper. The first is pretty obvious: try to call any method of previously acquired wrapper. Like in method crash1 from example.
The second way is more vague, and I don't understand the mechanism behind that, but it is more likely to occur and more dangerous. The crash occurs when you instantiate any descendant of QWidget class. It can be absolutely unrelated to the use of item() method so it's very hard to diagnose.
If you do something like this redefining QAbstractItemModel.data():
def data(self, index, role):
if role == TextAlignmentRole:
return AlignBottom # it works
return AlignRight # it also works
return AlignBottom|AlignRight # it doesn't work
# you must do this:
return int(AlignBottom|AlignRight) # it now works
I think it's due to the fact that:
print AlignBottom|AlignRight
#: <Alignment object at 0x7f7c70093210>
Since AlignBottom|AlignRight generates an Alignment object, it's not well digested as a return type for QAbstractItemModel.data(index, TextAlignmentRole).
Until this issue is fixed, a simple cast to int will bypass this bug.
The following code in PySide::getMetaDataFromQObject :
QMetaMethod method = metaObject->method(i);
const char* methSig = method.methodSignature();
Is taking a pointer to temporary memory. Qt5 QMetaMethod::methodSignature() is returning
QByteArray vs Qt4 QMetaMethod::signature() which returned a plain char *.
It seems sphinx.ext.refcounting
is no longer available from Sphinx ver 1.2 but Shiboken tried to import it and fail the instll steps if the new version of Sphinx is installed.
I don't have trouble with this since I decied to install old version (Sphinx 1.1.3) but in case someone could not figure out why PySide couldn't be installed via pip.
% pip install "sphinx==1.1.3"
% pip install pyside
Best :-)
Hi,
i grep frames from an webcam and display it on a QLabel and it works, but i see an memory leak.
class CameraDisplay(QtGui.QLabel):
def __init__(self):
super(CameraDisplay, self).__init__()
def updateFrame(self, image):
pm = QtGui.QPixmap.fromImage(image)
self.setPixmap(pm)
del pm after set has nothing fixed, clear the pixmap cache has not fixed it....
i found this posting and it shows my problem: http://www.mzan.com/article/36663774-qimage-memory-leak.shtml
Info:
Python3.4.3 virtualenv
host: ubuntu 14.04 64bit
ERROR: Failed building wheel for PySide
Running setup.py clean for PySide
Failed to build PySide
Installing collected packages: PySide
Running setup.py install for PySide ... error
ERROR: Complete output from command /Users/shashank/chip/proj/bin/python -u -c 'import setuptools, tokenize;file='"'"'/private/var/folders/sd/7pynqg4x76n47gmth2qy3hf40000gn/T/pip-install-B5spWP/PySide/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/sd/7pynqg4x76n47gmth2qy3hf40000gn/T/pip-record-TYRpy_/install-record.txt --single-version-externally-managed --compile --install-headers /Users/shashank/chip/proj/include/site/python2.7/PySide:
ERROR: Removing /private/var/folders/sd/7pynqg4x76n47gmth2qy3hf40000gn/T/pip-install-B5spWP/PySide/pyside_package
running install
running build
Python architecture is 64bit
error: Failed to find cmake. Please specify the path to cmake with --cmake parameter.
----------------------------------------
ERROR: Command "/Users/shashank/chip/proj/bin/python -u -c 'import setuptools, tokenize;file='"'"'/private/var/folders/sd/7pynqg4x76n47gmth2qy3hf40000gn/T/pip-install-B5spWP/PySide/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/sd/7pynqg4x76n47gmth2qy3hf40000gn/T/pip-record-TYRpy_/install-record.txt --single-version-externally-managed --compile --install-headers /Users/shashank/chip/proj/include/site/python2.7/PySide" failed with error code 1 in /private/var/folders/sd/7pynqg4x76n47gmth2qy3hf40000gn/T/pip-install-B5spWP/PySide/
I've ran across a few loose threads of people mentioning PySide for Python 3.5. I'm assuming the greatest challenge is that Python 3.5 is compiled with Visual Studio 2015 with MSVCR 14, which means Qt and PySide must also be compiled with the same compiler. (Some of this might be Windows specific, but I mean for this issue to apply broadly to Python 3.5 compatibility on all major platforms...)
Since PyCharm 5 is out supporting 3.5, and Anaconda 2.4 is out supporting 3.5, I decided to try and make the switch yesterday. While many of the scientific ecosystem packages like numpy, scipy, pandas, and matplotlib were all ready for 3.5 (a boon in part thanks to the addition of the @
operator for matrix multiplication in numpy), PySide became the dependancy that prevented me from upgrading.
I discovered that while the official PyQt4 and PyQt5 downloads don't yet support Python 3.5, there are Windows binaries available through conda and at Christoph Gohlke's site. So it looks like there are Python 3.5 bindings for Qt, just not through PySide yet.
I completely understand that there isn't a lot of manpower available to tackle this, and not much benefit since not many people jump on the latest Python version right away. I just figured since many of the other ecosystems and libraries out there have updated to support 3.5 recently, that it's worth tracking PySide's progress towards Python 3.5 support.
I wish I was capable of helping with this issue, but I'm humbly out of my area of expertise with a task like this.
Thanks!
edit: spelling/wording
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.