I get the following error:
(virtualenv)[ chirdeep@fedora-desktop ~]$ python programs/python/myrestapi.py Traceback (most recent call last): File "programs/python/myrestapi.py", line 2, in <module> import bottle File "/home/chirdeep/programs/python/bottle.py", line 1, in <module> from bottle import route, run ImportError: cannot import name route
I have python 2.7.3 and 3.2.3. (virtualenv) points to python3, and I installed here the bottle and its available under the package site.
I can import the bottle when I'm under the python console after activating the environment.
(virtualenv)[ chirdeep@fedora-desktop ~]$ python Python 3.2.3 (default, Jul 26 2012, 22:03:19) [GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import bottle >>>
Any help would be greatly appreciated, driving me crazy.
thanks
source share