does anyone manage to install the pyjs and pyjd on recent ubuntu LTS?

107 views
Skip to first unread message

lucasman Wang

unread,
Aug 20, 2014, 10:53:22 AM8/20/14
to pyjs-...@googlegroups.com
i am trying to install PYJD on ubuntu 1204 using following the wiki at URL:

i managed to go through following section, which is specific to pyjd enabling. with two changes. 
1, type error: 

diff --git a/Source/JavaScriptCore/wtf/gobject/GTypedefs.h b/Source/JavaScriptCo
index c7f7ac4..e89f47a 100644
--- a/Source/JavaScriptCore/wtf/gobject/GTypedefs.h
+++ b/Source/JavaScriptCore/wtf/gobject/GTypedefs.h
@@ -52,7 +52,7 @@ typedef struct _GFile GFile;
 typedef struct _GHashTable GHashTable;
 typedef struct _GInputStream GInputStream;
 typedef struct _GList GList;
-typedef struct _GMutex GMutex;
+typedef union  _GMutex GMutex;


2. link error: in GNUmake, change line 9778 to LDFLAGS = -pthread -lgthread-2.0 -lrt -lglib-2.0.

after this two changes. everything goes well. but i can NOT get pywebkitgtk

does anyone face this issues ? how to fix it ? 
or is there known working method to install the pyjd? 

appreciating your feedback/helps on this.  


ming

unread,
Sep 27, 2014, 2:02:11 AM9/27/14
to pyjs-...@googlegroups.com
the wiki is outdated. follow the github readme page. the version working should be dated around mar 20 2014, if you are on python 2.7. later versions introduced new dependencies from python 3.x. you need pygobject3 and webkitgtk3 both late versions.



ming

unread,
Sep 27, 2014, 2:52:13 AM9/27/14
to pyjs-...@googlegroups.com
Here is my notes on fedora 20 but on ubuntu it should be very similar: Note that the pyjs.org is extracted into
/home/pyjs/pyjstest/pyjsroot/ 



update webkitgtk3 2.3.1+, pygobject3 3.13.2, gobject-introspection 1.39+
==========================================================================

bash-4.2# yum update pygobject3 webkitgtk3 gobject-introspection
Updating:
 gobject-introspection       i686       1.40.0-2.fc20         wk3u2       228 k
 pygobject3                  i686       3.13.2-1.fc20         wk3u2        14 k
 webkitgtk3                  i686       2.4.3-1.fc20          wk3u2        11 M
Updating for dependencies:
 pygobject3-base             i686       3.13.2-1.fc20         wk3u2       296 k



pyjs.org install
===================

$ pwd
/home/pyjs/pyjstest/virtualenv-1.11.4
$ python virtualenv.py /home/pyjs/pyjstest/pyjsroot/mypy
New python executable in /home/pyjs/pyjstest/pyjsroot/mypy/bin/python
Installing setuptools, pip...done.

$ pwd
/home/pyjs/pyjstest/pyjsroot
$ mypy/bin/pip install /home/pyjs/pyjstest/pyjsroot 



pyjs.org desktop run ====================== set rc -------- $ cat ~/.pyjd/pyjdrc [gui] engine=giwebkit run app using the script -------------------------- $ cat senv #!/bin/bash #senv -- invoke python export DISPLAY=:0.0 export PYTHONPATH=/home/pyjs/pyjstest/pyjsroot:\ /home/pyjs/pyjstest/pyjsroot/mypy/lib/python2.7/site-packages:\ /lib/python2.7/site-packages # python Hello.py #gdb --args ../../mypy/bin/python Hello.py ../../mypy/bin/python Hello.py exit 0
Reply all
Reply to author
Forward
0 new messages