473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

pyXLWriter warnings

Platform: winXP, excel 2003
Python 2.5.2
XLWriter 0.4a3 (http://sourceforge.net/projects/pyxlwriter/)

Is anyone here using this very nice package, for writing excel files?
I'm using it on python 2.5.2. (although it is made for older version
of python) and cannot find a way to get rid of this error (code and
errors below).

Does anyone know how to avoid it ? I would appreciate all help and
ideas you can think of.

Bob
--------
>>import pyXLWriter as xl
workbook = xl.Writer("test.xls")
worksheet = workbook.add_worksheet('first')
worksheet.write([3,3], "Hello doc !")
worksheet.write_comment([3,3], "I'm hunting for a wabbit")
0
>>workbook.close()
--------
Warning (from warnings module):
File "C:\Python25\lib\site-packages\pyXLWriter\OLEWriter.py", line
135
unknown3 = pack("<H", -2)
DeprecationWarning: struct integer overflow masking is deprecated

Warning (from warnings module):
File "C:\Python25\lib\site-packages\pyXLWriter\OLEWriter.py", line
135
unknown3 = pack("<H", -2)
DeprecationWarning: 'H' format requires 0 <= number <= 65535

Warning (from warnings module):
File "C:\Python25\lib\site-packages\pyXLWriter\OLEWriter.py", line
141
sbd_startblock = pack("<L", -2)
DeprecationWarning: struct integer overflow masking is deprecated

Warning (from warnings module):
File "C:\Python25\lib\site-packages\pyXLWriter\OLEWriter.py", line
142
unknown7 = pack("<LLL", 0x00, -2 ,0x00)
DeprecationWarning: struct integer overflow masking is deprecated

Warning (from warnings module):
File "C:\Python25\lib\site-packages\pyXLWriter\OLEWriter.py", line
143
unused = pack("<L", -1)
DeprecationWarning: struct integer overflow masking is deprecated

Warning (from warnings module):
File "C:\Python25\lib\site-packages\pyXLWriter\OLEWriter.py", line
205
pps_prev = pack("<L", -1) #0x44
DeprecationWarning: struct integer overflow masking is deprecated

Warning (from warnings module):
File "C:\Python25\lib\site-packages\pyXLWriter\OLEWriter.py", line
206
pps_next = pack("<L", -1) #0x48
DeprecationWarning: struct integer overflow masking is deprecated

Warning (from warnings module):
File "C:\Python25\lib\site-packages\pyXLWriter\OLEWriter.py", line
213
pps_sb = pack("<L", sb) #0x74
DeprecationWarning: struct integer overflow masking is deprecated

Warning (from warnings module):
File "C:\Python25\lib\site-packages\pyXLWriter\OLEWriter.py", line
207
pps_dir = pack("<L", dir) #0x4c
DeprecationWarning: struct integer overflow masking is deprecated

Warning (from warnings module):
File "C:\Python25\lib\site-packages\pyXLWriter\OLEWriter.py", line
168
marker = pack("<L", -3)
DeprecationWarning: struct integer overflow masking is deprecated

Warning (from warnings module):
File "C:\Python25\lib\site-packages\pyXLWriter\OLEWriter.py", line
169
end_of_chain = pack("<L", -2)
DeprecationWarning: struct integer overflow masking is deprecated

Warning (from warnings module):
File "C:\Python25\lib\site-packages\pyXLWriter\OLEWriter.py", line
170
unused = pack("<L", -1)
DeprecationWarning: struct integer overflow masking is deprecated
>>>
Sep 29 '08 #1
1 2494
On Sep 30, 9:09*am, Robert Singer <rsinger@____.comwrote:
Platform: winXP, excel 2003
Python 2.5.2
XLWriter 0.4a3 (http://sourceforge.net/projects/pyxlwriter/)

Is anyone here using this very nice package, for writing excel files?
I'm using it on python 2.5.2. (although it is made for older version
of python) and cannot find a way to get rid of this error (code and
errors below).

