On Aug 11, 2012 8:35 AM, "Rene Maurer" <[email protected]> wrote:
>
> On 08/10/2012 at 05:08 C Anthony Risinger <[email protected]> wrote:
> >
> > so test it out, and report back bugs, because this will be replacing
> > both hulahop and pywebkitgtk ASAP.
> >
>
> I have just started some testing with the "feature/giwebkit" branch and
> the "libwebkit3 ARCH package" you provide.
>
> A very basic test application (a button with greet message) works fine
> when i use
>
> page = "Desktop.html"
> host = "public"
> pyjd.setup("%s/%s" % (host, page))
>
> When i use (local webserver is running of course)
>
> page = "Desktop.html"
> host = "http://localhost:50000";
> pyjd.setup("%s/%s" % (host, page))
>
> the test application is still working bit i have the following
> backtrace:
>
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/pyjd/giwebkit.py", line 347,
> in _icon_loaded_cb
>     fp = urlopen(uri)
>   File "/usr/lib/python2.7/urllib.py", line 86, in urlopen
>     return opener.open(url)
>   File "/usr/lib/python2.7/urllib.py", line 207, in open
>     return getattr(self, name)(url)
>   File "/usr/lib/python2.7/urllib.py", line 291, in open_http
>     import httplib
>   File "/usr/lib/python2.7/site-packages/pyjd/imputil.py", line 109, in
> _import_hook
>     top_module = self._import_top_module(parts[0])
>   File "/usr/lib/python2.7/site-packages/pyjd/imputil.py", line 217, in
> _import_top_module
>     module = item.import_top(name)
>   File "/usr/lib/python2.7/site-packages/pyjd/imputil.py", line 244, in
> import_top
>     return self._import_one(None, name, name)
>   File "/usr/lib/python2.7/site-packages/pyjd/imputil.py", line 295, in
> _import_one
>     result = self.get_code(parent, modname, fqname)
>   File "/usr/lib/python2.7/site-packages/pyjd/importers.py", line 300,
> in get_code
>     result = _fs_import(dir, modname, fqname)
>   File "/usr/lib/python2.7/site-packages/pyjd/importers.py", line 122,
> in _fs_import
>     f = open(filenamec, 'rb')
> IOError: [Errno 13] Permission denied: '/usr/lib/python2.7/httplib.pyc'

Weird ... I had a similar issue ... I think it was done kind of Arch bug.
Check the permissions on your py/pyc files and I think you'll find some are
owned by the wrong user/group and or have wrong permissions, such as 600
read-only to root.

Manually chmod/chown or reinstall python to fix.  I did the latter.

> When i try to import (not start only import) my real world application
> (which uses json rpc, timer etc), the backtrace ends with:
>
> File "/usr/lib/python2.7/site-packages/pyjd/imputil.py", line 329, in
>  _process_result exec code in module.__dict__
>   File
>  "/home/rene/Local/python/pyjs/pyjs/library/pyjamas/ui/Calendar.py",
>  line 397, in <module> class DateField(Composite): File
>  "/home/rene/Local/python/pyjs/pyjs/library/pyjamas/ui/Calendar.py",
>  line 399, in DateField img_base = pygwt.getImageBaseURL(True) File
>  "/home/rene/Local/python/pyjs/pyjs/library/pygwt.py", line 44, in
>  getImageBaseURL return getModuleBaseURL() + "images/" File
>  "/home/rene/Local/python/pyjs/pyjs/library/pygwt.py", line 28, in
>  getModuleBaseURL s = get_main_frame().getUri() AttributeError:
>  'NoneType' object has no attribute 'getUri'

Did you import pyjd, very _first_ thing?

I'll check this out in AM right away.  I'll have JSONRPC working tomorrow I
think but probably not timers ... I have 2-3 implementations in mind but
haven't had time to confirm one yet.

Thanks Rene!

-- 

C Anthony

-- 



Reply via email to