Do you have an __init__.py in /applications as well as /uploader?

Anthony

On Friday, March 25, 2016 at 3:13:35 PM UTC-4, Dave S wrote:
>
> On Thursday, March 24, 2016 at 4:55:27 PM UTC-7, Dave S wrote:
>>
>> On Thursday, March 24, 2016 at 1:17:18 PM UTC-7, Dave S wrote:
>>>
>>> On Thursday, March 24, 2016 at 12:41:50 PM UTC-7, Dave S wrote:
>>>>
>>>> On Thursday, March 24, 2016 at 10:36:54 AM UTC-7, Massimo Di Pierro 
>>>> wrote:
>>>>>
>>>>> http://web2py.com/
>>>>>
>>>>> First of all many many thanks to Simone (niphlod), Richard, and 
>>>>> Leonel. Most of the work is theirs.
>>>>>
>>>>>
>>>> My thanks also ... web2py has been a great resource for me.
>>>>
>>>> As with the beta, I'm still getting a problem with one app:
>>>>
>>>> web2py
>>>> Version 2.14.1-stable+timestamp.2016.03.24.17.26.52Python  Python 2.7.3
>>>> : /usr/bin/python (prefix: /usr)
>>>>
>>>>
>>>>
>>>> Traceback (most recent call last):
>>>>   File "/home/develop2/web2py/web2py-2141-beta/gluon/restricted.py", 
>>>> line 227, in restricted
>>>>     exec ccode in environment
>>>>   File "/home/develop2/web2py/web2py-2141-beta/applications/uploader/
>>>> models/scheduler.py", line 5, in <module>
>>>>     from upwatcher import uploadwatch
>>>>   File "/home/develop2/web2py/web2py-2141-beta/gluon/custom_import.py", 
>>>> line 95, in custom_importer
>>>>     return base_importer(pname, globals, locals, fromlist, level)
>>>> ImportError: No module named uploader.modules.upwatcher
>>>>
>>>>
>>>>
>>>> Note   [applications/]uploader/models/scheduler.py is trying to import 
>>>> [applications/]uploader/module/upwatcher.py
>>>>
>>>> This worked in 2.13.4,broke in 2.14.1-beta, still broke in 2.14.1
>>>> I've verified that upwatcher.py is present and contains the expected 
>>>> code.
>>>> [...]
>>>>
>>>  
>
>> I see that the upwatcher.py doesn't have an upwatcher.pyc, nor does the 
>> __init__.py have an __init__.pyc.
>>
>
> After browsing through gluon for a while, I tried
>
> uploadwatch = local_import("uploadwatch")
>
>
>  but I get the same error 
>
> <type 'exceptions.ImportError object'>('No module named 
> uploader.modules.upwatcher')
>
> /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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to