Sorry, I clicked send by mistake.

Hi Jelle,

Thank you for answering. I understand that importing all the modules is very
bad practice... Actually I tried the example, and I kept trying the other
modules. It seems that any of them is present.

>>> from OCC.Display.SimpleGui import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named OCC.Display.SimpleGui
>>> from OCC import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named OCC
>>> quit()

Here I remove python-occ, uncheck the
http://ppa.launchpad.net/hmeyer/pythoncad/ubuntu and repeated the procedure
of installing PythonOCC-0.4

lie@lie-laptop:~$ python
>>> from OCC import *
>>> quit()

Here it is everything fine.

I also tried to update with the new version, it erases the folder
/usr/lib/pymodules/python2.6/OCC

I might be missing something...

Thank you
Lie Pablo



After updating

On 13 August 2011 19:17, Lie Pablo Grala Pinto <lie...@gmail.com> wrote:

> Hi Jelle,
>
> Thank you for answering. I understand that importing all the modules is
> very bad practice... Actually I tried the example, and I kept trying the
> other modules. It seems that any of them is present.
>
> >>> from OCC.Display.SimpleGui import *
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named OCC.Display.SimpleGui
> >>> from OCC import *
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named OCC
> >>> quit()
>
> Here I remove python-occ, uncheck the
> http://ppa.launchpad.net/hmeyer/pythoncad/ubuntu and repeated the
> procedure of installing PythonOCC-0.4
>
> lie@lie-laptop:~$ python
> >>> from OCC import *
> >>> quit()
>
> Here it is everything fine.
>
> I also tried to update with the new version, it doesn
> /usr/lib/pymodules/python2.6
>

>
>
> On 13 August 2011 18:39, jelle feringa <jelleferi...@gmail.com> wrote:
>
>> Please help me, I did the procedure and I got the PythonOCC-0.5 installed
>>> without errors, but it seems my Python (2.6.5) doesn't know the module
>>> (from OCC
>>> Import *). Am I doing something wrong?
>>>
>>
>> hello Lie,
>>
>> I advise strongly against importing all OCC modules!
>> These could take a really long time to load.
>> Can you run the examples?
>> That provides us meaningful feedback.
>>
>> -jelle
>>
>> _______________________________________________
>> Pythonocc-users mailing list
>> Pythonocc-users@gna.org
>> https://mail.gna.org/listinfo/pythonocc-users
>>
>>
>
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to