I am quite new to Python and PTVS. I am running PTVS 2.1 on Win 8.1 and am trying to run a small module that uses Kivy. The import statements are:
from kivy.app import App
from kivy.uix.floatlayout import FloatLayout
from kivy.factory import Factory
from kivy.properties import ObjectProperty
from kivy.uix.popup import Popup
When I ran this I got error:
ImportError: No module named 'kivy'
It seems to me that there may be two ways of solving this:
1) Set PYTHONPATH:
However, that didn't work for me.
I had set PYTHONPATH as a user environment variable but when I try to read it:
pythonpath = os.environ['PYTHONPATH']
it is not defined.
2) Set Properties > Debug > Search Path to:
That did work but I then get a different error:
No module named 'Image'.
at line 10 of img_pil.py, which is:
import Image as PILImage
Please will you advise me which method I should use to specify the search path and why I don't see PYTHONPATH set?
If you have any hints about using PTVS with Kivy that would be a bonus.
Thanks in advance,