Re: [web2py] Re: No module named xxx Ubuntu

2012-11-22 Thread Mandar Vaze / मंदार वझे
Ignore following - I didn't realize the problem was resolved - my bad.

On Thu, Nov 22, 2012 at 6:37 PM, Mandar Vaze / मंदार वझे <
mandarv...@gmail.com> wrote:

> "requests" seems common name, possible conflict ?
> Depending on your web2py version, check to see if the following
> discussions are useful
>
>
> https://groups.google.com/forum/?fromgroups=#!searchin/web2py/import$20conflict/web2py/esjhf77d_jg/P0Dvc2nLur4J
>
> https://groups.google.com/forum/?fromgroups=#!searchin/web2py/import$20conflict/web2py/GY5NPJWmuMI/Nn8CNHBs1hAJ
>
> https://groups.google.com/forum/?fromgroups=#!searchin/web2py/import$20conflict/web2py/GY5NPJWmuMI/Nn8CNHBs1hAJ
>
> try changing name of your module from requests to myapprequests or some
> such to avoid conflict
>
> -Mandar
>
>
> On Thu, Nov 22, 2012 at 4:20 PM, António Ramos wrote:
>
>> Now i have another python module "requests" that i cannot import in
>> web2py2.X
>>
>> why?
>>
>>
>>
>> 2012/11/19 António Ramos 
>>
>>> i moved my app to web2py2.XX and it works now!
>>>
>>> thank you
>>> António
>>>
>>>
>>> 2012/11/19 Mandar Vaze 
>>>
 if pycall is under applications/myapp/modules, then try restarting
 web2py
 When I created a new file under the modules folder, web2py couldn't
 import until it was restarted

 See if it helps

 -Mandar


 On Thursday, November 15, 2012 5:38:27 PM UTC+5:30, Ramos wrote:
>
> Hello
> i have web2py running in Ubuntu 12.04
>
> i installed a module Pycall as root
>
> On the ubuntu console i can import pycall but if i import in a
> controller function i get the error
>
> def phone(a):
> print "calling ",a
> from pycall import CallFile, Call, Application
> call = Call('SIP/robert')
> action = Application('Playback', 'hello-world')
> c = CallFile(call, action)
> c.spool()
> return 0
>
> *No module named pycall*
>
>
> Help would be apreciated
>
> Thanks
> António
>
 --




>>>
>>>
>>  --
>>
>>
>>
>>
>
>

-- 





Re: [web2py] Re: No module named xxx Ubuntu

2012-11-22 Thread Mandar Vaze / मंदार वझे
"requests" seems common name, possible conflict ?
Depending on your web2py version, check to see if the following discussions
are useful

https://groups.google.com/forum/?fromgroups=#!searchin/web2py/import$20conflict/web2py/esjhf77d_jg/P0Dvc2nLur4J
https://groups.google.com/forum/?fromgroups=#!searchin/web2py/import$20conflict/web2py/GY5NPJWmuMI/Nn8CNHBs1hAJ
https://groups.google.com/forum/?fromgroups=#!searchin/web2py/import$20conflict/web2py/GY5NPJWmuMI/Nn8CNHBs1hAJ

try changing name of your module from requests to myapprequests or some
such to avoid conflict

-Mandar

On Thu, Nov 22, 2012 at 4:20 PM, António Ramos  wrote:

> Now i have another python module "requests" that i cannot import in
> web2py2.X
>
> why?
>
>
>
> 2012/11/19 António Ramos 
>
>> i moved my app to web2py2.XX and it works now!
>>
>> thank you
>> António
>>
>>
>> 2012/11/19 Mandar Vaze 
>>
>>> if pycall is under applications/myapp/modules, then try restarting web2py
>>> When I created a new file under the modules folder, web2py couldn't
>>> import until it was restarted
>>>
>>> See if it helps
>>>
>>> -Mandar
>>>
>>>
>>> On Thursday, November 15, 2012 5:38:27 PM UTC+5:30, Ramos wrote:

 Hello
 i have web2py running in Ubuntu 12.04

 i installed a module Pycall as root

 On the ubuntu console i can import pycall but if i import in a
 controller function i get the error

 def phone(a):
 print "calling ",a
 from pycall import CallFile, Call, Application
 call = Call('SIP/robert')
 action = Application('Playback', 'hello-world')
 c = CallFile(call, action)
 c.spool()
 return 0

 *No module named pycall*


 Help would be apreciated

 Thanks
 António

>>> --
>>>
>>>
>>>
>>>
>>
>>
>  --
>
>
>
>

-- 





Re: [web2py] Re: No module named xxx Ubuntu

2012-11-22 Thread António Ramos
it works.
I restarted web2py after installing requests module

:)

2012/11/22 António Ramos 

> Now i have another python module "requests" that i cannot import in
> web2py2.X
>
> why?
>
>
>
> 2012/11/19 António Ramos 
>
>> i moved my app to web2py2.XX and it works now!
>>
>> thank you
>> António
>>
>>
>> 2012/11/19 Mandar Vaze 
>>
>>> if pycall is under applications/myapp/modules, then try restarting web2py
>>> When I created a new file under the modules folder, web2py couldn't
>>> import until it was restarted
>>>
>>> See if it helps
>>>
>>> -Mandar
>>>
>>>
>>> On Thursday, November 15, 2012 5:38:27 PM UTC+5:30, Ramos wrote:

 Hello
 i have web2py running in Ubuntu 12.04

 i installed a module Pycall as root

 On the ubuntu console i can import pycall but if i import in a
 controller function i get the error

 def phone(a):
 print "calling ",a
 from pycall import CallFile, Call, Application
 call = Call('SIP/robert')
 action = Application('Playback', 'hello-world')
 c = CallFile(call, action)
 c.spool()
 return 0

 *No module named pycall*


 Help would be apreciated

 Thanks
 António

>>> --
>>>
>>>
>>>
>>>
>>
>>
>

-- 





Re: [web2py] Re: No module named xxx Ubuntu

2012-11-22 Thread António Ramos
Now i have another python module "requests" that i cannot import in
web2py2.X

why?



2012/11/19 António Ramos 

> i moved my app to web2py2.XX and it works now!
>
> thank you
> António
>
>
> 2012/11/19 Mandar Vaze 
>
>> if pycall is under applications/myapp/modules, then try restarting web2py
>> When I created a new file under the modules folder, web2py couldn't
>> import until it was restarted
>>
>> See if it helps
>>
>> -Mandar
>>
>>
>> On Thursday, November 15, 2012 5:38:27 PM UTC+5:30, Ramos wrote:
>>>
>>> Hello
>>> i have web2py running in Ubuntu 12.04
>>>
>>> i installed a module Pycall as root
>>>
>>> On the ubuntu console i can import pycall but if i import in a
>>> controller function i get the error
>>>
>>> def phone(a):
>>> print "calling ",a
>>> from pycall import CallFile, Call, Application
>>> call = Call('SIP/robert')
>>> action = Application('Playback', 'hello-world')
>>> c = CallFile(call, action)
>>> c.spool()
>>> return 0
>>>
>>> *No module named pycall*
>>>
>>>
>>> Help would be apreciated
>>>
>>> Thanks
>>> António
>>>
>> --
>>
>>
>>
>>
>
>

-- 





Re: [web2py] Re: No module named xxx Ubuntu

2012-11-19 Thread António Ramos
i moved my app to web2py2.XX and it works now!

thank you
António

2012/11/19 Mandar Vaze 

> if pycall is under applications/myapp/modules, then try restarting web2py
> When I created a new file under the modules folder, web2py couldn't
> import until it was restarted
>
> See if it helps
>
> -Mandar
>
>
> On Thursday, November 15, 2012 5:38:27 PM UTC+5:30, Ramos wrote:
>>
>> Hello
>> i have web2py running in Ubuntu 12.04
>>
>> i installed a module Pycall as root
>>
>> On the ubuntu console i can import pycall but if i import in a controller
>> function i get the error
>>
>> def phone(a):
>> print "calling ",a
>> from pycall import CallFile, Call, Application
>> call = Call('SIP/robert')
>> action = Application('Playback', 'hello-world')
>> c = CallFile(call, action)
>> c.spool()
>> return 0
>>
>> *No module named pycall*
>>
>>
>> Help would be apreciated
>>
>> Thanks
>> António
>>
>  --
>
>
>
>

--