Cando seems to have clobbered SchoolTool installation

Asked by Laurie Savage

I installed a trial of Cando via your subversion instructions at http://book.schooltool.org/htmlhelp/cando.html. During "make" it removed SchoolTool-2008. I am not able to browse at 127.0.0.1:7080. I followed your instructions carefully (and I'm not a total newbie). My host is 127.0.0.1. Should I reinstall SchoolTool or will it clobber CanDo?

I'm using SchoolTool on a daily basis for tracking 175 students so I'm very concerned about this.

Question information

Language:
English Edit question
Status:
Solved
For:
SchoolTool Edit question
Assignee:
No assignee Edit question
Solved by:
Laurie Savage
Solved:
Last query:
Last reply:
Revision history for this message
Laurie Savage (sav-pvgc) said :
#1

Here is the output of the start-cando.py script I found in the checkout directory:

sav@sav-laptop:~/cando$ ./start-cando.py
Traceback (most recent call last):
  File "./start-cando.py", line 39, in ?
    import schooltool.app.main
ImportError: No module named schooltool.app.main

Revision history for this message
Tom Hoffman (tom-hoffman) said :
#2

Oh dear, sorry about that. We just had the CanDo sys admin document how he deploys their production servers, which don't have SchoolTool packages installed. I would say it currently at least takes some trickery to get both running at the same time. I'll update the documentation.

In the meantime, I'd make a copy of the schooltool database:

sudo cp /var/lib/schooltool/schooltool-2008-Data.fs ./

Should put a copy in the current directory. There's no particular reason to do this except to reassure yourself that you've got a copy of your data.

Then to reinstall schooltool, 'apt-get install schooltool-2008'

You might also need to 'apt-get install schooltool' (sorry I'm being a little sketchy, this is your 10:00 pm Friday night service).

We'll definitely get 'apt-get install cando' working later in the year.

Revision history for this message
Laurie Savage (sav-pvgc) said :
#3

Brilliant! I'm sorry to disturb you so late on a Friday night. It's a beautiful sunny autumn, Saturday lunch-time over here!

apt-get install schooltool-2008 installed for me the first time so I'll do that again. My database is safe and secure. I would have liked to have had a play with cando because some of our courses are competency based.

Cheers,

Laurie

Revision history for this message
Tom Hoffman (tom-hoffman) said :
#4

Phew. Well, if you have access to a Linux box not running SchoolTool, it should work. ;-)

And it might be an easy fix. I'll ask on Monday.

Revision history for this message
Laurie Savage (sav-pvgc) said :
#5

Thanks for all the help Tom. I'm finding SchoolTool useful as a personal
record keeper and the support from you and your team has been fantastic.

Laurie

Just recently, on Sat, Mar 28, 2009 at 03:28:09AM -0000 in fact, Tom Hoffman mentioned:
> Your question #65609 on SchoolTool changed:
> https://answers.edge.launchpad.net/schooltool/+question/65609
>
> Tom Hoffman posted a new comment:
> Phew. Well, if you have access to a Linux box not running SchoolTool,
> it should work. ;-)
>
> And it might be an easy fix. I'll ask on Monday.
>
> --
> You received this question notification because you are a direct
> subscriber of the question.

--
Laurie Savage
========================================================
Markbook Manager/Web Services, Pascoe Vale Girls College
Pascoe Vale, Victoria (w)03 9306 2544 (m)04 3373 8533
========================================================
You'll wish that you had done some of the hard things when they were easier
to do.

Revision history for this message
Jason Straw (jasonstraw) said :
#6

Hi!

I would suggest trying the following.

1) in cando-trunk/instance look at schooltool.ini and change the port from 7080 to 7081. (So the PPA installed schooltool instance can run on the normal port)
2) use make run instead of start-cando.py
3) check out http://localhost:7081

If you want it to be visible from off localhost change host from 127.0.0.1 to 0.0.0.0 in cando-trunk/instance/schooltool.ini

We're removing start-cando (it was old code from before we had start-schooltool-instance) now.

Revision history for this message
Laurie Savage (sav-pvgc) said :
#7

Thanks Jason, I'll look at that. I'm a bit worried that the make-ubuntu
script removes schooltool-2008 AND totem + totem-plugins.

Laurie

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Jason Straw
Sent: Tuesday, 31 March 2009 1:31 AM
To: <email address hidden>
Subject: Re: [Question #65609]: Cando seems to have clobberedSchoolTool
installation

Your question #65609 on SchoolTool changed:
https://answers.edge.launchpad.net/schooltool/+question/65609

Jason Straw posted a new comment:
Hi!

I would suggest trying the following.

1) in cando-trunk/instance look at schooltool.ini and change the port from
7080 to 7081. (So the PPA installed schooltool instance can run on the
normal port)
2) use make run instead of start-cando.py
3) check out http://localhost:7081

If you want it to be visible from off localhost change host from
127.0.0.1 to 0.0.0.0 in cando-trunk/instance/schooltool.ini

We're removing start-cando (it was old code from before we had start-
schooltool-instance) now.

--
You received this question notification because you are a direct subscriber
of the question.

Revision history for this message
Jason Straw (jasonstraw) said :
#8

OK, so nothing should be removing schooltool-2008, I'll ask Tom and Ignas why make ubuntu-environment tries to remove schooltool-2008.

but, if schooltool-2008 is installed, I think cando should be good to go without make ubuntu-environment.

Jason

Revision history for this message
Ignas Mikalajūnas (ignas) said :
#9

> but, if schooltool-2008 is installed, I think cando should be good to go
> without make ubuntu-environment.

That explains it, looked at it now...

python-lxml build-dep conflicts with a core python package -
python-pkg-resources

so apt-get build-dep python-lxml in cando Makefile should be replaced with:

apt-get install libxml2-dev libxslt1-dev zlib1g-dev python-pyrex

instead. Schooltool-2008 does not depend on these, and they are
required do build lxml.

Revision history for this message
Jason Straw (jasonstraw) said :
#10

CanDo has been updated to fix the problems above.