bugBKChem - Bugs: bug #24747, Syntax Error in 0.12.4

 
 

bug #24747: Syntax Error in 0.12.4

Submitted by:  None
Submitted on:  Tue 04 Nov 2008 05:08:11 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Works For Me
Privacy: PublicAssigned to: Beda Kosata <beda>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 20 May 2009 11:33:28 AM UTC, comment #2:

Since there is no additional follow-up on this bug, I am closing it because I cannot reproduce it.

Beda Kosata <beda>
Project AdministratorIn charge of this item.
Wed 05 Nov 2008 05:49:48 AM UTC, comment #1:

Hi,

this is very strange. Were you using python2.3, I would advise you to upgrade to at least 2.4, but it seems that you are using python 2.4 and there should be no problem with this (I certainly cannot reproduce it).
However because this code is not used in BKChem anyway now, a quick solution could be to remove the "@classmethod" line.
Please let me know if it works for you.
I would be also interested in result from freshly unpacking BKChem from the source and trying to run it without installation - that is by going to the bkchem-0.12.4/bkchem directory and running "python bkchem.py" or better yet "python2.4 bkchem.py".

Cheers
Beda

Beda Kosata <beda>
Project AdministratorIn charge of this item.
Tue 04 Nov 2008 05:08:11 PM UTC, original submission:

If was more skilled at Python I could probably fix it, but I'm a bit lost in the code.

# bkchem
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/bkchem/bkchem.py", line 106, in ?
from main import BKchem
File "/usr/lib/python2.4/site-packages/bkchem/main.py", line 24, in ?
from paper import chem_paper
File "/usr/lib/python2.4/site-packages/bkchem/paper.py", line 29, in ?
from molecule import molecule
File "/usr/lib/python2.4/site-packages/bkchem/molecule.py", line 34, in ?
from oasa import periodic_table as PT
File "/usr/lib/python2.4/site-packages/bkchem/oasa/__init__.py", line 21, in ?
from oasa import *
File "/usr/lib/python2.4/site-packages/bkchem/oasa/oasa/__init__.py", line 42, in ?
import subsearch
File "/usr/lib/python2.4/site-packages/bkchem/oasa/oasa/subsearch.py", line 226
@classmethod
^
SyntaxError: invalid syntax

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by beda (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 20 May 2009 11:33:28 AM UTCbedaStatusNeed Info=>Works For Me
      Open/ClosedOpen=>Closed
    Wed 05 Nov 2008 05:49:48 AM UTCbedaStatusNone=>Need Info
      Assigned toNone=>beda

    Back to the top


    Powered by Savane 3.1-cleanup1