Install SchoolTool on Debian

Asked by Bruno Pinto

Hey,

I need to install ScholTool on a debian machine.
It doesn't work via apt-get because of the dependencies.
Using add-apt-repository also doesn't work because this comand does not exist in debian
Is there any way around it?

Regards

Question information

Language:
English Edit question
Status:
Solved
For:
SchoolTool Edit question
Assignee:
No assignee Edit question
Solved by:
Gediminas Paulauskas
Solved:
Last query:
Last reply:
Revision history for this message
Bruno Pinto (brunoabpinto) said :
#1

Hey,
I managed to install it on Debian by following the readme file that comes with the package and it's working.
The problem is, it doesn't contain the Intervention, Schoolbook, Journal and CanDo.

Can someone please help?
I need to have this done by friday

Thanks in advance

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

Hello,

Although it should be possible to install SchoolTool on Debian from debs, because they are available for Ubuntu, that is not easy. Theoretically, you can download all schooltool debs and some 80 zope.* packages that are missing from Debian and install them manually, there is no supported repository that contains everything in one place.

But you can run from source, it should work the same way as on our development Ubuntu machines.

To get schooltool plus all the recommended plugins, look at the umbrella project https://launchpad.net/schooltool.release
It will download the other projects and they will be automatically available.

If you have some data in your instance already, copy the 'instance' directory to the new location, and run

  $ bin/make-schooltool-instance instance

before

  $ make run

If you haven't set up cache directories in ~/.buildout/, also copy the 'eggs' directory before running 'make'.

Revision history for this message
Bruno Pinto (brunoabpinto) said :
#3

Thank you for your answer.

The installation is no longer the problem since i have it already installed
and running.
The problem now, as I said, is the missing plugins in the
schooltool-2.4.2.tar.gz.

When I log in as teacher I only have the tabs 'home' and 'calendar'.
I already created and assign years, terms, courses, sections, students and
teachers but I do not have the Intervention, Journal, Gradebook and CanDo
since those folders don't even exist in the directory
schooltool-2.4.2/src/schooltool.

I already tried place the ubuntu ones on this folder but nothing happened.

On Wed, Jul 31, 2013 at 11:16 AM, Gediminas Paulauskas <
<email address hidden>> wrote:

> Your question #233240 on SchoolTool changed:
> https://answers.launchpad.net/schooltool/+question/233240
>
> Status: Open => Answered
>
> Gediminas Paulauskas proposed the following answer:
> Hello,
>
> Although it should be possible to install SchoolTool on Debian from
> debs, because they are available for Ubuntu, that is not easy.
> Theoretically, you can download all schooltool debs and some 80 zope.*
> packages that are missing from Debian and install them manually, there
> is no supported repository that contains everything in one place.
>
> But you can run from source, it should work the same way as on our
> development Ubuntu machines.
>
> To get schooltool plus all the recommended plugins, look at the umbrella
> project https://launchpad.net/schooltool.release
> It will download the other projects and they will be automatically
> available.
>
> If you have some data in your instance already, copy the 'instance'
> directory to the new location, and run
>
> $ bin/make-schooltool-instance instance
>
> before
>
> $ make run
>
> If you haven't set up cache directories in ~/.buildout/, also copy the
> 'eggs' directory before running 'make'.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/schooltool/+question/233240/+confirm?answer_id=1
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/schooltool/+question/233240
>
> You received this question notification because you asked the question.
>

--
Cumprimentos,
Bruno Pinto

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

OK, I described alternative way to install, that is not documented in the http://book.schooltool.org, I should have done it long ago.

But there is an easy way to add plugins to your existing installation, described in http://book.schooltool.org/dev_sandbox.html

Edit buildout.cfg, and add the names of plugins to [package] section.

[package]
eggs =
        schooltool
        schooltool.gradebook
        schooltool.lyceum.journal
        schooltool.intervention
        schooltool.cando

Then run `make`.

You can skip some plugins if you don't need them.

Or you can delete them later. However, I think there might be a problem disabling the cando plugin, so it is a good idea to backup your instance/var directory before enabling cando. Others can be easily added or removed.

Revision history for this message
Bruno Pinto (brunoabpinto) said :
#5

It keeps giving me an error because of zope.
Maybe I've put the gradebook in the wrong directory.
Where should i put it?

Don't you guys have a schooltool package already with the plugins so when i
run 'sudo make run' it automatically works?

On Wed, Jul 31, 2013 at 12:01 PM, Gediminas Paulauskas <
<email address hidden>> wrote:

> Your question #233240 on SchoolTool changed:
> https://answers.launchpad.net/schooltool/+question/233240
>
> Status: Open => Answered
>
> Gediminas Paulauskas proposed the following answer:
> OK, I described alternative way to install, that is not documented in
> the http://book.schooltool.org, I should have done it long ago.
>
> But there is an easy way to add plugins to your existing installation,
> described in http://book.schooltool.org/dev_sandbox.html
>
> Edit buildout.cfg, and add the names of plugins to [package] section.
>
> [package]
> eggs =
> schooltool
> schooltool.gradebook
> schooltool.lyceum.journal
> schooltool.intervention
> schooltool.cando
>
> Then run `make`.
>
> You can skip some plugins if you don't need them.
>
> Or you can delete them later. However, I think there might be a problem
> disabling the cando plugin, so it is a good idea to backup your
> instance/var directory before enabling cando. Others can be easily added
> or removed.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/schooltool/+question/233240/+confirm?answer_id=3
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/schooltool/+question/233240
>
> You received this question notification because you asked the question.
>

