Ovidio:

The ImportError maybe because you have a problem with the web2py
instance, you must decompress the web2py folder in the rad2py
directory, no inside the ide2py.
Also, look at the Python Path, maybe there is a web2py.py file around
that is preventing you to import the correct one from the IDE.

C:\Users\Mariano>python
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\
\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27
', 'C:\\Python27\\lib\\site-packages', 'C:\\Python27\\lib\\site-packages\\PIL',
'C:\\Python27\\lib\\site-packages\\win32', 'C:\\Python27\\lib\\site-packages\\wi
n32\\lib', 'C:\\Python27\\lib\\site-packages\\Pythonwin', 'C:\\Python27\\lib\\si
te-packages\\wx-2.8-msw-unicode']

If the problem persist, rename ide2py/web2py.py to ide2py/ovidio.py
and change the offending line:

from ovidio import Web2pyMixin

Best regrads,

Mariano Reingart
http://www.sistemasagiles.com.ar
http://reingart.blogspot.com



On Fri, Aug 12, 2011 at 1:39 PM, Ovidio Marinho <ovidio...@gmail.com> wrote:
>
>       I updated the version of wx python, and removed
> the psp.py continues with this error:
> ovidio@ovidio-laptop:~/ide2py$ python
> Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import wx
>>>> wx.version()
> '2.8.11.0 (gtk2-unicode)'
>>>>
> ovidio@ovidio-laptop:~/ide2py$ python main.py
> Traceback (most recent call last):
>   File "main.py", line 50, in <module>
>     from web2py import Web2pyMixin
> ImportError: cannot import name Web2pyMixin
>
>        Ovidio Marinho Falcao Neto
>              ovidio...@gmail.com
>                      88269088
>                    Paraiba-Brasil
>
>
>
> 2011/8/12 Mariano Reingart <reing...@gmail.com>
>>
>> Please, exec the following command an tell me the ouput:
>>
>> cd rad2py/ide2py
>> python web2py.py
>>
>> It is very strange, as it file doesn't have any external dependency
>> (just python stdlib)
>> it doesn't even import gluon at first.
>>
>> Are you trying the latest version 0.06b?
>>
>> If the problem persist, please fill an issue in the googlecode project
>> site:
>> http://code.google.com/p/rad2py/issues/list
>>
>> Best regards,
>>
>> Mariano Reingart
>> http://www.sistemasagiles.com.ar
>> http://reingart.blogspot.com
>>
>>
>>
>> 2011/8/12 Ovidio Marinho <ovidio...@gmail.com>:
>> > other traceback,
>> > ovidio@ovidio-laptop:~/ide2py$ sudo python main.py
>> > Traceback (most recent call last):
>> >   File "main.py", line 50, in <module>
>> >     from web2py import Web2pyMixin
>> > ImportError: cannot import name Web2pyMixin
>> > ovidio@ovidio-laptop:~/ide2py$ python
>> > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
>> > [GCC 4.4.3] on linux2
>> > Type "help", "copyright", "credits" or "license" for more information.
>> >>>> import wx
>> >>>> wx.version()
>> > '2.8.10.1 (gtk2-unicode)'
>> >>>>
>> >
>> >
>> >        Ovidio Marinho Falcao Neto
>> >              ovidio...@gmail.com
>> >                      88269088
>> >                    Paraiba-Brasil
>> >
>> >
>> >
>> > Em 12 de agosto de 2011 11:47, Mariano Reingart <reing...@gmail.com>
>> > escreveu:
>> >>
>> >> On Fri, Aug 12, 2011 at 11:02 AM, Ovidio Marinho <ovidio...@gmail.com>
>> >> wrote:
>> >> > Mariano, ja que somos latinos , melhor tratar em portunhol ok. Amigo
>> >> > fiz
>> >> > de
>> >> > tudo mas nao consigo atualizar o repositorio do ubuntu 10.04, a
>> >> > mensagem
>> >> > eh
>> >> > que a versao wxpython instalada eh a mais recente. E nao estou
>> >> > conseguido o
>> >> > passo a passo para instalar. acho que vou remover tudo e instalar
>> >> > novamente.
>> >> > Mas isto eh muito bom e eu preciso que funcione.
>> >>
>> >> Você poderia postar a mensagem de erro detalhadas no site do projeto:
>> >> http://code.google.com/p/rad2py/issues/entry
>> >>
>> >> Por favor, inclua o traceback ea versão do wx
>> >>
>> >> import wx; wx.version()
>> >>
>> >> Atenciosamente,
>> >>
>> >> Mariano Reingart
>> >> http://www.sistemasagiles.com.ar
>> >> http://reingart.blogspot.com
>> >
>> >
>
>

Reply via email to