Author Topic: Couatl Python Error  (Read 6041 times)

Cativo

  • Newbie
  • *
  • Posts: 10
Couatl Python Error
« on: September 20, 2011, 01:22:04 pm »
Hello everyone, I recently upgraded to W7 64bit. I installed FSDT KLAS and KORD following the instructions posted, but the terminal buildings are missing. I created a ini file and this is what was reported on couatl.log:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "wx\__init__.py", line 45, in <module>
  File "wx\_core.py", line 5, in <module>
  File "C:\Python26\Lib\new.py", line 6, in <module>
    from warnings import warnpy3k
  File "C:\Python26\Lib\warnings.py", line 394, in <module>
    bytes_warning = sys.flags.bytes_warning
AttributeError: 'module' object has no attribute 'flags'
Application aborted because of a Python error

Any help?

virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 50683
    • VIRTUALI Sagl
Re: Couatl Python Error
« Reply #1 on: September 20, 2011, 02:03:36 pm »
Do you have installed Blender, or any other product that requires Python 2.6 ? Or you might have installed Python yourself ? it seems your other Python install is clashing with Couatl, because it's looking into your actual Python installed folder, when it shouldn't...

Check if you have some environment variables set to point to that folder:

- Open a Command Prompt

- Type SET and press Enter

- Look if you see any variable that sets a path to the C:\Python26 folder

Cativo

  • Newbie
  • *
  • Posts: 10
Re: Couatl Python Error
« Reply #2 on: September 20, 2011, 03:07:00 pm »
I'm at work at the moment, but I know for a fact that I do have Blender and Python installed, the odd thing is that I had them with Windows XP and there was no conflict. what now?

virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 50683
    • VIRTUALI Sagl
Re: Couatl Python Error
« Reply #3 on: September 20, 2011, 04:01:35 pm »
Report back when you have checked the variables thing.

ganesh

  • Administrator
  • Jr. Member
  • *****
  • Posts: 55
  • Developer of Couatl
    • Gamecentric
Re: Couatl Python Error
« Reply #4 on: September 20, 2011, 04:42:39 pm »
I did some tests and I can confirm that there may be a conflict with another version of Python installed on the machine, if the installer of such version sets the PYTHONPATH environment variable system-wide. That didn't happen with the versions of Python I previously tested with, but they may have changed policy in more recent versions. Please post the variable listing as suggested by Umberto, to be sure. In the the meantime, I am already preparing an updated version of Couatl that fixes this issue.
Ganesh
Developer of Couatl

Cativo

  • Newbie
  • *
  • Posts: 10
Re: Couatl Python Error
« Reply #5 on: September 20, 2011, 11:47:35 pm »
Do you have installed Blender, or any other product that requires Python 2.6 ? Or you might have installed Python yourself ? it seems your other Python install is clashing with Couatl, because it's looking into your actual Python installed folder, when it shouldn't...

Check if you have some environment variables set to point to that folder:

- Open a Command Prompt

- Type SET and press Enter

- Look if you see any variable that sets a path to the C:\Python26 folder
this is the python entry I get:
PYTHONPATH=%PYTHONPATH%;C:\Python26\Lib
Let me know if you need more info.

virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 50683
    • VIRTUALI Sagl
Re: Couatl Python Error
« Reply #6 on: September 21, 2011, 10:01:25 am »
If you download and install the Stand-Alone Addon Manager for FSX now, it includes the fixed version for Couatl, which shouldn't be affected by other Python installation on your system.

Cativo

  • Newbie
  • *
  • Posts: 10
Re: Couatl Python Error
« Reply #7 on: September 22, 2011, 12:55:09 am »
Thank you very much! this works now!