Old DbaseV DOS Programmer wants to step over to new/actual modern program software

2015-08-16 Thread AGOSTINHO TEIXEIRA
I'm a 25year DBASE-5 DOS programmer and want/have to step over to new program/platform software, because there is no future anymore for DOS after W-XP, I've been looking around for alternatives and cannot figure out where to start, I already have been learning the SQL with SSMS database system/s

-2146826246 in win32com.client for empty #N/A cell in Excel

2015-08-16 Thread Sven Boden
Anyone know how to handle "#N/A" in Excel from win32com.client. I'm extracting data from an Excel file using win32com.client. Everything works fine except for when the value "#N/A" is entered in excel. An empty cell. I assumed I do something as if ws.Cells(r, c).Value is None: ... But th

Re: Old DbaseV DOS Programmer wants to step over to new/actual modern program software

2015-08-16 Thread Igor Korot
Hi, On Sun, Aug 16, 2015 at 12:40 PM, AGOSTINHO TEIXEIRA wrote: > I'm a 25year DBASE-5 DOS programmer and want/have to step over to new > program/platform software, because there is no future anymore for DOS after > W-XP, I've been looking around for alternatives and cannot figure out where >

Re: Old DbaseV DOS Programmer wants to step over to new/actual modern program software

2015-08-16 Thread Michael Torrie
On 08/16/2015 10:40 AM, AGOSTINHO TEIXEIRA wrote: > I'm a 25year DBASE-5 DOS programmer and want/have to step over to new > program/platform software, because there is no future anymore for DOS > after W-XP, I've been looking around for alternatives and cannot > figure out where to start, I already

Re: Old DbaseV DOS Programmer wants to step over to new/actual modern program software

2015-08-16 Thread Rustom Mody
On Sunday, August 16, 2015 at 10:10:18 PM UTC+5:30, AGOSTINHO TEIXEIRA wrote: > I'm a 25year DBASE-5 DOS programmer and want/have to step over to new > program/platform software, because there is no future anymore for DOS after > W-XP, I've been looking around for alternatives and cannot figure o

RE: -2146826246 in win32com.client for empty #N/A cell in Excel

2015-08-16 Thread Albert-Jan Roskam
> Date: Sun, 16 Aug 2015 09:53:32 -0700 > Subject: -2146826246 in win32com.client for empty #N/A cell in Excel > From: sven.bo...@gmail.com > To: python-list@python.org > > > Anyone know how to handle "#N/A" in Excel from win32com.client. > > I'm extracting data from an Excel file using win32c

Re: Old DbaseV DOS Programmer wants to step over to new/actual modern program software

2015-08-16 Thread Vladimir Ignatov
On Sun, Aug 16, 2015 at 1:11 PM, Rustom Mody wrote: >> I have some ideas in mind like Java with (ECLIPS) because it is very >> popular, it is the most widely used and can get tutorials and videos all >> over the internet. >> I've read a lot of good things about Python, that it is much easier bu

Re: -2146826246 in win32com.client for empty #N/A cell in Excel

2015-08-16 Thread Chris Angelico
On Mon, Aug 17, 2015 at 3:27 AM, Albert-Jan Roskam wrote: > Does that number happen to be -1 * sys.maxint? No, it's -1 * 0x7ff5f806. As a signed 32-bit integer, it's 0x800a07fa. Does either of those numbers mean anything? Sven, you might do better to ask on a dedicated Python + Win32 mailing lis

"no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread shiva upreti
Hi I am new to linux. I tried various things in attempt to install kivy. I installed python 2.7.10 (I think python3 was already installed in ubuntu 14.04). Then i downloaded kivy from https://pypi.python.org/packages/source/K/Kivy/Kivy-1.9.0.tar.gz, extracted it and tried to execute "python set

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread MRAB
On 2015-08-16 20:16, shiva upreti wrote: Hi I am new to linux. I tried various things in attempt to install kivy. I installed python 2.7.10 (I think python3 was already installed in ubuntu 14.04). Then i downloaded kivy from https://pypi.python.org/packages/source/K/Kivy/Kivy-1.9.0.tar.gz, extr

distutils error ?

2015-08-16 Thread garyr
I tried building the spammodule.c example described in the documentation section "Extending Python with C or C++." As shown the code compiles OK but generates a link error: LINK : error LNK2001: unresolved external symbol init_spam build\temp.win32-2.7\Release\_spam.lib : fatal error LNK1120: 1 un

RPI.GPIO Help

2015-08-16 Thread John McKenzie
Hello, all. I am hoping some people here are familiar with the RPi.GPIO python module for the Raspberry Pi. Very new to Python and electronics. Not to computing in general though. I posted for help about accepting key presses and then discovered that wiring up buttons directly to the Pi was

Re: -2146826246 in win32com.client for empty #N/A cell in Excel

2015-08-16 Thread Laura Creighton
For what it's worth, I use xlrd for this. http://www.python-excel.org/ Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Keypress Input

