Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - python-occ

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: python-occ 0.16.3-4

Git Clone URL: https://aur-dev.archlinux.org/python-occ.git (read-only)
Package Base: python-occ
Description: A python library whose purpose is to provide 3D modeling features
Upstream URL: https://github.com/tpaviot/pythonocc-core
Licenses: GPLv3
Submitter: greyltc
Maintainer: greyltc
Last Packager: greyltc
Votes: 1
Popularity: 0.000590
First Submitted: 2016-01-18 11:21
Last Updated: 2016-01-18 18:26

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

puntaier_gtec commented on 2016-10-07 12:37

I got errors like StandardIOd.hxx no such file or directory. Is there a version issue between OCE and Python-OCC?

tapia commented on 2016-02-02 21:44

Hi, I built this package successfully but I get this error when I run the following example taken from the official site it gives an error:

>>from OCC.Display.SimpleGui import init_display
>>from OCC.BRepPrimAPI import BRepPrimAPI_MakeBox

>>display, start_display, add_menu, add_function_to_menu = init_display()

INFO:OCC.Display.backend:backend loaded: qt-pyqt5
INFO:OCC.Display.SimpleGui:GUI backend set to: qt-pyqt5
RuntimeError Traceback (most recent call last)
<ipython-input-3-7053f85cee0b> in <module>()
----> 1 display, start_display, add_menu, add_function_to_menu = init_display()

/usr/lib/python3.5/site-packages/OCC/Display/SimpleGui.py in init_display(backend_str, size)
139 if not app: # create QApplication if it doesnt exist
140 app = QtWidgets.QApplication(sys.argv)
--> 141 win = MainWindow()
142 win.show()
143 win.canva.InitDriver()

/usr/lib/python3.5/site-packages/OCC/Display/SimpleGui.py in __init__(self, *args)
93 def __init__(self, *args):
94 QtWidgets.QMainWindow.__init__(self, *args)
---> 95 self.canva = qtViewer3d(self)
96 self.setWindowTitle("pythonOCC-%s 3d viewer ('%s' backend)" % (VERSION, used_backend))
97 self.resize(size[0], size[1])

/usr/lib/python3.5/site-packages/OCC/Display/qtDisplay.py in __init__(self, *kargs)
108 class qtViewer3d(qtBaseViewer):
109 def __init__(self, *kargs):
--> 110 qtBaseViewer.__init__(self, *kargs)
111 self._drawbox = False
112 self._zoom_area = False

/usr/lib/python3.5/site-packages/OCC/Display/qtDisplay.py in __init__(self, parent)
69 self._have_pyside = have_pyside()
---> 70 self._have_pyqt4 = have_pyqt4()
71 self._have_pyqt5 = have_pyqt5()
72 self._have_backend = have_backend()

/usr/lib/python3.5/site-packages/OCC/Display/backend.py in have_pyqt4()
35 global HAVE_PYQT4, QtCore, QtGui, QtWidgets, QtOpenGL
36 try:
---> 37 from PyQt4 import QtCore, QtGui, QtOpenGL
38 QtWidgets = QtGui
39 HAVE_PYQT4 = True

RuntimeError: the PyQt4.QtCore and PyQt5.QtCore modules both wrap the QObject class

Could it be a problem with pyQt?