--
Cumprimentos,
Bruno Pinto

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

I need to see an error to tell what is wrong.

Plugins are separate because they are... well, plugins. They are downloaded and enabled the same way as the other zope dependencies if you add them like described in comment #4

Revision history for this message
Bruno Pinto (brunoabpinto) said :
#7

Ok so this is what i have so far:

- Downloaded and extracted schooltool-2.4.2.tar.gz package
- Downloaded and extracted gradebook-2.1.1.tar.gz plugin
- Placed the content of the gradebook directory to the schooltool directory
and merged the directories
- Edited buildout.cfg:

- $ sudo make run

For like 3 minutes things are going well, the program is compiling but then
I get the following error:

Installing test.
The version, 2.5.1, is not consistent with the requirement, 'z3c.form>=2.6'.
While:
  Installing test.
Error: Bad version 2.5.1
make: *** [.installed.cfg] Error 1

On Wed, Jul 31, 2013 at 9:16 AM, Gediminas Paulauskas <
<email address hidden>> wrote:

> Your question #233240 on SchoolTool changed:
> https://answers.launchpad.net/schooltool/+question/233240
>
> Gediminas Paulauskas posted a new comment:
> I need to see an error to tell what is wrong.
>
> Plugins are separate because they are... well, plugins. They are
> downloaded and enabled the same way as the other zope dependencies if
> you add them like described in comment #4
>
> --
> You received this question notification because you asked the question.
>

--
Cumprimentos,
Bruno Pinto

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

You don't need to download gradebook.tar.gz or extract it.

Adding 'schooltool.gradebook' line to the 'eggs' variable in buildout.cfg is all you need, it will be downloaded when you run 'make'.

The conflicting versions error happened because you mismatched the versions of gradebook and schooltool. Not sure what you mean by 'merged the directories' but it looks like you have taken base.cfg from the older gradebook.

Try again from the start.

- rename your sandbox to backup
- download schooltool-2.4.2.tar.gz
- tar xzf schooltool-2.4.2.tar.gz
- cd schooltool-2.4.2
- copy the instance directory from backup
- edit buildout.cfg and change the package section in it to read
[package]
eggs = schooltool schooltool.gradebook
- make
- make run

Revision history for this message
Bruno Pinto (brunoabpinto) said :
#9

It's working,
Thank you so much you guys are awesome.
Can't believe how easy that was. My bad.
Just one more thing, where can I edit the .po files for the plugins?

Revision history for this message
Bruno Pinto (brunoabpinto) said :
#10

By the way, if you guys are interested i developped a portuguese language
pack because the one you have is very incomplete and poorly translated.
This is Portuguese from Portugal so it should go on the pt directory.

Translations:
schooltool
gradebook
intervention
gradebook

I didn't translate CanDo because I don't need it, but if you guys want I'll
translate it as well.
It's based on the previously existent portuguese .po so the credit is not
all mine.

Revision history for this message
Bruno Pinto (brunoabpinto) said :
#11

Oops, I mean't

schooltool
gradebook
intervention
journal

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

Translations are inside the "eggs" (packages) downloaded. Where they are, depends on your setup – whether you used buildout cache or not. Here I tried to make one command that finds all the locales directories:

$ for plugin in $(grep 'eggs/schooltool' bin/start-schooltool-instance | cut -d "'" -f 2) ; do find $plugin -type d -name locales ; done
/home/menesis/.buildout/eggs/schooltool-2.4.3dev_r3593-py2.7.egg/schooltool/locales
/home/menesis/.buildout/eggs/schooltool.gradebook-2.4.3dev_r569-py2.7.egg/schooltool/gradebook/locales
/home/menesis/.buildout/eggs/schooltool.intervention-2.4.1dev_r387-py2.7.egg/schooltool/intervention/locales
/home/menesis/.buildout/eggs/schooltool.lyceum.journal-2.4.2dev_r378-py2.7.egg/schooltool/lyceum/journal/locales
/home/menesis/.buildout/eggs/schooltool.cando-0.7.2dev_r221-py2.7.egg/schooltool/cando/locales
/home/menesis/.buildout/eggs/schooltool.virginia-0.7.2dev_r139-py2.7.egg/schooltool/virginia/locales

And yes, we are very much interested in any translations. You can upload them yourself and get the credit for strings you translated. Go to https://translations.launchpad.net/schooltool-project there are links to all translatable projects. In each of them, click Portuguese. You can translate directly through the web. But you already have the updated .po files, so click 'Upload translation' at the top and choose the appropriate .po file to upload. I will integrate your translations into the next release.

Revision history for this message
Bruno Pinto (brunoabpinto) said :
#13

Thanks Gediminas Paulauskas, that solved my question.

Revision history for this message
Bruno Pinto (brunoabpinto) said :
#14

Hey,
I've already uploaded schooltool.po, schooltool.gradebook.po and
schooltool.lyceum.journal.po.
I can't upload schooltool.intervention.po because there is no portuguese
language to this plugin.
Anyway, i'm attaching the .po to this mail so you can upload it.

Anything you need feel free to contact me.
Thanks again for your help.

Best regards,
Bruno Pinto

Revision history for this message
Bruno Pinto (brunoabpinto) said :
#15

Never mind. Done!