IMPORT ERROR: 'from kivy.properties import NumericProperty'

3,090 views
Skip to first unread message

Bora Yildiz

unread,
May 22, 2014, 3:18:55 AM5/22/14
to kivy-...@googlegroups.com
Hi All,

I have a problem with importing NumericProperty class. 

Kivy Version: 1.8.0
IDE:              PhyCharm 3.1.3


I can import other classes, but some how I can not import NumericProperty or ObjectProperty.
There is an error of Unresolved Reference. Here is my part of code to import libraries;


kivy.require('1.8.0')
import kivy
import kivy.properties
from kivy.event import EventDispatcher
from kivy.uix.listview import ListView
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.properties import NumericProperty
from kivy.properties import ObjectProperty


Thanks in advance,
Bora


Ben Rousch

unread,
May 22, 2014, 7:08:51 AM5/22/14
to kivy-...@googlegroups.com

Does the code actually run, or is it just a problem with PyCharm not being able to find the properties?

--
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/d/optout.

ZenCODE

unread,
May 22, 2014, 10:02:38 AM5/22/14
to kivy-...@googlegroups.com
Yes, I think you'll find it runs fine and as Ben said, it's just Pycharm. I use PyCharm and have similar issues. My personal theory, totally unsubstantiated by hard evidence but never-the-less dearly hung on to by my emotional self, is that PyCharm struggles with Cythonized modules.

Because it parses the python files for the docs in building up's it's syntax highlighter, it cannot resolve the cythononized modules. Oh, and have you had a look here? https://github.com/kivy/kivy/wiki/Setting-Up-Kivy-with-various-popular-IDE%27s

Cheers
Reply all
Reply to author
Forward
0 new messages