main.py gives a syntax error

Bug #368286 reported by mehmet nur olcay
4
Affects Status Importance Assigned to Milestone
openMolar
Fix Released
Undecided
Neil Wallace

Bug Description

I did all mysql stuff but when tried to run main.py, getting this:

`--> ./main.py
  File "./main.py", line 45
    if s != ''0144712dd81be0c3d9724f5e56ce6685'':##end password check##
                    ^
SyntaxError: invalid syntax

Python 2.5.4 is here.

Revision history for this message
Neil Wallace (rowinggolfer) wrote :

ooops...
could you change the '' to " please.

BTW - I have made a *.deb package, and hope to have a stable demo verison out tomorrow.

regards

Neil.

Revision history for this message
mehmet nur olcay (mnurolcay) wrote :

Updated to latest branch, i think main.py is openmolar now. and here's the result:

`--> ./openmolar
starting openMolar 0.0.6 - 22nd April 2009
Traceback (most recent call last):
  File "./openmolar", line 77, in <module>
    main(app)
  File "./openmolar", line 26, in main
    from openmolar.qt4gui import Ui_startscreen
ImportError: No module named openmolar.qt4gui

Revision history for this message
mehmet nur olcay (mnurolcay) wrote :

This may be another report but as u mentioned about the deb package, i realised that:

when trying to install with "python setup.py install" it fails here:

error: can't copy 'resources/icons': doesn't exist or not a regular file

Just checked openmolar/dist/openmolar_0.0.6-1_all.deb and saw that resources/icons in the deb file is a zero size file what means it has been failed there, too.

Revision history for this message
Neil Wallace (rowinggolfer) wrote :

Hi mehmet,

please bear in mind that you are trying to run software from a development branch, the problems you are having are to be expected.
resources/icons is not required, so fear not, and setup.py is for packaging purposes.

you have much bigger obstacles to cross before getting this running.... mainly the fact that the demodatabase for version 0.0.5 is of a different schema to that required for 0.0.6

this situation will improve over the coming week, so please be patient.

I would be interested to know of your interest in openmolar.. are you a dental practitioner?

regards

Neil.

Revision history for this message
mehmet nur olcay (mnurolcay) wrote :

I know it is a development branch and about setup.py, however thanks for the explanation :)

The first, i'm a Dentist and really there is lack of such programs ( especially Open Source ones ) in market. This one hopefully will be such a cure for needs..

The second, im trying to package openmolar for Pardus Linux(just for testing purpose till it gets stable), so im the one of the Package Maintainer for Pardus. That's why im trying to use setup.py.

Regards..

Revision history for this message
Neil Wallace (rowinggolfer) wrote :

Excellent.

setup.py was sent to me as a patch by Bryan Harris, and I am extremely grateful to him for this.

hopefully between the three of us we can push this forwards.

kind regards

Neil (also a dentist, if you hadn't gathered)

Revision history for this message
Bryan (brywilharris) wrote :

That error message comes up when you can't talk to the sql server. I haven't looked at it enough to figure out all the details. I'll look at it. I can't run an sql server here at work so It'll have to wait until tonight.

This is really two or three bugs in one. I'll do some more work on the setup script.

Revision history for this message
Bryan (brywilharris) wrote :

This is really 2 or 3 bugs in one. I will work on the setup script some more tonight.

Revision history for this message
Bryan (brywilharris) wrote :

BTW, distutils will make a deb, but I had intended to use debuild to make ubuntu debs.

Revision history for this message
Neil Wallace (rowinggolfer) wrote :

Bryan,

you are a scholar and a gent. the dental community owes you a great deal of gratitude already.

Revision history for this message
Bryan (brywilharris) wrote :

OK. This is a patch against the current bzr which should fix both bugs.

Changed in openmolar:
assignee: nobody → brywilharris
status: New → In Progress
Revision history for this message
mehmet nur olcay (mnurolcay) wrote :

The patch is working, Thanks again Bryan.

I think the bug can be assigned as fixed after patch has been committed.

Revision history for this message
Neil Wallace (rowinggolfer) wrote :

Bug closed.

Changed in openmolar:
assignee: Bryan (brywilharris) → Neil Wallace (rowinggolfer)
status: In Progress → Fix Released
Bryan (brywilharris)
Changed in openmolar:
status: Fix Released → Fix Committed
Changed in openmolar:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.