WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #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
  #2  
Old 06-21-2016, 01:48 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,455
Yes, you're trying to access an internal file that can't be edited. Can you describe further what you are trying to accomplish?
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
view_coliision module bbb Vizard 2 08-24-2016 12:46 AM
vizinput module missing whaleeee Vizard 1 02-05-2013 11:30 PM
Exception in module vizjoy fordprefect Vizard 2 12-03-2012 01:41 AM
Fading/lightening-Problem and viz.go in module Johannes Vizard 6 09-02-2005 04:28 PM
vhil module vadrian Vizard 2 01-27-2005 11:52 AM


All times are GMT -7. The time now is 08:00 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC