Piddling around,
I found I had an issue in restuff.py with "import Cookie", and the problem 
still exists with it's replacement "import cookielib".
And the problem exists with "import urllib2", even though 
controllers/default.py doesn't have problem with that line.

Default.py can import restuff.py just fine if I comment out those imports, 
but obviously I'm not handling cookies in this "fix".

/dps

On Monday, January 11, 2021 at 3:56:15 PM UTC-8 Dave S wrote:

> On Thursday, December 31, 2020 at 2:29:49 PM UTC-8 Dave S wrote:
>
>> On Thursday, December 31, 2020 at 2:26:52 PM UTC-8 Dave S wrote:
>>
> On Thursday, December 31, 2020 at 2:22:36 PM UTC-8 Dave S wrote:
>>>
>> I'm moving my home development to  
>>>>  2.21.1-stable+timestamp.2020.11.28.04.10.44 after years of 2.14.6 and 
>>>> only 
>>>> dipping my toes into later versions.
>>>>
>>>> The print -> print() and except E,e -> except E(e) was pretty minor, 
>>>> but I'm running into import errors for my app's module code.  I tried the 
>>>> fully qualified technique as in
>>>> <URL:https://groups.google.com/g/web2py/c/LEXaFGq7q_k/m/rXag1_fGEgAJ>
>>>> which looks like
>>>>
>>> import sys,datetime,os,os.path,shutil,subprocess,urllib2,re
>>>> from gluon import *
>>>> import logging
>>>>
>>> from applications.badexample.modules.restuff import restuff
>>>>
>>>
>>>> but I'm still getting
>>>>
>>> [...] 
>>>
>>>> <type 'exceptions.ImportError'>(No module named path)
>>>>
>>>>
>>> Nevermind, I guess ... removing the explicit import seems to be a fix.
>>>
>>> Mind, please!   The "fix" only isolates the problem to the code using 
>> the module.
>>
>
> No suggestions here?
>
> /dps
>  
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/3d8247cb-4ab0-4dcb-b7d8-7628be52bd48n%40googlegroups.com.

Reply via email to