py2exe redistributable

In my works, I have been dealing with a lot of last minutes issue and request, it means that work will pop up, could be some calls, people approach me, email with urgent icon and marked as important because “the content inside telling you need to do something about it ASAP blah blah”, this just appear like hour before I wrapt my phone, bag, and lock my system.

Last week was different, none of that mentioned,
I come with self defence first
We had different mood, it was a holiday mood between the 25th and end of the year, two long weekend in row, time to clear leave, shutdown maybe, you can name it.

I was working on python application, and thou still far from complete, I need to get feedback on my application, as it right on track, match with the needs –it should be!-, the user interaction, and is this application should be dumb easy, so that I can make revision or whatever needed to make it back on tract in the way it’s intended to be.

I had the idea to make an executable with py2exe and installable packace so it’s easy to distribute, I will just sent the installer and anyone interested will.. obviously, double click, next, next, … they know the drill.

The mood, brought me back to procrastination habbit, or in a way it was a distraction I had in hand,
1. Somehow, i notice small thing -it always started with small thing- to improve and implement, and I though I can do that in, say 2 hours.
2. I’ve been doing the same packaging (executable and installer) in another small pyhton apps, it will be just 30 minutes job.
From here I go with the first point, and I did it, it was according to plan, I was taking my time actually.
Move to the next one, make executable, and … surprise, it just simply fail
error: MSVCP90.dll: No such file or directory
ck, typical

I fumbled on it for sometime and still couldn’t figure it out. Why! I’ve been doing it with other apps, and it was fine, was it because the fine working executable using Tk inter instead of my new WxPython gui library?
Too many disturbed questions in my head, anxious, and I know it will give me a hasty solution in return.
The clever solution, give up to figure it your own and just google it, and it’s end up in py2exe tutorial,
Providing the Microsoft Visual C runtime DLL
my my my …, It become I am the guy who didn’t Read The Fine Manual, I didn’t expect this way.
Hey, it didn’t give me problem with my other apps.

And I did according to the tutorial, prove it working, and celebrate a little about it. The next wiser action, pack my things and going home🙂, clear my mind and come with strategy, to find out more about the why, how and implement it carefully, neatly in the code.

I’m glad I did it right on the next day as it planned, just no unwanted surprise.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s