[web2py] REF: Pie/bar Charts
whats the easiest way to create a pie/bar chart using web2py/python, i was attempting to use pycha with cairo/pycairo libraries with very little success, failed to install pycairo on the mac all the googled exmaples not working. Any ideas? -- ... Teddy Lubasi Nyambe Opensource Zambia Lusaka, ZAMBIA Cell: +260 97 7760473 website: http://www.opensource.org.zm ~/ Human Knowledge belongs to the world! - AntiTrust Man is a tool-using animal. Without tools he is nothing, with tools he is all - Thomas Carlyle 1795-1881 /~ -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [web2py] REF: Pie/bar Charts
Hello I am use http://pygooglechart.slowchop.com/ Is very simple, create a file, a use then in the view. On Thu, Apr 4, 2013 at 10:37 AM, Teddy Nyambe software@gmail.comwrote: whats the easiest way to create a pie/bar chart using web2py/python, i was attempting to use pycha with cairo/pycairo libraries with very little success, failed to install pycairo on the mac all the googled exmaples not working. Any ideas? -- ... Teddy Lubasi Nyambe Opensource Zambia Lusaka, ZAMBIA Cell: +260 97 7760473 website: http://www.opensource.org.zm ~/ Human Knowledge belongs to the world! - AntiTrust Man is a tool-using animal. Without tools he is nothing, with tools he is all - Thomas Carlyle 1795-1881 /~ -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [web2py] REF: Pie/bar Charts
D3js is the way to go. Its javascript but hey, its the way to go also. The best part, and matplotlib is behind this, is interactivity in the browser. Apart from other cool stuff Best 2013/4/4 Javier Pepe javierp...@gmail.com Hello I am use http://pygooglechart.slowchop.com/ Is very simple, create a file, a use then in the view. On Thu, Apr 4, 2013 at 10:37 AM, Teddy Nyambe software@gmail.comwrote: whats the easiest way to create a pie/bar chart using web2py/python, i was attempting to use pycha with cairo/pycairo libraries with very little success, failed to install pycairo on the mac all the googled exmaples not working. Any ideas? -- ... Teddy Lubasi Nyambe Opensource Zambia Lusaka, ZAMBIA Cell: +260 97 7760473 website: http://www.opensource.org.zm ~/ Human Knowledge belongs to the world! - AntiTrust Man is a tool-using animal. Without tools he is nothing, with tools he is all - Thomas Carlyle 1795-1881 /~ -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [web2py] REF: Pie/bar Charts
pygooglechart looks easy, but have a small issue with web2py. I did: easy_install pygooglechart on the python prompt the module is being imported: Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. import pygooglechart help(pygooglechart) Help on module pygooglechart: NAME pygooglechart - pygooglechart - A complete Python wrapper for the Google Chart API FILE /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygooglechart-0.3.0-py2.7.egg/pygooglechart.py but under web2py the import is giving the following error: In [2] : import pygooglechart Traceback (most recent call last): File /Users/teddyl/Documents/src/web2py/gluon/contrib/shell.py, line 234, in run exec compiled in statement_module.__dict__ File string, line 1, in module File /Users/teddyl/Documents/src/web2py/gluon/custom_import.py, line 81, in custom_importer raise ImportError, 'Cannot import module %s' % str(e) ImportError: Cannot import module 'pygooglechart' Any ideas!? On Thu, Apr 4, 2013 at 3:42 PM, Javier Pepe javierp...@gmail.com wrote: Hello I am use http://pygooglechart.slowchop.com/ Is very simple, create a file, a use then in the view. On Thu, Apr 4, 2013 at 10:37 AM, Teddy Nyambe software@gmail.comwrote: whats the easiest way to create a pie/bar chart using web2py/python, i was attempting to use pycha with cairo/pycairo libraries with very little success, failed to install pycairo on the mac all the googled exmaples not working. Any ideas? -- ... Teddy Lubasi Nyambe Opensource Zambia Lusaka, ZAMBIA Cell: +260 97 7760473 website: http://www.opensource.org.zm ~/ Human Knowledge belongs to the world! - AntiTrust Man is a tool-using animal. Without tools he is nothing, with tools he is all - Thomas Carlyle 1795-1881 /~ -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- ... Teddy Lubasi Nyambe Opensource Zambia Lusaka, ZAMBIA Cell: +260 97 7760473 website: http://www.opensource.org.zm ~/ Human Knowledge belongs to the world! - AntiTrust Man is a tool-using animal. Without tools he is nothing, with tools he is all - Thomas Carlyle 1795-1881 /~ -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [web2py] REF: Pie/bar Charts
Ok looks like i needed to restart web2py!! its ok now. On Thu, Apr 4, 2013 at 4:07 PM, Teddy Nyambe software@gmail.com wrote: pygooglechart looks easy, but have a small issue with web2py. I did: easy_install pygooglechart on the python prompt the module is being imported: Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. import pygooglechart help(pygooglechart) Help on module pygooglechart: NAME pygooglechart - pygooglechart - A complete Python wrapper for the Google Chart API FILE /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygooglechart-0.3.0-py2.7.egg/pygooglechart.py but under web2py the import is giving the following error: In [2] : import pygooglechart Traceback (most recent call last): File /Users/teddyl/Documents/src/web2py/gluon/contrib/shell.py, line 234, in run exec compiled in statement_module.__dict__ File string, line 1, in module File /Users/teddyl/Documents/src/web2py/gluon/custom_import.py, line 81, in custom_importer raise ImportError, 'Cannot import module %s' % str(e) ImportError: Cannot import module 'pygooglechart' Any ideas!? On Thu, Apr 4, 2013 at 3:42 PM, Javier Pepe javierp...@gmail.com wrote: Hello I am use http://pygooglechart.slowchop.com/ Is very simple, create a file, a use then in the view. On Thu, Apr 4, 2013 at 10:37 AM, Teddy Nyambe software@gmail.comwrote: whats the easiest way to create a pie/bar chart using web2py/python, i was attempting to use pycha with cairo/pycairo libraries with very little success, failed to install pycairo on the mac all the googled exmaples not working. Any ideas? -- ... Teddy Lubasi Nyambe Opensource Zambia Lusaka, ZAMBIA Cell: +260 97 7760473 website: http://www.opensource.org.zm ~/ Human Knowledge belongs to the world! - AntiTrust Man is a tool-using animal. Without tools he is nothing, with tools he is all - Thomas Carlyle 1795-1881 /~ -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- ... Teddy Lubasi Nyambe Opensource Zambia Lusaka, ZAMBIA Cell: +260 97 7760473 website: http://www.opensource.org.zm ~/ Human Knowledge belongs to the world! - AntiTrust Man is a tool-using animal. Without tools he is nothing, with tools he is all - Thomas Carlyle 1795-1881 /~ -- ... Teddy Lubasi Nyambe Opensource Zambia Lusaka, ZAMBIA Cell: +260 97 7760473 website: http://www.opensource.org.zm ~/ Human Knowledge belongs to the world! - AntiTrust Man is a tool-using animal. Without tools he is nothing, with tools he is all - Thomas Carlyle 1795-1881 /~ -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [web2py] REF: Pie/bar Charts
The image is generated at google.com, what if there is no internet? this is not good will be operating also in off-line modesbut like the simplicity. On Thu, Apr 4, 2013 at 4:16 PM, Teddy Nyambe software@gmail.com wrote: Ok looks like i needed to restart web2py!! its ok now. On Thu, Apr 4, 2013 at 4:07 PM, Teddy Nyambe software@gmail.comwrote: pygooglechart looks easy, but have a small issue with web2py. I did: easy_install pygooglechart on the python prompt the module is being imported: Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. import pygooglechart help(pygooglechart) Help on module pygooglechart: NAME pygooglechart - pygooglechart - A complete Python wrapper for the Google Chart API FILE /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygooglechart-0.3.0-py2.7.egg/pygooglechart.py but under web2py the import is giving the following error: In [2] : import pygooglechart Traceback (most recent call last): File /Users/teddyl/Documents/src/web2py/gluon/contrib/shell.py, line 234, in run exec compiled in statement_module.__dict__ File string, line 1, in module File /Users/teddyl/Documents/src/web2py/gluon/custom_import.py, line 81, in custom_importer raise ImportError, 'Cannot import module %s' % str(e) ImportError: Cannot import module 'pygooglechart' Any ideas!? On Thu, Apr 4, 2013 at 3:42 PM, Javier Pepe javierp...@gmail.com wrote: Hello I am use http://pygooglechart.slowchop.com/ Is very simple, create a file, a use then in the view. On Thu, Apr 4, 2013 at 10:37 AM, Teddy Nyambe software@gmail.comwrote: whats the easiest way to create a pie/bar chart using web2py/python, i was attempting to use pycha with cairo/pycairo libraries with very little success, failed to install pycairo on the mac all the googled exmaples not working. Any ideas? -- ... Teddy Lubasi Nyambe Opensource Zambia Lusaka, ZAMBIA Cell: +260 97 7760473 website: http://www.opensource.org.zm ~/ Human Knowledge belongs to the world! - AntiTrust Man is a tool-using animal. Without tools he is nothing, with tools he is all - Thomas Carlyle 1795-1881 /~ -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- ... Teddy Lubasi Nyambe Opensource Zambia Lusaka, ZAMBIA Cell: +260 97 7760473 website: http://www.opensource.org.zm ~/ Human Knowledge belongs to the world! - AntiTrust Man is a tool-using animal. Without tools he is nothing, with tools he is all - Thomas Carlyle 1795-1881 /~ -- ... Teddy Lubasi Nyambe Opensource Zambia Lusaka, ZAMBIA Cell: +260 97 7760473 website: http://www.opensource.org.zm ~/ Human Knowledge belongs to the world! - AntiTrust Man is a tool-using animal. Without tools he is nothing, with tools he is all - Thomas Carlyle 1795-1881 /~ -- ... Teddy Lubasi Nyambe Opensource Zambia Lusaka, ZAMBIA Cell: +260 97 7760473 website: http://www.opensource.org.zm ~/ Human Knowledge belongs to the world! - AntiTrust Man is a tool-using animal. Without tools he is nothing, with tools he is all - Thomas Carlyle 1795-1881 /~ -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [web2py] REF: Pie/bar Charts
better pip install next time... http://stackoverflow.com/questions/3220404/why-use-pip-over-easy-install Mainly because you can delete the package... Richard On Thu, Apr 4, 2013 at 10:07 AM, Teddy Nyambe software@gmail.comwrote: pygooglechart looks easy, but have a small issue with web2py. I did: easy_install pygooglechart on the python prompt the module is being imported: Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. import pygooglechart help(pygooglechart) Help on module pygooglechart: NAME pygooglechart - pygooglechart - A complete Python wrapper for the Google Chart API FILE /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygooglechart-0.3.0-py2.7.egg/pygooglechart.py but under web2py the import is giving the following error: In [2] : import pygooglechart Traceback (most recent call last): File /Users/teddyl/Documents/src/web2py/gluon/contrib/shell.py, line 234, in run exec compiled in statement_module.__dict__ File string, line 1, in module File /Users/teddyl/Documents/src/web2py/gluon/custom_import.py, line 81, in custom_importer raise ImportError, 'Cannot import module %s' % str(e) ImportError: Cannot import module 'pygooglechart' Any ideas!? On Thu, Apr 4, 2013 at 3:42 PM, Javier Pepe javierp...@gmail.com wrote: Hello I am use http://pygooglechart.slowchop.com/ Is very simple, create a file, a use then in the view. On Thu, Apr 4, 2013 at 10:37 AM, Teddy Nyambe software@gmail.comwrote: whats the easiest way to create a pie/bar chart using web2py/python, i was attempting to use pycha with cairo/pycairo libraries with very little success, failed to install pycairo on the mac all the googled exmaples not working. Any ideas? -- ... Teddy Lubasi Nyambe Opensource Zambia Lusaka, ZAMBIA Cell: +260 97 7760473 website: http://www.opensource.org.zm ~/ Human Knowledge belongs to the world! - AntiTrust Man is a tool-using animal. Without tools he is nothing, with tools he is all - Thomas Carlyle 1795-1881 /~ -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- ... Teddy Lubasi Nyambe Opensource Zambia Lusaka, ZAMBIA Cell: +260 97 7760473 website: http://www.opensource.org.zm ~/ Human Knowledge belongs to the world! - AntiTrust Man is a tool-using animal. Without tools he is nothing, with tools he is all - Thomas Carlyle 1795-1881 /~ -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.