Aw: How to import data from MySQL db into excel sheet

2011-06-02 Thread Martin Brochhaus
Why do you need to do this with python? Why not output the SQL data as a .cvs 
and open that file in Excel. The user can then adjust column widths as he likes.

If it has to be done programatically, you might want to start your journey 
here: 
http://www.python-excel.org/

Best regards,
Martin
-- 
http://mail.python.org/mailman/listinfo/python-list


Aw: Python newbie here! No module named settings

2011-06-02 Thread Martin Brochhaus
I can only guess.

1) You can delete "import helper" as that is never used in the code and would 
raise another "no module" exception.

2) You can delete "import settings" and just insert some integers further down 
where it is used (settings.width and settings.height) 

OR 

- you can make the folder where your script resides a python module by adding a 
__init__.py file
- then add a settings.py
- put height = 100 and width = 100 into settings.py
- you should no longer get that error.

You probably took that script out of a bigger context. Does it eventually come 
with a zip-file containing some more files (such as __init__.py and 
settings.py)?

Best regards,
Martin
-- 
http://mail.python.org/mailman/listinfo/python-list