2015-08-16 Thread John McKenzie
Thanks again to everyone who tried to help. Michael, I especially appreciate your encouragement and chiming in to point out that telling newbies to learn everything there is before posting question was not helpful in getting more people using Python. Have the Pi wired up directly to the but

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Laura Creighton
In a message of Sun, 16 Aug 2015 12:16:53 -0700, shiva upreti writes: >I am still getting the error:"ImportError: No module named kivy". > >Any help will be highly appreciated. >Thanks. The preferred way to install kivy with ubuntu is to follow the instructions here: http://kivy.org/docs/installa

Re: RPI.GPIO Help

2015-08-16 Thread MRAB
On 2015-08-16 20:40, John McKenzie wrote: Hello, all. I am hoping some people here are familiar with the RPi.GPIO python module for the Raspberry Pi. Very new to Python and electronics. Not to computing in general though. I posted for help about accepting key presses and then discovered tha

Re: -2146826246 in win32com.client for empty #N/A cell in Excel

2015-08-16 Thread random832
On Sun, Aug 16, 2015, at 14:41, Chris Angelico wrote: > On Mon, Aug 17, 2015 at 3:27 AM, Albert-Jan Roskam > wrote: > > Does that number happen to be -1 * sys.maxint? > > No, it's -1 * 0x7ff5f806. As a signed 32-bit integer, it's 0x800a07fa. > Does either of those numbers mean anything? That's a

Re: -2146826246 in win32com.client for empty #N/A cell in Excel

2015-08-16 Thread Nobody
On Sun, 16 Aug 2015 09:53:32 -0700, Sven Boden wrote: > Anyone knows how to handle a "#N/A" cell in Excel in the proper way? 0x800A07FA is how xlErrNA (error 2042) is marshalled. This isn't specific to Python; you'll get the same value using e.g C# or VB.NET. There's a fairly thorough article on

return types from library api wrappers

2015-08-16 Thread Joseph L. Casale
What's the accepted practice for return types from a c based API Python wrapper? I have many methods which return generators which yield potentially many fields per iteration. In lower level languages we would yield a struct with readonly fields. The existing implementation returns a dict which I

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Chris Angelico
On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti wrote: > I am new to linux. I tried various things in attempt to install kivy. I > installed python 2.7.10 (I think python3 was already installed in ubuntu > 14.04). Then i downloaded kivy from > https://pypi.python.org/packages/source/K/Kivy/Kivy-1

Re: return types from library api wrappers

2015-08-16 Thread Terry Reedy
On 8/16/2015 7:31 PM, Joseph L. Casale wrote: What's the accepted practice for return types from a c based API Python wrapper? I have many methods which return generators which yield potentially many fields per iteration. In lower level languages we would yield a struct with readonly fields. Cu

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Rustom Mody
On Monday, August 17, 2015 at 7:30:14 AM UTC+5:30, Chris Angelico wrote: > On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti wrote: > > I am new to linux. I tried various things in attempt to install kivy. I > > installed python 2.7.10 (I think python3 was already installed in ubuntu > > 14.04). Then

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Chris Angelico
On Mon, Aug 17, 2015 at 12:51 PM, Rustom Mody wrote: > On Monday, August 17, 2015 at 7:30:14 AM UTC+5:30, Chris Angelico wrote: >> On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti wrote: >> > I am new to linux. I tried various things in attempt to install kivy. I >> > installed python 2.7.10 (I thin

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread rurpy--- via Python-list
On Sunday, August 16, 2015 at 8:00:14 PM UTC-6, Chris Angelico wrote: > On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti > wrote: > > I am new to linux. I tried various things in attempt to install kivy. I > > installed python 2.7.10 (I think python3 was already installed in ubuntu > > 14.04). The

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Laura Creighton
In a message of Sun, 16 Aug 2015 20:19:49 -0700, rurpy--- via Python-list write s: >On Sunday, August 16, 2015 at 8:00:14 PM UTC-6, Chris Angelico wrote: >> On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti >> wrote: >> > I am new to linux. I tried various things in attempt to install kivy. I >> > i

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread rurpy--- via Python-list
On Sunday, August 16, 2015 at 10:14:29 PM UTC-6, Laura Creighton wrote: > In a message of Sun, 16 Aug 2015 20:19:49 -0700, rurpy--- via Python-list > writes: > >On Sunday, August 16, 2015 at 8:00:14 PM UTC-6, Chris Angelico wrote: > >>[...] > >> use pip (maybe inside a virtualenv). It'll chug for

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Dave Farrance
shiva upreti wrote: >Hi >I am new to linux. I tried various things in attempt to install kivy. I >installed python 2.7.10 Just to make clear what others have said -- replacing Ubuntu 14.04's system Python 2.7.6 is a bad idea and will break stuff, so if you really must have the latest version of

Re: Detecting if a library has native dependency

2015-08-16 Thread dieter
Harish Vishwanath writes: > Is there a reliable way to detect if a python library has native dependency > or native code? For ex. can I programmatically determine that "lxml" > package has native code and depends on the presence of libxml on the system? I do not expect a tool that in all cases c