Difference between revisions of "Setup Toga with Spyder"

From OpenCircuits
Jump to navigation Jump to search
Line 8: Line 8:
 
for Toga see: '''[https://toga.readthedocs.io/en/latest/ Toga — Toga 0.3.0.dev10 documentation ]'''
 
for Toga see: '''[https://toga.readthedocs.io/en/latest/ Toga — Toga 0.3.0.dev10 documentation ]'''
  
This has not been easy, still not working as of July 30: see this page history for other dates.\
+
This has not been easy, still not working as of July 30: see this page history for other dates.
 +
 
 +
Unfortunately I tried so many things that some steps and details are lost in the fog of time, here
 +
I will try to document the most important steps and results.
  
 
After a brief bout with windows, I decided to move to Ubuntu as a virtual machine under my Windows host.
 
After a brief bout with windows, I decided to move to Ubuntu as a virtual machine under my Windows host.
Line 20: Line 23:
 
which seemed ok, I can now run Spyder
 
which seemed ok, I can now run Spyder
  
 +
Also ran
 +
 +
*pip install toga-demo
 +
 +
*pip install --upgrade pip    >>>> Successfully installed pip-18.0
 +
 +
*toga-demo    >>> demo seemed to run
 +
 +
*pip install --pre toga    >>> did not get errors
 +
 +
*from '''[https://toga.readthedocs.io/en/latest/tutorial/tutorial-0.html Your first Toga app — Toga 0.3.0.dev10 documentation ]''' Created russ@ubuntu-18-base:~/python3/projects/toga_1.py
 +
 +
 +
*python -m toga_1.py
 +
/home/russ/anaconda3/bin/python: Error while finding module specification for 'toga_1.py' (AttributeError: module 'toga_1' has no attribute '__path__')
 +
russ@ubuntu-18-base:~/python3/projects$ python  toga_1.py
  
 +
*russ@ubuntu-18-base:~/python3/projects$ python -m toga_1.py  >>> does not work _>
 +
/home/russ/anaconda3/bin/python: Error while finding module specification for 'toga_1.py' (AttributeError: module 'toga_1' has no attribute '__path__')
  
 +
*russ@ubuntu-18-base:~/python3/projects$ python  toga_1.py  >>> does work but button is a big as window, just a detail?
  
 +
*inside of spyder toga_1.py does not work, but after much messing around I found that changing the pythonpath in spyder would let it run
  
 
<!---
 
<!---

Revision as of 05:56, 31 July 2018

Setup Toga with Spyder

Goal

Get Toga running ( preferabley with editable source code ) in Spyder and IDE for Python

for Toga see: Toga — Toga 0.3.0.dev10 documentation

This has not been easy, still not working as of July 30: see this page history for other dates.

Unfortunately I tried so many things that some steps and details are lost in the fog of time, here I will try to document the most important steps and results.

After a brief bout with windows, I decided to move to Ubuntu as a virtual machine under my Windows host.

Installed 18.4 then installed Anaconda ( not everything seemed to work ) which did not get me Spyder. So I did a

     apt get spyder3 

which seemed ok, I can now run Spyder

Also ran

  • pip install toga-demo
  • pip install --upgrade pip >>>> Successfully installed pip-18.0
  • toga-demo >>> demo seemed to run
  • pip install --pre toga >>> did not get errors


  • python -m toga_1.py

/home/russ/anaconda3/bin/python: Error while finding module specification for 'toga_1.py' (AttributeError: module 'toga_1' has no attribute '__path__') russ@ubuntu-18-base:~/python3/projects$ python toga_1.py

  • russ@ubuntu-18-base:~/python3/projects$ python -m toga_1.py >>> does not work _>

/home/russ/anaconda3/bin/python: Error while finding module specification for 'toga_1.py' (AttributeError: module 'toga_1' has no attribute '__path__')

  • russ@ubuntu-18-base:~/python3/projects$ python toga_1.py >>> does work but button is a big as window, just a detail?
  • inside of spyder toga_1.py does not work, but after much messing around I found that changing the pythonpath in spyder would let it run