Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named visual

I am trying to run this Python Program on Ubuntu but I am getting an error that says

ImportError: No module named visual

Can you guys please guide me on how can I resolve this issue?

like image 276
Irfan Ghaffar7 Avatar asked Feb 18 '15 19:02

Irfan Ghaffar7


2 Answers

visual module has been renamed to vpython lately.

So to run this now, you first install vpython like:

sudo pip3 install vpython 

then replace the line:

from visual import *

with

from vpython import *

That worked for me.

like image 154
bhaskarc Avatar answered Oct 31 '22 18:10

bhaskarc


The script requires Vpython to be installed.

Then, make sure it is actually installed. Alternatively, move the library into your local folder. If it still doesn't work, check for an __init__ file.

like image 25
noɥʇʎԀʎzɐɹƆ Avatar answered Oct 31 '22 18:10

noɥʇʎԀʎzɐɹƆ