Journal error after building from tarball in Manjaro

Asked by xirin

Hi,
   after running for some time sucessfully schooltool in a ubuntu machine, I'm working now in a machine with manjaro linux (based in archlinux). In order to continue with schooltool, I've tried to compile it from the source tarball.
The steps I've followed were:
* I've looked for the dependencies and installed them.
* I've downloaded the source tarball from launchpad. (2.4.2)
* I've included the plugins in buildout.cfg. Since my system has python3 as the default, I've changed python -> python2 and virtualenv -> virtualenv2 in Makefile.

After that, I could build it with 'make' apparently without errors. 'make test ftest' also without errors. After creating the instance, 'make run' started the daemon and all seemed to run fine.
After the first steps in the configuration of the school I've found a problem when I try to create the schedule of the sections. I suppose it is in the journal plugin. The error is the following (manage.html -> Errors):
***************************
Exception traceback
Hora Tue Aug 6 23:18:58 2013
Usuario unauthenticated, sb.person.moises, Iglesias González, Moisés
Request URL http://localhost:7080/comment_cell
Exception Type NotFound
Exception Value Object: <schooltool.app.app.SchoolToolApplication object at 0xac792ac>, name: u'comment_cell'
Traceback

Traceback (most recent call last):

    Module zope.publisher.publish, line 129, in publish
    obj = request.traverse(obj)
    Module zope.publisher.browser, line 540, in traverse
    ob = super(BrowserRequest, self).traverse(obj)
    Module zope.publisher.http, line 457, in traverse
    ob = super(HTTPRequest, self).traverse(obj)
    Module zope.publisher.base, line 260, in traverse
    obj = publication.traverseName(self, obj, entry_name)
    Module zope.app.publication.zopepublication, line 198, in traverseName
    ob2 = adapter.publishTraverse(request, nm)
    Module schooltool.traverser.traverser, line 80, in publishTraverse
    raise NotFound(self.context, name, request)

NotFound: Object: <schooltool.app.app.SchoolToolApplication object at 0xac792ac>, name: u'comment_cell'

Display traceback as text
Solicitude
HTTP_ACCEPT: text/html, */*; q=0.01
CONTENT_TYPE:
HTTP_REFERER: http://localhost:7080/schoolyears/2012-2013/ver%C3%A1n/sections/1/journal
wsgi.multithread: True
SCRIPT_NAME:
wsgi.input:
REQUEST_METHOD: GET
HTTP_HOST: localhost:7080
PATH_INFO: /comment_cell
SERVER_PROTOCOL: HTTP/1.1
QUERY_STRING:
wsgi.version: (1, 0)
HTTP_X_REQUESTED_WITH: XMLHttpRequest
zope3_cs_16655f33: RVhy.0xEaI.uz2mJBdo2qhkWZBU1engp95pN9dLI8xatwzP6EzsGvE
CONTENT_LENGTH: 0
HTTP_USER_AGENT: Mozilla/5.0 (X11; Linux i686; rv:22.0) Gecko/20100101 Firefox/22.0
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: MOODLEID1_=D%2505M%2507%25A8%25CE; zope3_cs_16655f33=RVhy.0xEaI.uz2mJBdo2qhkWZBU1engp95pN9dLI8xatwzP6EzsGvE
SERVER_NAME: 127.0.0.1
REMOTE_ADDR: 127.0.0.1
wsgi.run_once: False
MOODLEID1_: D%2505M%2507%25A8%25CE
wsgi.errors: ', mode 'w' at 0xb73040d0>
wsgi.multiprocess: False
HTTP_ACCEPT_LANGUAGE: gl-gl,gl;q=0.8,en-us;q=0.5,en;q=0.3
wsgi.url_scheme: http
SERVER_PORT: 7080
paste.httpserver.thread_pool:
HTTP_ACCEPT_ENCODING: gzip, deflate
***********************

I can use the other parts of schooltool (for instance, gradebook works fine) but not the daily attendance.

To check if it is a problem with manjaro, I've repeated all the steps in a xubuntu machine (building from the sources) with the same errors so I think it is a different problem. When I install it from the ubuntu package (in xubuntu machine) it runs without issues.

Any idea about the problem.
Thank you in advance.
Regards
Moisés

Question information

Language:
English Edit question
Status:
Solved
For:
SchoolTool Edit question
Assignee:
No assignee Edit question
Solved by:
xirin
Solved:
Last query:
Last reply:
Revision history for this message
Douglas Cerna (replaceafill) said :
#1

It's definitely a bug that the journal is trying to load comments related components, since it doesn't use them. However, this shouldn't prevent you from at least loading the section's journal.

I just tested it and I see the NotFound errors, but I still can save grades and attendance.

Are you able to load the section's journal?

Revision history for this message
xirin (xirin1973-k) said :
#2

I can create the schedule for the section as a manager but, when I click in 'Journal' as a teacher, I receive 'No periods assigned for this section'. If I click in Schedule in that page I can see the timetable with the assigned periods for the section, but they don't appear in 'Journal' or 'Calendar' pages.
Thanks for the quick answer!

Revision history for this message
Justas Sadzevičius (justas.sadzevicius) said :
#3

Journal actually uses section calendar events. Do you have any sections with calendars showing schedule events? Immediately after scheduling, does the manager see events in section's calendar?

Since sections can have schedules that are outside of their first/last dates, can you please check if scheduled first/last dates match section's term first/last? It is unlikely, but possible, that their schedule is in different year than the sections themselves.

Revision history for this message
xirin (xirin1973-k) said :
#4

Hi,
   after many headaches, I've recreated the database from the beginning and I could find the problem. During the configuration I'd put the week days as "not in session". I didn't think the problem could be in a so foolish thing, I'm very sorry, it was only my fault.

At least I think now the program is working fine and I'm happy to know I can use it also in manjaro.

Sorry again and thank you for your answers.
Regards
Moisés

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

Thanks for your feedback xirin and sorry for the inconvenience. The days in session view definitely could be more clear, and I hope we can get back to it and improve it soon.