[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bkchem-user] Error message

From: Beda Kosata
Subject: Re: [Bkchem-user] Error message
Date: Sun, 18 Nov 2007 13:08:38 +0100
User-agent: Thunderbird (X11/20070728)

Hi Francois,
this is a known problem. It is fixed in the 0.12.0 preview releases which are in many ways better than 0.11.6, so there should be no reason not to upgrade.

        Best regards


p.s.- this problem is caused by a minor difference between Python 2.4 and 2.5. If you are for any reason unable to upgrade BKChem, you could instead downgrade Python. It is also possible to fix this by hand, by I would use this as the last resort.

FyD wrote:

I get the error message below after having installed bkchem under fedora 7.
How to solve it ?

Thanks, regards, Francois

address@hidden bkchem]$ pwd

address@hidden bkchem]$ python bkchem.py
Traceback (most recent call last):
  File "bkchem.py", line 107, in <module>
    from main import BKchem
  File "/home/fyd/bkchem-0.11.6/bkchem/main.py", line 24, in <module>
    from paper import chem_paper
  File "/home/fyd/bkchem-0.11.6/bkchem/paper.py", line 28, in <module>
    from molecule import molecule
  File "/home/fyd/bkchem-0.11.6/bkchem/molecule.py", line 34, in <module>
    from oasa import periodic_table as PT
File "/home/fyd/bkchem-0.11.6/bkchem/oasa/__init__.py", line 21, in <module>
    from oasa import *
File "/home/fyd/bkchem-0.11.6/bkchem/oasa/oasa/__init__.py", line 28, in <module>
    import smiles
File "/home/fyd/bkchem-0.11.6/bkchem/oasa/oasa/smiles.py", line 402, in <module>
    import coords_generator
File "/home/fyd/bkchem-0.11.6/bkchem/oasa/oasa/coords_generator.py", line 22
    from __future__ import division
SyntaxError: from __future__ imports must occur at the beginning of the file

Bkchem-user mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]