Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SoGui.init(sys.argv[0]) run error #100

Open
CaeCoder opened this issue Aug 24, 2022 · 6 comments
Open

SoGui.init(sys.argv[0]) run error #100

CaeCoder opened this issue Aug 24, 2022 · 6 comments

Comments

@CaeCoder
Copy link

call code:myWindow = SoGui.init(sys.argv[0]),there throw error

Traceback (most recent call last):
File "D:\Temp\pivy\pivy-master\examples\Mentor\02.1.HelloCone.py", line 63, in
main()
File "D:\Temp\pivy\pivy-master\examples\Mentor\02.1.HelloCone.py", line 34, in main
myWindow = SoGui.init(sys.argv[0])
File "D:\Software\Software_Install\Anaconda3\lib\site-packages\pivy\sogui.py", line 123, in init
return pivy.quarter.QuarterWidget()
File "D:\Software\Software_Install\Anaconda3\lib\site-packages\pivy\quarter\QuarterWidget.py", line 204, in init
QuarterWidget._sensormanager = SensorManager()
File "D:\Software\Software_Install\Anaconda3\lib\site-packages\pivy\quarter\SensorManager.py", line 51, in init
SoDB.getSensorManager().setChangedCallback(self.sensorQueueChangedCB, self)
File "D:\Software\Software_Install\Anaconda3\lib\site-packages\pivy\coin.py", line 4068, in setChangedCallback
return _coin.SoSensorManager_setChangedCallback(self, sensorQueueChangedCB, data)
TypeError: in method 'SoSensorManager_setChangedCallback', argument 2 of type 'void (*)(void *)'
Exception ignored in: <function SensorManager.del at 0x000001D914F48280>
Traceback (most recent call last):
File "D:\Software\Software_Install\Anaconda3\lib\site-packages\pivy\quarter\SensorManager.py", line 58, in del
if self._signalthread.isRunning():
RuntimeError: Internal C++ object (SignalThread) already deleted.

@marioalexis84
Copy link
Contributor

#99 solve this.

@CaeCoder
Copy link
Author

I update to the latest pivy (2022-08-25), recompile, and this error still exist.

@CaeCoder
Copy link
Author

run #99,run below code,there is error TypeError: in method 'SoSensorManager_setChangedCallback', argument 2 of type 'void (*)(void *)'
from PySide2.QtWidgets import QApplication
from pivy import quarter
app = QApplication()
q = quarter.QuarterWidget()

@CaeCoder
Copy link
Author

my python environment is "Python 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32"

@marioalexis84
Copy link
Contributor

How are you recompiling?
Can you try a full rebuild? Currently, changes to the SWIG interface file pivy_common_typemaps.i don't trigger a rebuild.

@CaeCoder
Copy link
Author

I recoimpile with cmake-gui configure setting Visual Studio 2017 X64,swig4.0.0,Qt5 items selected Anaconda install directory。I deleted all build files and folder before compile。recompiled,run Install project to make pivy package in Anaconda Lib/Site-package/pivy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants