Re: XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'

2021-09-29 Thread hongy...@gmail.com
On Thursday, September 30, 2021 at 5:20:04 AM UTC+8, Peter J. Holzer wrote: > On 2021-09-29 01:22:03 -0700, hongy...@gmail.com wrote: > > I tried to convert a xls file into csv with the following command, but > > failed: > > > > $ in2csv --sheet 'Sheet1' 2021-2022-1.xls > > XLRDError: Unsuppor

Re: OT: AttributeError

2021-09-29 Thread Greg Ewing
On 30/09/21 7:28 am, dn wrote: Oh yes! The D2 kit - I kept those books for years... https://www.electronixandmore.com/adam/temp/6800trainer/mek6800d2.html My 6800 system was nowhere near as fancy as that! It was the result of replacing the CPU in my homebrew Miniscamp. -- Greg -- https://mai

Re: OT: AttributeError

2021-09-29 Thread Rob Cliffe via Python-list
Ah, Z80s (deep sigh).  Those were the days!  You could disassemble the entire CP/M operating system (including the BIOS), and still have many Kb to play with!  Real programmers don't need gigabytes! On 29/09/2021 03:03, 2qdxy4rzwzuui...@potatochowder.com wrote: On 2021-09-29 at 09:21:34 +1000,

RE: XML Considered Harmful

2021-09-29 Thread Avi Gross via Python-list
I think that to make electricity comprehend, you need a room temperature superconductor. The Cooper Pairs took a while to comprehend but now ... I think, seriously, we have established the problems with guessing that others are using the language in a way we assume. So how many comprehensions do

Re: XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'

2021-09-29 Thread Peter J. Holzer
On 2021-09-29 01:22:03 -0700, hongy...@gmail.com wrote: > I tried to convert a xls file into csv with the following command, but failed: > > $ in2csv --sheet 'Sheet1' 2021-2022-1.xls > XLRDError: Unsupported format, or corrupt file: Expected BOF record; found > b'\r\n\r\n\r\n\r\n' > > The above

Re: OT: AttributeError

2021-09-29 Thread dn via Python-list
On 29/09/2021 19.16, Greg Ewing wrote: > On 29/09/21 3:03 pm, 2qdxy4rzwzuui...@potatochowder.com wrote: >> Who thinks in little >> endian?  (I was raised on 6502s and 680XX CPUs; 8080s and Z80s always >> did things backwards.) > > The first CPU I wrote code for was a National SC/MP, which doesn't

Re: NUmpy

2021-09-29 Thread Christian Gollwitzer
Am 29.09.21 um 18:16 schrieb Jorge Conforte: Hi, I have a netcdf file "uwnd_850_1981.nc" and I'm using the commands to read it: Your code is incomplete: from numpy import dtype  fileu ='uwnd_850_1981.nc' ncu = Dataset(fileu,'r') Where is "Dataset" defined? uwnd=ncu.variables['uwnd'][:

ANN: Wing Python IDE 8.0.4 has been released

2021-09-29 Thread Wingware
Wing 8.0.4 adds Close Unmodified Others to the editor tab's context menu, documents using sitecustomize to automatically start debug, fixes the debugger on some Windows systems, improves icon rendering with some Windows scaling factors, and makes several other improvements. Details:  h

Re: OT: AttributeError

2021-09-29 Thread MRAB
On 2021-09-29 03:03, 2qdxy4rzwzuui...@potatochowder.com wrote: On 2021-09-29 at 09:21:34 +1000, Chris Angelico wrote: On Wed, Sep 29, 2021 at 9:10 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > On 2021-09-29 at 11:38:22 +1300, > dn via Python-list wrote: > > > For those of us who remember

NUmpy

2021-09-29 Thread Jorge Conforte
Hi, I have a netcdf file "uwnd_850_1981.nc" and I'm using the commands to read it: from numpy import dtype  fileu ='uwnd_850_1981.nc' ncu = Dataset(fileu,'r') uwnd=ncu.variables['uwnd'][:] and I had: :1: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silen

Re: XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'

2021-09-29 Thread J.O. Aho
On 29/09/2021 13.10, hongy...@gmail.com wrote: On Wednesday, September 29, 2021 at 5:40:58 PM UTC+8, J.O. Aho wrote: On 29/09/2021 10.22, hongy...@gmail.com wrote: I tried to convert a xls file into csv with the following command, but failed: $ in2csv --sheet 'Sheet1' 2021-2022-1.xls XLRDError

Re: XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'

2021-09-29 Thread hongy...@gmail.com
On Wednesday, September 29, 2021 at 8:12:08 PM UTC+8, J.O. Aho wrote: > On 29/09/2021 13.10, hongy...@gmail.com wrote: > > On Wednesday, September 29, 2021 at 5:40:58 PM UTC+8, J.O. Aho wrote: > >> On 29/09/2021 10.22, hongy...@gmail.com wrote: > >>> I tried to convert a xls file into csv with t

Re: XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'

2021-09-29 Thread hongy...@gmail.com
On Wednesday, September 29, 2021 at 5:40:58 PM UTC+8, J.O. Aho wrote: > On 29/09/2021 10.22, hongy...@gmail.com wrote: > > I tried to convert a xls file into csv with the following command, but > > failed: > > > > $ in2csv --sheet 'Sheet1' 2021-2022-1.xls > > XLRDError: Unsupported format, or

Re: XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'

2021-09-29 Thread J.O. Aho
On 29/09/2021 10.22, hongy...@gmail.com wrote: I tried to convert a xls file into csv with the following command, but failed: $ in2csv --sheet 'Sheet1' 2021-2022-1.xls XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n' The above testing file is loca

Re: XML Considered Harmful

2021-09-29 Thread Michael F. Stemper
On 28/09/2021 18.21, Greg Ewing wrote: On 29/09/21 4:37 am, Michael F. Stemper wrote: I'm talking about something made from tons of iron and copper that is oil-filled and rotates at 1800 rpm. To avoid confusion, we should rename them "electricity comprehensions". Hah! -- Michael F. Stemper

Re: OT: AttributeError

2021-09-29 Thread Greg Ewing
On 29/09/21 3:03 pm, 2qdxy4rzwzuui...@potatochowder.com wrote: Who thinks in little endian? (I was raised on 6502s and 680XX CPUs; 8080s and Z80s always did things backwards.) The first CPU I wrote code for was a National SC/MP, which doesn't have an endianness, since it never deals with more

XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'

2021-09-29 Thread hongy...@gmail.com
I tried to convert a xls file into csv with the following command, but failed: $ in2csv --sheet 'Sheet1' 2021-2022-1.xls XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n' The above testing file is located at here [1]. [1] https://github.com/hongyi-z

Automated data testing, checking, validation, reporting for data assurance

2021-09-29 Thread Shaozhong SHI
There appear to be a few options for this. Has anyone tested and got experience with automated data testing, validation and reporting? Can anyone enlighten me? Regards, David -- https://mail.python.org/mailman/listinfo/python-list