Re: Putting Py 3.4.1 to work.

2014-05-20 Thread wxjmfauth
I really expected I worked to quickly and I did a mistake in freezing applications. But, no. cx_freeze just re-became problematic, __file__, bootstap, importlib and so on. My take on the subject. Since the introduction of this uncecessary __pycache__ mess, I'm experimenting a lot of problems (I'm

Re: Code a web service with python/postgis

2014-05-20 Thread dieter
lcel...@latitude-geosystems.com writes: > ... > I would like code a web service with python. > ... details omitted ... Such a task has many facets. Some of them are quite general and you can find packages on "PyPI" which support them well; others are highly problem specific and you likely will nee

Re: Loading modules from files through C++

2014-05-20 Thread Stefan Behnel
Roland Plüss, 20.05.2014 19:17: > PyObject * const loadedModule = Py_InitModule3( fullname, NULL, "Loaded > module" ); > PyObject * const moduleDict = PyModule_GetDict( loadedModule ); // > borrowed reference > PyDict_SetItemString( moduleDict, "__builtins__", PyEval_GetBuiltins() ); > PyRun_String

Re: Reading OpenOffice spreadsheet in Python?

2014-05-20 Thread dieter
Skip Montanaro writes: > ... > That then puts me in the market for an xlrd > replacement. Is there something akin to xlrd for OpenDocument > spreadsheets? Unlike the binary "excel" format (at least for early versions), "OpenDocument" is a well documented file format (a zip file containing various

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread wxjmfauth
Le mercredi 21 mai 2014 00:19:37 UTC+2, Terry Reedy a écrit : > On 5/20/2014 4:55 PM, Zachary Ware wrote: > > > On Tue, May 20, 2014 at 9:31 AM, wrote: > > >> Experimented users have certainly noticed a lot of > > >> things have changed. > > >> > > > > This looks like something went weird i

Re: Reading OpenOffice spreadsheet in Python?

2014-05-20 Thread Skip Montanaro
> Are you familiar with emacs' org mode tables? > http://orgmode.org/org.html#Tables No. Thanks for the pointer. S -- https://mail.python.org/mailman/listinfo/python-list

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Rustom Mody
On Tuesday, May 20, 2014 9:35:10 PM UTC+5:30, Jagadeesh N. Malakannavar wrote: > Hi Satish, > > Can you please send python part in plain text format? Python code here is > > difficult to read. It would be helpful to read https://wiki.python.org/moin/GoogleGroupsPython#Posting_from_Google_Group

Re: Reading OpenOffice spreadsheet in Python?

2014-05-20 Thread Rustom Mody
On Tuesday, May 20, 2014 10:08:06 PM UTC+5:30, Skip Montanaro wrote: > I don't have Windows and since upgrading my Mac to Mavericks I no > longer have Excel of any flavor. I have a few Excel spreadsheets in > which I store parameters from which I generate other config files. I > read those spreadsh

Re: Reading OpenOffice spreadsheet in Python?

2014-05-20 Thread Skip Montanaro
On Tue, May 20, 2014 at 11:49 AM, Chris Angelico wrote: > Okay, I won't suggest Windows INI files, but I'll still suggest taking > a step back and figuring out exactly what you're trying to accomplish. > Can you separate out the real data from the formula-derived info, put > the former into a git-

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread Terry Reedy
On 5/20/2014 4:55 PM, Zachary Ware wrote: On Tue, May 20, 2014 at 9:31 AM, wrote: Experimented users have certainly noticed a lot of things have changed. Short. I installed Py3.4.1, it overwrites c:\Python34 which contained eg. PySide in ...\site-packages. I installed 3.4.1 on top of 3.4.0,

Re: Reading OpenOffice spreadsheet in Python?

2014-05-20 Thread Skip Montanaro
On Tue, May 20, 2014 at 2:45 PM, Martin Manns wrote: >> I am so fed up with LibreOffice's inability to properly support really >> basic Excel capabilities, I'm about ready to throw my computer out the > > Could you please give some examples, what basic Excel capabilities you > are missing? That's

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread Zachary Ware
On Tue, May 20, 2014 at 9:31 AM, wrote: > Experimented users have certainly noticed a lot of > things have changed. > > Short. I installed Py3.4.1, it overwrites c:\Python34 which > contained eg. PySide in ...\site-packages. > > So far, so good. I can launch Python, IDLE and my interactive > inte

Re: Reading OpenOffice spreadsheet in Python?

2014-05-20 Thread Martin Manns
On Tue, 20 May 2014 11:38:06 -0500 Skip Montanaro wrote: > I am so fed up with LibreOffice's inability to properly support really > basic Excel capabilities, I'm about ready to throw my computer out the Could you please give some examples, what basic Excel capabilities you are missing? > I'm op

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread wxjmfauth
- Complete (re)Fresh install Stop Python34, PySide ok Stop cx_freeze 4.3.3 for py34 seems to suffer, again, from the same desease as with cx_freeze 4.3.2, Py 3.4.0 leading to a Py crash Stop Python, PySide, cx_freeze, Windows issue? No idea Stop Have some idea about the guilty msi installer St

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread Vincent Vande Vyvre
Le 20/05/2014 20:12, Chris Angelico a écrit : On Wed, May 21, 2014 at 4:02 AM, Vincent Vande Vyvre wrote: from pyside import QtCore, QtGui Is it pyside or PySide? There seems to be some inconsistency here. ChrisA Yes PySide, off course. Sorry. -- Vincent V.V. Oqapy

PyDev 3.5.0 Released

2014-05-20 Thread Fabio Zadrozny
What is PyDev? --- PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and IronPython development. It comes with goodies such as code completion, syntax highlighting, syntax analysis, code analysis, refactor, debug, interactive console, etc. Details on

Code a web service with python/postgis

2014-05-20 Thread lcelati
Dear all, I would like code a web service with python. I have already imported several vector data (land cover) and one Digital Elevation Model (raster layer) into my postgresql/postgis database (server side). I succeed in connecting to my pg db via psycopg2. Client side, operators use a c

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread Mark Lawrence
On 20/05/2014 18:38, Ian Kelly wrote: On Tue, May 20, 2014 at 11:14 AM, John Gordon wrote: In wxjmfa...@gmail.com writes: sys.path ['D:\\jm\\jmpy\\smid\\smid50beta1', 'C:\\Windows\\system32\\python34.zip', 'C:\\Python34\\DLLs\\DLLs', 'C:\\Python34\\DLLs\\lib', 'C:\\Python34\\DLLs', 'C:\\Pyt

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread Chris Angelico
On Wed, May 21, 2014 at 4:02 AM, Vincent Vande Vyvre wrote: > from pyside import QtCore, QtGui Is it pyside or PySide? There seems to be some inconsistency here. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread Vincent Vande Vyvre
Le 20/05/2014 19:38, Ian Kelly a écrit : On Tue, May 20, 2014 at 11:14 AM, John Gordon wrote: In wxjmfa...@gmail.com writes: sys.path ['D:\\jm\\jmpy\\smid\\smid50beta1', 'C:\\Windows\\system32\\python34.zip', 'C:\\Python34\\DLLs\\DLLs', 'C:\\Python34\\DLLs\\lib', 'C:\\Python34\\DLLs', 'C:\\

Code a web service with python/postgis

2014-05-20 Thread image
Dear all, I would like code a web service with python. I have already imported several vector data (land cover) and one Digital Elevation Model (raster layer) into my postgresql/postgis database (server side). I succeed in connecting to my pg db via psycopg2. Client side, operators use a clien

Re: Loading modules from files through C++

2014-05-20 Thread Chris Angelico
On Wed, May 21, 2014 at 3:17 AM, Roland Plüss wrote: > The important part are the last two lines. An important module is > lacking the __builtins__ dictionary member so I had to add it. > > Hopefully this works also in Py3 should I switch some time later. But I > guess it should seeing how simple

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread Ian Kelly
On Tue, May 20, 2014 at 11:14 AM, John Gordon wrote: > In > wxjmfa...@gmail.com writes: > >> sys.path >> ['D:\\jm\\jmpy\\smid\\smid50beta1', 'C:\\Windows\\system32\\python34.zip', >> 'C:\\Python34\\DLLs\\DLLs', 'C:\\Python34\\DLLs\\lib', 'C:\\Python34\\DLLs', >> 'C:\\Python34\\DLLs\\lib\\site-pa

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread John Gordon
In wxjmfa...@gmail.com writes: > sys.path > ['D:\\jm\\jmpy\\smid\\smid50beta1', 'C:\\Windows\\system32\\python34.zip', > 'C:\\Python34\\DLLs\\DLLs', 'C:\\Python34\\DLLs\\lib', 'C:\\Python34\\DLLs', > 'C:\\Python34\\DLLs\\lib\\site-packages', > 'C:\\Python34\\Lib\\site-packages\\PySide'] > >>>

Re: Loading modules from files through C++

2014-05-20 Thread Roland Plüss
On 05/19/2014 03:40 AM, Chris Angelico wrote: > On Mon, May 19, 2014 at 5:41 AM, Roland Plüss wrote: >> This exec source_code in module.__dict__ , should this not also be doable >> with PyEval_EvalCode? > General principle: The more code you write in Python and the less in > C/C++, the happier an

Re: Basic help

2014-05-20 Thread Emile van Sebille
On 5/20/2014 7:25 AM, Pat Fourie wrote: Good Day all. I am new to Python. Welcome -- I need to maintain software written on Python 1.5.2. I'd point you to the tutorial for a start. See the docs at https://docs.python.org/release/1.5.2/ I will upgrade after learning more. My question is

Re: Reading OpenOffice spreadsheet in Python?

2014-05-20 Thread Chris Angelico
On Wed, May 21, 2014 at 2:38 AM, Skip Montanaro wrote: > Before someone suggests > config parser/Windows INI files... A spreadsheet format is kinda handy > in this case because I do use a few formulas to define some of the > parameters. Adding a new row (new config file) or column (new > parameter

Re: Basic help

2014-05-20 Thread Ned Batchelder
On 5/20/14 10:25 AM, Pat Fourie wrote: Good Day all. I am new to Python. I need to maintain software written on Python 1.5.2. I will upgrade after learning more. Pat, you are dealing with a version most people have never even seen! You are brave! :) My question is : When compiling, the r

Reading OpenOffice spreadsheet in Python?

2014-05-20 Thread Skip Montanaro
I don't have Windows and since upgrading my Mac to Mavericks I no longer have Excel of any flavor. I have a few Excel spreadsheets in which I store parameters from which I generate other config files. I read those spreadsheets using xlrd. I am so fed up with LibreOffice's inability to properly sup

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Jagadeesh Malakannavar
Hi Satish, Can you please send python part in plain text format? Python code here is difficult to read. Thanks On Tue, 20 May 2014, Satish ML wrote: | On Tuesday, May 20, 2014 5:54:47 PM UTC+5:30, Satish ML wrote: | > On Tuesday, May 20, 2014 5:51:19 PM UTC+5:30, Satish ML wrote: > On Tuesday

Re: 'Swampy' installation through 'pip'

2014-05-20 Thread Ian Kelly
On May 20, 2014 7:22 AM, "Mark Lawrence" wrote: > > On 20/05/2014 08:11, Ronak Dhakan wrote: >> >> I have just started learning python from How to Think Like a Computer Scientist. It requires me to install 'swampy' ( http://www.greenteapress.com/thinkpython/swampy/install.html) which requires

Basic help

2014-05-20 Thread Pat Fourie
Good Day all. I am new to Python. I need to maintain software written on Python 1.5.2. I will upgrade after learning more. My question is : When compiling, the results of the compile is displayed in the "active window". How can I view this window. Many thanks for your assistance. Kind regards

Putting Py 3.4.1 to work.

2014-05-20 Thread wxjmfauth
Experimented users have certainly noticed a lot of things have changed. Short. I installed Py3.4.1, it overwrites c:\Python34 which contained eg. PySide in ...\site-packages. So far, so good. I can launch Python, IDLE and my interactive interpreter I wrote with tkinter via a cmd in dos, .bat, ...

Re: Python and Math

2014-05-20 Thread Rustom Mody
On Tuesday, May 20, 2014 7:12:19 PM UTC+5:30, jmf wrote: > I give up. > Anyway, thanks. Take a deep breath. Be patient. And post the backtrace (or whatever is the evidence of 'not working') -- https://mail.python.org/mailman/listinfo/python-list

Re: Python and Math

2014-05-20 Thread Rustom Mody
On Tuesday, May 20, 2014 5:25:40 PM UTC+5:30, Tim Golden wrote: > On 20/05/2014 12:20, Rustom Mody wrote: > > > On Tuesday, May 20, 2014 3:43:45 PM UTC+5:30, Tim Golden wrote: > >> If it's possible, download get-pip.py from here: > >> > >> https://bootstrap.pypa.io/get-pip.py > > > > Gives me sec

Re: Python and Math

2014-05-20 Thread wxjmfauth
Le mardi 20 mai 2014 12:13:45 UTC+2, Tim Golden a écrit : > On 20/05/2014 10:19, wxjmfa...@gmail.com wrote: > > > Le lundi 19 mai 2014 21:18:54 UTC+2, Tim Golden a �crit : > > >> On 19/05/2014 20:07, wxjmfa...@gmail.com wrote: > > >> > > > Yesterday, I spent one hour attemepting to insta

Re: 'Swampy' installation through 'pip'

2014-05-20 Thread Chris Angelico
On Tue, May 20, 2014 at 11:20 PM, Mark Lawrence wrote: > I'd recommend reinstalling and use the default settings, putting Python at > the top level of the disk and not in "Program Files", that's another set of > potential set of problems eliminated straight away. Second this recommendation. I saw

Re: 'Swampy' installation through 'pip'

2014-05-20 Thread Mark Lawrence
On 20/05/2014 08:11, Ronak Dhakan wrote: I have just started learning python from How to Think Like a Computer Scientist. It requires me to install 'swampy' (http://www.greenteapress.com/thinkpython/swampy/install.html) which requires me to install 'pip' (https://pip.pypa.io/en/latest/in

Re: Python and Math

2014-05-20 Thread Frank Millman
"Tim Golden" wrote in message news:537b42bc.3030...@timgolden.me.uk... > On 20/05/2014 12:20, Rustom Mody wrote: >> On Tuesday, May 20, 2014 3:43:45 PM UTC+5:30, Tim Golden wrote: >>> If it's possible, download get-pip.py from here: >>> >>> https://bootstrap.pypa.io/get-pip.py >> >> Gives me sec

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread alister
On Tue, 20 May 2014 05:28:09 -0700, Satish ML wrote: > On Tuesday, May 20, 2014 5:54:47 PM UTC+5:30, Satish ML wrote: >> On Tuesday, May 20, 2014 5:51:19 PM UTC+5:30, Satish ML wrote: > On >> Tuesday, May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: > On >> Monday, May 19, 2014 2:32:36 PM UTC

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Satish ML
On Tuesday, May 20, 2014 5:54:47 PM UTC+5:30, Satish ML wrote: > On Tuesday, May 20, 2014 5:51:19 PM UTC+5:30, Satish ML wrote: > On Tuesday, > May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: > On Monday, May 19, > 2014 2:32:36 PM UTC+5:30, Satish ML wrote: > On Monday, May 19, 2014 12:31:0

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Satish ML
On Tuesday, May 20, 2014 5:51:19 PM UTC+5:30, Satish ML wrote: > On Tuesday, May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: > On > Monday, May 19, 2014 2:32:36 PM UTC+5:30, Satish ML wrote: > On Monday, May > 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: > > On Mon, May 19, 2014 >

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Satish ML
On Tuesday, May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: > On Monday, May 19, 2014 2:32:36 PM UTC+5:30, Satish ML wrote: > On Monday, > May 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: > > On Mon, May 19, > 2014 at 4:53 PM, wrote: > Could you kindly help? Sure. Either start writi

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Satish ML
On Tuesday, May 20, 2014 5:51:19 PM UTC+5:30, Satish ML wrote: > On Tuesday, May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: > On > Monday, May 19, 2014 2:32:36 PM UTC+5:30, Satish ML wrote: > On Monday, May > 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: > > On Mon, May 19, 2014 >

Re: Python and Math

2014-05-20 Thread Tim Golden
On 20/05/2014 12:20, Rustom Mody wrote: > On Tuesday, May 20, 2014 3:43:45 PM UTC+5:30, Tim Golden wrote: >> If it's possible, download get-pip.py from here: >> >> https://bootstrap.pypa.io/get-pip.py > > Gives me secure connection failed error (in firefox) > I've reported on the PyPA issues lis

Re: Python and Math

2014-05-20 Thread Rustom Mody
On Tuesday, May 20, 2014 3:43:45 PM UTC+5:30, Tim Golden wrote: > If it's possible, download get-pip.py from here: > > https://bootstrap.pypa.io/get-pip.py Gives me secure connection failed error (in firefox) -- https://mail.python.org/mailman/listinfo/python-list

Re: Python and Math

2014-05-20 Thread Tim Golden
On 20/05/2014 10:19, wxjmfa...@gmail.com wrote: > Le lundi 19 mai 2014 21:18:54 UTC+2, Tim Golden a écrit : >> On 19/05/2014 20:07, wxjmfa...@gmail.com wrote: >> > Yesterday, I spent one hour attemepting to install IPython > for Py3.3 (win 7), I failed. I do not even succeed to > under

Re: Python and Math

2014-05-20 Thread wxjmfauth
Le lundi 19 mai 2014 21:18:54 UTC+2, Tim Golden a écrit : > On 19/05/2014 20:07, wxjmfa...@gmail.com wrote: > > >>> Yesterday, I spent one hour attemepting to install IPython > > >> > > >>> for Py3.3 (win 7), I failed. I do not even succeed to > > >> > > >>> understand how. Pip, setuptools, wh

Re: Problem in writing demands to the xml file

2014-05-20 Thread varun7rs
There is no traceback error. But I want to actually fill the demands with certain attributes which I'm not able to do. When I run the program, the xml is written but the demands doesn't have any attributes whatsoever. I could give you a clear idea of what I expect in the demands. For every node,

'Swampy' installation through 'pip'

2014-05-20 Thread Ronak Dhakan
I have just started learning python from How to Think Like a Computer Scientist. It requires me to install 'swampy' (http://www.greenteapress.com/thinkpython/swampy/install.html) which requires me to install 'pip' (https://pip.pypa.io/en/latest/installing.html). I think I was able to so