Since it took quite a bit of time for me to figure out the solution to this problem, I decided to write a quick reminder here.
I was working on a web application written in Bottle.py and everything was going smoothly until I decided to debug a function using the PyDev debugger in Eclipse.
Long story short there was no way to make the debugger work even if the same debugger was working perfectly fine in the unit tests.
After several tests I was able to understand that the PyDev debugger is incompatible with the option “reloader=True” of the bottle app.
So you can run your app in this way:
and it is wonderful because the app will reload by itself every time you change a python file,
but if you want to run the code in the PyDev debugger you need to start your app in this way:
Just a reminder… mostly for myself:
the aliases set in .bash_profile are considered ALWAYS first, even if you are in a python virtualenv environment.
This means that if you have (like I do) an alias to a particular instance of ipython with the name “ipython” and in virtualenv you install ipython as well, if you simply type “ipython” the first (with all its libraries) will always be called!
Recently I received my new MacBook Air 13″ (sadly my old MacBook Aluminium is almost dead) and among all the problems I have with Lion probably the one I have with MacPorts is the most frustrating!
Someone can object with “why don’t you use Homebrew? It’s much better than Port because BLAH BLAH BLAH BLAH BLAH”, but I don’t care: I want Port working, not something else!
So after some searches around I found something that “magically” fixed everything.
The problem seems to be related to a missing setting after the installation of the Xcode. In particular the installation of the Xcode from the App Store (besides not installing by default the “Command line tools”) doesn’t set the “xcode_folder_path”.
To check if everything works it’s enough to run:
This gave me back:
xcode-select: Error: No Xcode folder is set. Run xcode-select -switch <xcode_folder_path> to set the path to the Xcode folder.
Error: /usr/bin/xcode-select returned unexpected error.
Well, now the solution is clear! It’s enough to set the xcode_folder_path!
So I run:
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer
is the path of the Xcode application installed through the App Store.
Now if you run again:
you will have
Build version 4E2002
All the Ports now should work! Well…. for me now they work!
I wrote this simple piece of code to validate ISBN strings and I publish it because I hope it can be useful for someone else.
GeSHi Error: GeSHi could not find the language pythonlines (using path /home/zoegxvjs/dimilia.it/wp-content/plugins/codecolorer/lib/geshi/) (code 2)