--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
@qua-non: Yup, agreed. I though to describe the core principles there (environment variables, venv vs. installed python) together with a generic "setup your interpreter" process, then link to IDE specific setup's. Including them all might be too much?
--
--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/tZTuUzUHBwc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
#!/usr/bin/env python
import osos.environ['GST_PLUGIN_PATH'] = 'C:\Kivy-1.8.0-py3.3-win32\gstreamer\lib\gstreamer-1.0'os.environ['GST_REGISTRY'] = 'C:\Kivy-1.8.0-py3.3-win32\gstreamer\registry.bin'os.environ['PATH'] = 'C:\Kivy-1.8.0-py3.3-win32\;C:\Kivy-1.8.0-py3.3-win32\Python33;C:\Kivy-1.8.0-py3.3-win32\tools;C:\Kivy-1.8.0-py3.3-win32\Python33\Scripts;C:\Kivy-1.8.0-py3.3-win32\gstreamer\bin;C:\Kivy-1.8.0-py3.3-win32\MinGW\bin;C:\ProgramData\Oracle\Java\;%PATH%'
from kivy.app import Appfrom kivy.uix.floatlayout import FloatLayoutfrom kivy.factory import Factoryfrom kivy.properties import ObjectPropertyfrom kivy.uix.popup import Popup
from kivy.app import Appfrom kivy.uix.widget import Widgetfrom kivy.graphics import Color, Ellipse
class MyPaintWidget(Widget):
def on_touch_down(self, touch): with self.canvas: Color(1, 1, 0) d = 30. Ellipse(pos=(touch.x - d / 2, touch.y - d / 2), size=(d, d))
class MyPaintApp(App):
def build(self): return MyPaintWidget()
if __name__ == '__main__': MyPaintApp().run()
File "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\visualstudio_py_util.py", line 82, in exec_code exec(code_obj, global_variables) File "C:\Users\daldrich\Work\Kivy\module1.py", line 9, in <module> from kivy.uix.floatlayout import FloatLayoutImportError: No module named 'kivy'Press any key to continue
Setting the debug search path should not be necessary. Setting up the PYTHONPATH variables should be enough. Start with the most basic app that just displays a label. Then take it from there. Does that work?
Cheers
See this page for an explanation of why we block the value of PYTHONPATH and how to use Search Paths through Solution Explorer.