473,761 Members | 8,011 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_wo rksheet('first' )
worksheet.wri te([3,3], "Hello doc !")
worksheet.wri te_comment([3,3], "I'm hunting for a wabbit")
0
>>workbook.clos e()
--------
Warning (from warnings module):
File "C:\Python25\li b\site-packages\pyXLWr iter\OLEWriter. py", line
135
unknown3 = pack("<H", -2)
DeprecationWarn ing: struct integer overflow masking is deprecated

Warning (from warnings module):
File "C:\Python25\li b\site-packages\pyXLWr iter\OLEWriter. py", line
135
unknown3 = pack("<H", -2)
DeprecationWarn ing: 'H' format requires 0 <= number <= 65535

Warning (from warnings module):
File "C:\Python25\li b\site-packages\pyXLWr iter\OLEWriter. py", line
141
sbd_startblock = pack("<L", -2)
DeprecationWarn ing: struct integer overflow masking is deprecated

Warning (from warnings module):
File "C:\Python25\li b\site-packages\pyXLWr iter\OLEWriter. py", line
142
unknown7 = pack("<LLL", 0x00, -2 ,0x00)
DeprecationWarn ing: struct integer overflow masking is deprecated

Warning (from warnings module):
File "C:\Python25\li b\site-packages\pyXLWr iter\OLEWriter. py", line
143
unused = pack("<L", -1)
DeprecationWarn ing: struct integer overflow masking is deprecated

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

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

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

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

Warning (from warnings module):
File "C:\Python25\li b\site-packages\pyXLWr iter\OLEWriter. py", line
168
marker = pack("<L", -3)
DeprecationWarn ing: struct integer overflow masking is deprecated

Warning (from warnings module):
File "C:\Python25\li b\site-packages\pyXLWr iter\OLEWriter. py", line
169
end_of_chain = pack("<L", -2)
DeprecationWarn ing: struct integer overflow masking is deprecated

Warning (from warnings module):
File "C:\Python25\li b\site-packages\pyXLWr iter\OLEWriter. py", line
170
unused = pack("<L", -1)
DeprecationWarn ing: struct integer overflow masking is deprecated
>>>
Sep 29 '08 #1
1 2515
On Sep 30, 9:09*am, Robert Singer <rsinger@____.c omwrote:
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_wo rksheet('first' )
worksheet.writ e([3,3], "Hello doc !")
worksheet.writ e_comment([3,3], "I'm hunting for a wabbit")
0
>workbook.close ()

--------
Warning (from warnings module):
* File "C:\Python25\li b\site-packages\pyXLWr iter\OLEWriter. py", line
135
* * unknown3 = pack("<H", -2)
DeprecationWarn ing: struct integer overflow masking is deprecated

Warning (from warnings module):
* File "C:\Python25\li b\site-packages\pyXLWr iter\OLEWriter. py", line
135
* * unknown3 = pack("<H", -2)
DeprecationWarn ing: '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
2207
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 (1.0-((x*(x*x*15731+789221)+1376312589)&0x7fffffff)/1073741824.0) Basically it's a function directly copied from a C implementation. Now
2
4729
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 has multiple sheets within the workbook but I'm having real trouble getting started, I can create a Worksheet but can't figure out how to save it. thanks
0
1472
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 Win32.zip download of pyXLWriter doesn't have the example code which the other download does). So feel free to post your examples, I'd be interested to see them but I've got what I needed to get me started. regards richard.
0
1150
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
5787
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
8317
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 involved. For a long time I have used
5
1724
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 to use pyXLWriter. The problems are: 1- how to turn off/on the grid lines of each sheet? 2- I tried to build a simple 'if' formula but couldn't. Is it my problem or pyXLWriter's problem? If the former, is it possible to post
6
1910
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
3195
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 /W3 I get warnings that with /W4 are shown as remarks, e.g.: warning #177: variable "Foo" was declared but never referenced ....is displayed as a "remark #177" with /W4. That doesn't fit the
0
9554
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9376
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10136
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9988
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9923
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9811
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6640
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3911
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.