You are not logged in.

#1 2010-11-01 20:54:50

Ming
Member
Registered: 2010-11-01
Posts: 5

eXe (eXeLearning)

I found this nice application, tried to run or install it several times, but absolutely without success. Can anybody do PKGBUILD? Oh, and there is the link: http://exelearning.org

Last edited by Ming (2010-11-06 22:57:33)

Offline

#2 2010-11-05 21:36:13

Ming
Member
Registered: 2010-11-01
Posts: 5

Re: eXe (eXeLearning)

I'll write there some steps, that I've done. Maybe it'll help someone.
At first I downloaded source files from program's site and tried to run it with instructions. But it have done nothing and I got that message.

  File "./exe", line 32
    except ImportError, error:
                      ^
SyntaxError: invalid syntax

So let's look at that file.

$ cat run-exe.sh 

#!/bin/sh
# eXe
# Copyright 2004-2005, University of Auckland
# Doesn't do anything but run exe now

python $(dirname $0)/exe

I decided that problem is in python3 in Arch, so I changed it to python2. I got more messages.

Traceback (most recent call last):
  File "./exe", line 38, in <module>
    from exe.application import Application
  File "/home/ming/temp/exe/exe/application.py", line 37, in <module>
    from exe.webui.webserver     import WebServer
  File "/home/ming/temp/exe/exe/webui/webserver.py", line 38, in <module>
    from nevow                         import appserver
  File "/home/ming/temp/exe/nevow/__init__.py", line 153, in <module>
    load(basic_adapters)
  File "/home/ming/temp/exe/nevow/__init__.py", line 41, in load
    compy.registerAdapter(a, clean(o), i)
  File "/home/ming/temp/exe/nevow/compyCompat.py", line 49, in registerAdapter
    adapterFactory = namedAny(adapterFactory)
  File "/home/ming/temp/exe/nevow/compyCompat.py", line 34, in namedAny
    return _namedAny(name)
  File "/home/ming/temp/exe/twisted/python/reflect.py", line 352, in namedAny
    topLevelPackage = __import__(trialname)
  File "/home/ming/temp/exe/formless/__init__.py", line 10, in <module>
    from formless.processors import process
  File "/home/ming/temp/exe/formless/processors.py", line 13, in <module>
    from nevow.context import WovenContext
  File "/home/ming/temp/exe/nevow/context.py", line 37
    def with(self, tag):
           ^
SyntaxError: invalid syntax

Also I found ebuild for Gentoo in sources.

# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit distutils

DESCRIPTION="off-line authoring environment to assist teachers and academics in the publishing of web content"
HOMEPAGE="http://exe.cfdl.auckland.ac.nz"
SRC_URI="ftp://ftp.eduforge.org/pub/${PN}/${PN}-${PV}-source.tgz"
LICENSE="GPL-2"
RESTRICT="nomirror" # This is only because it's not in the gentoo tree yet
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""
S="${WORKDIR}"
DEPEND=">=dev-python/pygtk-2.6.1
        >=dev-python/gnome-python-extras-2.10
        >=www-client/mozilla-1.7.8
        >=dev-python/nevow-0.4.1
        >=dev-python/twisted-2.0.1
        >=dev-python/twisted-web-0.5.0
        >=net-zope/zopeinterface-3.0.1
        >=dev-lang/python-2.4.1"

src_unpack() {
    unpack ${PN}-${PV}-source.tgz
}

src_install() {
    distutils_src_install
}

pygtk, gnome-python-extras, twisted, zope-interface I already had, so I built nevow from AUR, twisted-web hadn't found, but I built twisted-web2.
But messages are still the same and I really need help with running or building package for that program.
Sorry for my English.

Offline

#3 2010-11-06 16:46:40

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: eXe (eXeLearning)

Unfortunately I don't have the time to help you out much beyond this idea nor experience with python, but a quick look over appears to me to suggest your second problem is *still* caused by python version differences. You said you already tried python2, but the [extra] package "python2" uses python version 2.7 if I remember right. In AUR, there is a package for python 2.4, which that gentoo ebuild references ( ">=dev-lang/python-2.4.1" ). Despite the ">=", perhaps you could try out "python24" from AUR and edit the script accordingly?

If that fails, I'm afraid I don't know / am wrong and can't help you.

Last edited by FrozenFox (2010-11-06 16:50:34)

Offline

#4 2010-11-06 17:39:49

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: eXe (eXeLearning)


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#5 2010-11-06 22:56:43

Ming
Member
Registered: 2010-11-01
Posts: 5

Re: eXe (eXeLearning)

Thanks for your answers. FrozenFox, you're right, version of python2 from [extra] is 2.7.3. I have built «python24» from AUR today, but it needs «db4.5» that conflicts with «db». I ignored it for the first time, built everything that eXe needs, but at that time it shows me errors with zope-interface. I haven't much time for fighting with that fact, so I gave up, because dependences are too old for my actual system. It's very sad, but true. Anyway, thank you for your help.

Offline

#6 2010-11-07 04:08:53

JimT
Member
Registered: 2010-11-07
Posts: 2

Re: eXe (eXeLearning)

eXe ships with a working version of Twisted/Nevow, so you don't need to track that down.  If you are using a recent version of the source (from the git repository) it should build/work fine with Python 2.4 ~ Python 2.7 (those are the versions I use on Fedora and Ubuntu).  All you should need is Python 2.7 with PIL and Zope-Interface installed.

Offline

#7 2010-11-07 09:27:46

Ming
Member
Registered: 2010-11-01
Posts: 5

Re: eXe (eXeLearning)

JimT, I just cloned version from git, changed «python» to «python2» at run-exe.sh. Also I have packages you said: python2 (version 2.7.3), zope-interface (version 3.5.3-2) and python-imaging (version 1.1.7-2). When I run run-exe.sh it shows me that messages (they are different from messages of my first run).

  File "/home/ming/temp/exe/exe/exe", line 49, in <module>
    main()
  File "/home/ming/temp/exe/exe/exe", line 46, in main
    application.main()
  File "/home/ming/temp/exe/exe/application.py", line 97, in main
    self.loadConfiguration()
  File "/home/ming/temp/exe/exe/application.py", line 196, in loadConfiguration
    self.config = LinuxConfig()
  File "/home/ming/temp/exe/exe/engine/config.py", line 115, in __init__
    self.loadStyles()
  File "/home/ming/temp/exe/exe/engine/config.py", line 350, in loadStyles
    for subDir in styleDir.dirs():
  File "/home/ming/temp/exe/exe/engine/path.py", line 356, in dirs
    return [pth for pth in self.listdir(pattern) if pth.isdir()]
  File "/home/ming/temp/exe/exe/engine/path.py", line 340, in listdir
    names = os.listdir(self)
OSError: [Errno 2] No such file or directory: '/usr/share/exe/style'

Offline

#8 2010-11-10 07:51:37

JimT
Member
Registered: 2010-11-07
Posts: 2

Re: eXe (eXeLearning)

Does /usr/share/exe/style exist?  (If you are not "installing" eXe, but trying to run it from your home directory, you could try changing the values for webDir, xulDir, and localeDir in your ~/.exe/exe.conf file to point to wherever you've put eXe.)

Offline

#9 2011-01-18 01:08:40

Ming
Member
Registered: 2010-11-01
Posts: 5

Re: eXe (eXeLearning)

Okay, I solved my problem only today, because I had exams. So, if somebody would like to run eXe from folder and do not install it «raw» with build and install commands (I prefer it because Arch is package distribution and there is no package or PKGBUILD for eXe) you must clone last version from git at first. Then change your config file ~/.exe/exe.conf with these lines

webDir = /cool_dir/exe/exe/webui
xulDir = /cool_dir/exe/exe/xului
localeDir = /cool_dir/exe/exe/locale

Where «cool_dir» — folder where you cloned eXe from git.
Thanks JimT for help.
Also that method works fine right now but soon everything can blow up or something like that (it's joke, of course) because eXe is not developing. Sad but true.

Offline

#10 2014-11-20 08:39:35

systemservers
Member
From: California
Registered: 2007-01-28
Posts: 4
Website

Re: eXe (eXeLearning)

For now try this:
requires current python2.x (2.7) and a suitable default browser.

in X from xterminal console as the intended exe user:
cd ~
mkdir eXelearning
cd eXelearning
links https://forja.cenatic.es/frs/download.p … nux.tar.gz
save file,quit links when done
tar -xvf portable-exelearning-2.0.1.1-linux.tar.gz
make sure javascript allowed (127.0.0.1 whitelisted if using noscript,etc)  and pop-ups allowed

./exelearning.sh
if error executing, nano exelearning.sh
change line 12 to "python2 ./exelib/exe/exe --portable"
I suggest adding a line immediately after the header with: "cd ~/eXelearning"
exit-save

./exelearning.sh
this will bring up exelearning as http://127.0.0.1:51235/newPackage (or similar)
with a pop-up to set preferences
you can select  from Mozilla Firefox, Chromium, Opera, or Default browser.
advanced pref lets you select xhtml or html5, older html versions are no longer an option.

eXelearning 'portablelinux' version is the easiest to work with, I might work up a PKGBUILD eventually for /usr/share/eXelinux, but since mostly this is stuff that the user will eventually modifiy, only the python scripts should stay in usr/share/-- , the rest should be available to and modifiable by the user as in lmms or gimp installs, where pretty much everything except the executables are copied locally.
"portablelinux" version has only scripts, graphics, templates, so if a PKGBUILD is created it will probably be arch 'any'

links from http://exelearning.net/downloads/
https://forja.cenatic.es/frs/download.p … nux.tar.gz

Offline

Board footer

Powered by FluxBB