Could not locate _Vizcore module
Hello all
I was trying to run gallery.py ( provided by vizard software) using python interpreter. The program imports following modules viz vizact vizshape. I copied these modules viz.py, vizact.py and vizshape.py and gallery.py in one folder, so gallery.py can can have access to the modules. But when I run the gallery.py script it gives the following error " Traceback (most recent call last): File "C:\CAT_IITG\Vizard_Construction_Destruction\galery experiments\gallery.py", line 9, in import viz File "C:\CAT_IITG\Vizard_Construction_Destruction\galery experiments\viz.py", line 17 raise ImportError,'viz module can only be imported by Vizard' ^ SyntaxError: invalid syntax " Then I checked in to viz.py, I found the following code in the beginning of file itself try: import _vizcore except ImportError: if 'VIZARD_WORKER_PROCESS' in os.environ: def _dummy(*args,**kw): return None _ipcSend = _dummy _ipcSendEx = _dummy else: raise ImportError,'viz module can only be imported by Vizard' else: _ipcSend = _vizcore._ipcSend _ipcSendEx = _vizcore._ipcSendEx This block of code imports _vizcore. So I tried to search _vizcore module in to the vizard software folder but I couldn't locate it. Are there any sources from where, I can find _vizcore module Or this is done so that users can't edit the _vizcore module |
Yes, you're trying to access an internal file that can't be edited. Can you describe further what you are trying to accomplish?
|
All times are GMT -7. The time now is 07:22 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC