Anyone else having Python crash problem

For questions about using Classic.

Post » Mon Feb 15, 2010 7:03 pm

Hello all,
Not trying to report a bug here. Just wondering if anyone else gets the Python crash message:
"An error occurred in python, but construct is unable to obtain any error information without StringIO.pyc"

This happens even with the simplest of script, e.g.
Sprite.X = 1

I do have the python26.dll (which came with construct) in the same directory as my .cap file.

It just seems strange that there are tutorials on wiki that show using python, and forum posts where people show examples of using it - So either I'm doing something wrong OR the latest release of Construct has somehow broken the python binding.

If this helps: Latest version of Construct, Windows Vista32, python 2.5.1 installed on my system.
Thanks :)
B
1
G
2
Posts: 5
Reputation: 635

Post » Mon Feb 15, 2010 7:40 pm

[quote="etrek":29yjttli]If this helps: Latest version of Construct, Windows Vista32, python 2.5.1 installed on my system.
Thanks :)[/quote:29yjttli]

I'm pretty sure you need Python 2.6.

Uh... I could be wrong about that :P. In fact I probably am. I'm not very familiar with how Python works.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Feb 15, 2010 8:29 pm

[quote="deadeye":3imqyp3k][quote="etrek":3imqyp3k]If this helps: Latest version of Construct, Windows Vista32, python 2.5.1 installed on my system.
Thanks :)[/quote:3imqyp3k]

I'm pretty sure you need Python 2.6.

Uh... I could be wrong about that :P. In fact I probably am. I'm not very familiar with how Python works.[/quote:3imqyp3k]

That could be a fix. However, that implies that end-users of my game would also need to have
python 2.6 installed their computer to run my game executable. The wiki says that only the python2x.dll needs to be included in the same directory as the exe file for scripted games to work.

So I don't know, I'll try upgrading my python install -see if that helps, but even if it works for me, then I'll be thinking that end-users need python installed as well. i.e. the python.dll is not enough.
B
1
G
2
Posts: 5
Reputation: 635

Post » Mon Feb 15, 2010 8:38 pm

Right, but you need Python installed to actually script with Python. I believe that .exe's built with Python only need the .dll to run, however there might be an issue if you're using other Python libraries.

Again, I'm no expert, we should really get a Python person in here. I'm probably just spouting nonsense.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Feb 15, 2010 8:45 pm

You are probably correct about the exe file - kind of like I need Java SDK to create java programs, but end users only need the JVM to run a java program.

I'll upgrade my python install, and report back here, hopefully it will work and others who have the same problem will find this post helpful.
B
1
G
2
Posts: 5
Reputation: 635

Post » Mon Feb 15, 2010 9:49 pm

What version of Construct are you actually using? Have you tried the lastest unstable build? There were some python fixes in recent unstable releases.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,610

Post » Tue Feb 16, 2010 1:53 am

The errors you are reporting makes me think you are using a version of Construct before .99.82. I got those same error messages with earlier versions. You should try again with .99.82.
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Tue Feb 16, 2010 4:59 am

[quote="scidave":1cl2flb5]The errors you are reporting makes me think you are using a version of Construct before .99.82. I got those same error messages with earlier versions. You should try again with .99.82.[/quote:1cl2flb5]

I have .99.62 installed which is the version that I was offered via Scirra's download page:
[url:1cl2flb5]http://www.scirra.com/construct/download.php[/url:1cl2flb5]

I'll try to find 99.82 on sourceforge. Probably Scirra should change their link to point to their latest version on their download page.
B
1
G
2
Posts: 5
Reputation: 635

Post » Tue Feb 16, 2010 5:10 am

The builds are marked as Stable and Unstable. The latest Stable builds are the ones up on the sites while the latest unstable builds are only on the forums.
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Post » Tue Feb 16, 2010 5:25 am

Well ok, I upgraded to version 99.82, it seems to have fixed the crashing problem. Yay :D

I'm still having another problem with the Python editor though, in that it won't save scripts to my hard drive (folder). e.g. I try to save the script as myScript.py, and when I go back to the editor and try to load the script, it isn't there. this was happening before too, but I didn't mention it earlier because the crashing problem was more important.

Can you guys save your scripts in 99.82?
B
1
G
2
Posts: 5
Reputation: 635

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests