From: M H. <air...@ho...> - 2012-08-26 18:48:54
|
That's what I'm using is PyCharm and it seems to be so much better than Eclipse/PyDev, at least for a beginner. Anyway, is that the whole library in /Lib/site-packages/visual? Does it install anything somewhere else? Also, I see the visual directory but for some reason, I cannot import anything from this directory, as I get errors in PyCharms built-in console. This is the particular error: Traceback (most recent call last): File "C:/Users/airspoon/PycharmProjects/goo/vis.py", line 1, in <module> from visual import * File "C:\Python32\lib\site-packages\visual\__init__.py", line 1, in <module> from .visual_all import * File "C:\Python32\lib\site-packages\visual\visual_all.py", line 1, in <module> from vis import version File "C:\Users\airspoon\PycharmProjects\goo\vis.py", line 3, in <module> floor = Box (pos=(0,0,0), length=4, height=0.5, width=4, color=color.blue)NameError: name 'Box' is not defined This is what I get when I copy and paste the 'bouncing ball' example from the vPython website. Isn't that telling me that it can't import anything from the visual library? Thanks for the help > Date: Sun, 26 Aug 2012 10:13:02 -0700 > Subject: Re: [Visualpython-users] Is there anyway to uninstall vPython? > From: kir...@gm... > To: air...@ho... > CC: vis...@li... > > On Sun, Aug 26, 2012 at 9:25 AM, M Hartman <air...@ho...> wrote: > > Hello, I recently installed vPython using the installer for Windows 7 64bit > > (Python 3.2) and I noticed that it didn't put a link on my desktop for > > VIDLE. So, I thought that I'd try the bouncing ball example from the vPython > > library in my favorite editor and it simply doesn't work. I get error > > messages over the very first 'from visual import *' (and just about > > everything else). I'm not sure what's going on but I'd like to somehow > > remove vPython and I can't find a clear way to do that, without uninstalling > > my whole Python distribution. Is there anyway to just get rid of the vPython > > while keeping the Python distro that it installed into? Thanks. > > > > I'm pretty sure it installs almost everything in your > python32/Lib/site-packages/visual directory and you > can just drag and drop that into your trash or however > you prefer to delete file trees. Is there a DLL that > goes somewhere? Shouldn't matter much. > > As it so happens, I just installed 32bit Python 3.2 > with Visual on WinXP yesterday. I wanted to see > of the editor PyCharm from JetBrains, which many > are gravitating towards ($29 for academic license), > would handle visual programs without hiccups. So > far so good. > > Ideally, visual could be adding to an existing > virtualenv with pip install vpython but that didn't > work, nor pip install visual. But may it should be > broken down into step with pip install numpy > separate. > > http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/ > > shows the kind of install process that visual could > be a part of if there were a pip install way to get it. > > I recommend that if you try with Win7 again, you > learn about virtualenv and how to install visual in just > one of your many virtual Python environments. It's > a way to isolate importables and dependencies. > > Kirby |