Rapture in Everything

Posts tagged "python"

WinPython doesn't start?

I ran across PyBrain, a “modular machine learning library for Python.” It needs the whole Scientific Python stack and since setting it up manually seemed like a pain, I decided to try one of the pre-packaged distributions. I tried more of them with little success. WinPython looked the best, but didn’t work on the two computers I tried it on, regardless of version or bitness. When I tried running the WinPython Control Panel, Spyder or IPython, the program either just didn’t start (the first one) or briefly flashed a console window without anything useful in it and died...

Scripted text processing

When working on the last project at work, my tasks were often defined poorly. I had to make web services that would accept complicated data structures, but I only had one example file to go by. The file got updated from time to time, but never came as a valid XML – some can hardly be convinced you can’t just write strings instead of numbers or put a “-” anywhere in the file and expect it to be valid. So I had to process every file by hand. And by “hand”, I of course mean regexes or Python, just as...