How to upgrade from schooltool 2.1 to 2.4

Asked by Lyla Fujiwara

I've been posting about various bugs/issues, most of which seem to be fixed in the updated versions, but I'm having difficulty figuring out how to upgrade. I've got a very complciated database with a few months worth of grading data, courses, people and sections from all of the teachers here that I don't want to delete, which makes me hesistant to muck around too much with the internals. I see that there is version 2.4 on this website, but I can't get it to upgrade to that version through the normal route.

I've been using "apt-cache show schooltool" to try and figure out my version (as suggested here: http://superuser.com/questions/38507/apt-get-check-version) and I get two entries, which pop up with Version: 1:2.1.1-0ubuntu1 and Version: 1:2.1.0-0ubuntu1. Not sure why there are two versions, but both seem to be 2.1.

I've tried both through the ubuntu software center to and the terminal to update, in both cases re-adding ppa:schooltool-owners/ppa

Not sure what to try next; again, I really don't want anything to happen to the data already in the database.

Thank you so much for this awesome program!
-Lyla

Question information

Language:
English Edit question
Status:
Answered
For:
SchoolTool Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Tom Hoffman (tom-hoffman) said :
#1

Hi Lyla,

You may need to upgrade your version of Ubuntu or switch to one of our package repositories (rather than just Ubuntu Universe).

Here's the somewhat complicated grid of which versions of SchoolTool are available for which versions of Ubuntu:

http://book.schooltool.org/release-notes.html

Which version of Ubuntu are you running?

Revision history for this message
Lyla Fujiwara (lyla-fujiwara) said :
#2

Whoops, okay that would be it. I'm on 12.04 and if I'm reading this correctly I need to update to 12.10. I'll do that and see if it works.

Thank you!

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

Backing up your database (and image files): http://book.schooltool.org/database.html

Revision history for this message
Gediminas Paulauskas (menesis) said :
#4

No, if you want to stay on the LTS release of Ubuntu, but upgrade SchoolTool to 2.4, you can add a dev PPA. See http://book.schooltool.org/install-dev.html

Regarding apt-cache show schooltool, there are two versions in your system: 2.1.0 from universe, and 2.1.1 from the ppa, an update. A better command to see what versions are available and where from, is

  $ apt-cache policy schooltool

Revision history for this message
Lyla Fujiwara (lyla-fujiwara) said :
#5

I knew it was going to take a while so I started the upgrade before seeing menesis comment. So I am now running Ubuntu 12.10. Using apt-get update/dist-upgrade, I was able to get 2.3. I then saw the feature I was interested in (the Javascript widget to enter in comments) was in 2.4.

I added the dev ppa and did the same. It now claims to be 2.4, but says the following when I try to upgrade via apt-get:

sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  python-schooltool python-schooltool.cando python-schooltool.gradebook
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

I tried sudo apt-get install schooltool and sudo apt-get upgrade as well.

Then based off of what I read here (http://askubuntu.com/questions/601/the-following-packages-have-been-kept-back-why-and-how-do-i-solve-it) I tried manually telling it to install the python-schooltool package:

sudo apt-get install python-schooltool
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-schooltool : Depends: python-pillow but it is not installable
                     Breaks: python-schooltool.cando (< 0.7) but 0.4.4-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.

Is there anything I can do short of uninstalling schooltool? Is uninstalling schooltool safe if I have a backup of the database?

Thank you!

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

I would try 'sudo apt-get install python-pillow' more to see what error message you get than hope that it would fix things. python-pillow is just a virtual package for python-imaging. Gediminas should be able to sort this out Monday.

If you have the Data.fs file and, if you have any ID photos, the 'blobs" directory in /var/lib/schooltool, then you can safely reinstall SchoolTool or the whole OS and just drop the DB back in place.

Sorry about the inconvenience.

Revision history for this message
Lyla Fujiwara (lyla-fujiwara) said :
#7

Upon trying "sudo apt-get install python-pillow"
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-pillow is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source

Herm. Hope that information will help. I'm nervous about reinstalling so I'll hold off until that is the only option. Thank you for the continued assistance, I really apperciate it.

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

This seems like something we should be able to sort out quickly.

Revision history for this message
Gediminas Paulauskas (menesis) said :
#9

I uploaded the same .deb as to raring, but there are differences in dependencies. I will fix this today.

Revision history for this message
Gediminas Paulauskas (menesis) said :
#10

Missing python-pillow error has been fixed for quantal and precise.

Revision history for this message
Gediminas Paulauskas (menesis) said :
#11

Fixed by this upload

schooltool (1:2.4.0-0ubuntu1~quantal3) quantal; urgency=low

  * debian/series: add python-imaging.patch
  * debian/patches/python-imaging.patch: refresh so that it applies.

 -- Gediminas Paulauskas <email address hidden> Mon, 22 Apr 2013 21:23:32 +0300

Can you help with this problem?

Provide an answer of your own, or ask Lyla Fujiwara for more information if necessary.

To post a message you must log in.