View Single Post
  #1  
Old 06-21-2016, 01:04 AM
Bhavesh Bhavesh is offline
Member
 
Join Date: Jun 2016
Posts: 2
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\galer y experiments\gallery.py", line 9, in <module>
import viz
File "C:\CAT_IITG\Vizard_Construction_Destruction\galer y 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
Reply With Quote