Does anyone know how to avoid it ? I would appreciate all help and
ideas you can think of.

Bob
--------
>import pyXLWriter as xl
workbook = xl.Writer("test.xls")
worksheet = workbook.add_worksheet('first')
worksheet.write([3,3], "Hello doc !")
worksheet.write_comment([3,3], "I'm hunting for a wabbit")
0
>workbook.close()

--------
Warning (from warnings module):
* File "C:\Python25\lib\site-packages\pyXLWriter\OLEWriter.py", line
135
* * unknown3 = pack("<H", -2)
DeprecationWarning: struct integer overflow masking is deprecated

Warning (from warnings module):
* File "C:\Python25\lib\site-packages\pyXLWriter\OLEWriter.py", line
135
* * unknown3 = pack("<H", -2)
DeprecationWarning: 'H' format requires 0 <= number <= 65535
[big snip of similar messages]

There is not much point in working on pyXLWriter source; the package
is abandonware ** 2. Although I can't find it now, I recall reading a
recommendation from its author (Evgeny Filatov) that its users migrate
to pyExcelerator. Unfortunately pyExcelerator has not been maintained
for some time now. However Chris Withers of Simplistix and I have
created xlwt, a fork of pyExcelerator; Chris is hosting the SVN repo
and I am maintaining it. We now have a public release out of the door
(http://pypi.python.org/pypi/xlwt/).

There is only one task remaining AFAIK to meet the initial goal of
providing the equivalent of (pyExcelerator last released version + all
sensible patches included + all known [and several unknown] bugs fixed
+ an easier way of specifying cell formatting ("easyxf")) -- this is
support for 3D references i.e. to other worksheets in the same
workbook. Christophe Tronche has adapted Ruben Mendes' pyExcelerator
patch to xlwt, and it's currently undergoing testing.

You may like to check out the python-excel newsgroup at
http://groups.google.com/group/python-excel ...

HTH,
John
Sep 30 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Kylotan | last post by:
I have the following code: def IntToRandFloat(x): """Given a 32-bit integer, return a float in """ x = int(x) x = int(x << 13) ^ x return...
2
by: Richard Shea | last post by:
Hi - Anyone out there who has a simple example using pyXLWriter (http://sourceforge.net/projects/pyxlwriter/) they are willing to share with the group ? I'm interested in creating a .XLS which...
0
by: Richard Shea | last post by:
Hi - After I posted "pyXLWriter - simple example code ?" I wrote to Evgeny Filatov (the writer of pyXLWriter) and he has very kindly pointed me in the right direction for examples etc (the...
0
by: elbertlev | last post by:
Hi! I was using pyXLwriter in C-python, but recently had to code in jython. Tried to port pyXLwriter to jython and it does not work. Did somebody uset this module with jython?
3
by: Terry Richards | last post by:
mysql 4.1.9-standard how do i find exactly what the warnings are when i only get Query OK, 1 row affected, 1 warning (0.00 sec) :-)^2
22
by: John Fisher | last post by:
void f(int p) { } Many (most?) compilers will report that p is unreferenced here. This may not be a problem as f may have to match some common prototype. Typically pointers to functions are...
5
by: Luis P. Mendes | last post by:
Hi, I know that pyExelerator is the supported project now, but I can't use it because I'd need it to generate files from a web platform. Since I can not save a file to a file-like object, I have...
6
by: pete142 | last post by:
When I compile this code: typedef unsigned char BYTE; BYTE * IpString(unsigned int ip) { static BYTE ipString; ipString = (BYTE) 0xff & (ip >24); ipString = (BYTE) 0xff & (ip >16);
3
by: gil | last post by:
Hi, I'm trying to find the best way to work with compiler warnings. I'd like to remove *all* warnings from the code, and playing around with the warning level, I've noticed that compiling with...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.