I am getting 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 got python 2.7.3 and 3.2.3. (virtualenv) is pointing to python3 and I have installed bottle in here and its available under site-packges..
I can import bottle when I am under 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 will be much appreciated, driving me mad.
Thanks