python - Pyforms AttributeError: ‘module’ object has no attribute ‘start_app’ -




after installing pyforms on raspberry pi 3 tried running example found on readthedocs, application throwing attributeerror (i tried both python2 , python3)


python code

import pyforms   pyforms          import basewidget   pyforms.controls import controltext   pyforms.controls import controlbutton  class simpleexample1(basewidget):      def __init__(self):         super(simpleexample1,self).__init__('simple example 1')          #definition of forms fields         self._firstname     = controltext('first name', 'default value')         self._middlename    = controltext('middle name')         self._lastname      = controltext('lastname name')         self._fullname      = controltext('full name')         self._button        = controlbutton('press button')   #execute application if __name__ == "__main__":   pyforms.start_app( simpleexample1 ) 

error:

traceback (most recent call last):   file "picontrol.py", line 20, in <module>     if __name__ == "__main__":   pyforms.start_app( simpleexample1 ) attributeerror: ‘module’ object has no attribute ‘start_app’ 


edit:

i tried import start_app manually

from pyforms.gui.standalonemanager import start_app 

but importerror:

traceback (most recent call last):   file "picontrol.py", line 4, in <module>       pyforms.gui.standalonemanager import start_app importerror: cannot import name 'start_app' 

this strange behavior , possibly means installation in broken. try install latest versions repo:

pip install -u git+https://github.com/umsenhorqualquer/pyforms.git  pip install -u git+https://github.com/umsenhorqualquer/pysettings.git pip install -u git+https://bitbucket.org/fchampalimaud/logging-bootstrap.gi‌​t 




wiki

Comments

Popular posts from this blog

python - Read npy file directly from S3 StreamingBody -

python - Minimize function with Scipy minimize -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -