Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 82 results for
xlwt
- Page 1
XLWT: IO Error[Errno 22]
Programming
Software Development
16 Years Ago
by Bidamin
…filename, self.get_biff_data()) File "C:\Python26\lib\site-packages\
xlwt
\CompoundDoc.py", line 507, in save f = open(…''' def EDIT(self,new_book_path): bk = self.BOOK.sheet_by_index(0) new_book =
xlwt
.Workbook() new_sheet = new_book.add_sheet(bk.name) self.reversePrinter(self.edit…
Re: need help using python spreadsheet xlwt
Programming
Software Development
13 Years Ago
by ozzyx123
…from itertools import takewhile from operator import methodcaller import
xlwt
detach_dir = '/Users/defaultuser/Desktop' # directory …0].split() # getting the mails id book =
xlwt
.Workbook(encoding="utf-8") sheet1 = book… # All you code upto line 16 .... book =
xlwt
.Workbook(encoding="utf-8") sheet1 = book.add_sheet…
need help using python spreadsheet xlwt
Programming
Software Development
13 Years Ago
by ozzyx123
…i inpt this information in a table using
xlwt
. so that each i can create a …re from itertools import takewhile from operator import methodcaller import
xlwt
detach_dir = '/Users/defaultuser/Desktop' # directory where … %s: %i pages' % (f,pages)) book =
xlwt
.Workbook(encoding="utf-8") sheet1 = book.add_sheet("…
Re: need help using python spreadsheet xlwt
Programming
Software Development
13 Years Ago
by britanicus
… contain errors ) : [CODE] # All you code upto line 16 .... book =
xlwt
.Workbook(encoding="utf-8") sheet1 = book.add_sheet("…
Help using xlwt format module
Programming
Software Development
13 Years Ago
by jarograv
…. If anybody can provide me with code or explain the
xlwt
module better than their help manuals do that would be…
Re: XLWT: IO Error[Errno 22]
Programming
Software Development
16 Years Ago
by slate
Try to save the file to the path. Maybe you don't have "enough" backslash... [code] def test_path(p): f=open(p,"w") f.write("test\n") f.close() [/code]
Re: XLWT: IO Error[Errno 22]
Programming
Software Development
16 Years Ago
by Bidamin
i changed the input a little, IOError: [Errno 22] invalid mode ('wb') or filename: u'C:\\Documents and Settings\\pastesa\\Desktop\\XLedit\\testy.xls' is that enough backslashes? i tried printing the file path also and go this C:\Documents and Settings\pastesa\Desktop\XLedit\testy.xls
Re: XLWT: IO Error[Errno 22]
Programming
Software Development
16 Years Ago
by slate
Can you run the test code I have given before?
Re: need help using python spreadsheet xlwt
Programming
Software Development
13 Years Ago
by britanicus
Oh sorry... That was my mistake. You need to define [ICODE]row = 1[/ICODE] before the first for loop, i.e before line 28. Also I did notice that an improperly formatted pdf file or just any file with an extension as .pdf will give raise to an error on line number 106. Probably try-expect loop will help you deal with the error. [CODE] Traceback …
Re: need help using python spreadsheet xlwt
Programming
Software Development
13 Years Ago
by ozzyx123
[QUOTE=britanicus;1778275]Oh sorry... That was my mistake. You need to define [ICODE]row = 1[/ICODE] before the first for loop, i.e before line 28. Also I did notice that an improperly formatted pdf file or just any file with an extension as .pdf will give raise to an error on line number 106. Probably try-expect loop will help you deal with the …
Re: Help using xlwt format module
Programming
Software Development
13 Years Ago
by woooee
[QUOTE=;][/QUOTE] Although we don't know the format of the file, this is probably a never-ending loop as you are iterating over, and appending to, the same list. [code]for data in citynames: citynames.append(data[0])[/code]Run this snippit as it limits the list to a length of 100, instead of an infinite loop. [CODE]x = [ 1, 2, 3 ] for ctr, …
Re: Help using xlwt format module
Programming
Software Development
13 Years Ago
by woooee
[QUOTE=;][/QUOTE] Using the datetime module is an easy way to subtract one time value from another IMHO. [code]import datetime # subtract 10:02:59 from 12:01:02 difference = datetime.datetime(2011, 5, 11, 12, 1, 2) - \ datetime.datetime(2011, 5, 11, 10, 2, 59) print "the difference is %s" % (str(difference)) # # …
unicode encoding in script
Programming
Software Development
15 Years Ago
by somekid413
…get_biff_data()) File "C:\Python25\lib\site-packages\
xlwt
\Workbook.py", line 609, in get_biff_data shared_str_table …__sst_rec() File "C:\Python25\lib\site-packages\
xlwt
\Workbook.py", line 571, in __sst_rec …() File "C:\Python25\Lib\site-packages\
xlwt
\BIFFRecords.py", line 53, in get_biff_record…
Choose data from de models class.
Programming
Software Development
14 Years Ago
by AlexMessi10
…request): book =
xlwt
.Workbook(encoding='utf8') sheet = book.add_sheet('untitled') default_style =
xlwt
.Style.default_style datetime_style =
xlwt
.easyxf(num_format_str='dd/mm…/yyyy hh:mm') date_style =
xlwt
.easyxf(num_format_str='dd/mm…
How to install modules?
Programming
Software Development
9 Years Ago
by Mark54
… to install certain non-standard modules... lxml, requests and
xlwt
from http://lxml.de/ http://docs.python-requests.org/en…/latest/ https://pypi.python.org/pypi/
xlwt
Trying to install that first one, LXML, I went … a CMD window, but nothing worked. The 3rd one,
XLWT
, says... *Do the following in your virtualenv: pip install…
How to write to Excel using Python?
Programming
Software Development
14 Years Ago
by tcl76
hi, i found a module called
xlwt
([url]http://www.python-excel.org/[/url]) that can write … python to do this task? tq [CODE] import
xlwt
# Create workbook and worksheet wbk =
xlwt
.Workbook() sheet = wbk.add_sheet('python') row = 0…
query a txt file and write the output to xls in python
Programming
Software Development
14 Years Ago
by tax
… bad bad valid I tried to work that out with
xlwt
but couldn't. Actually, I started used the following code… couldn't even split the line for further processing: import
xlwt
wbk =
xlwt
.Workbook() sheet = wbk.add_sheet('sheet 1') row = 0 f…
Re: HELP! creating a spreadsheet and input information from python output
Programming
Software Development
13 Years Ago
by ozzyx123
…For this type [code=text] sudo pip install
xlwt
[/code] in a terminal (with a working … from itertools import takewhile from operator import methodcaller import
xlwt
detach_dir = '/Users/defaultuser/Desktop' # directory where …%s: %i pages' % (f,pages)) book =
xlwt
.Workbook(encoding="utf-8") sheet1 = book.add_sheet(&…
Need help please!!! Python code driving me crazzy!
Programming
Software Development
13 Years Ago
by ozzyx123
…write the output onto a .xls file using
xlwt
. the problem is that even though i …re from itertools import takewhile from operator import methodcaller import
xlwt
detach_dir = '/Users/defaultuser/Desktop' # directory where to…items[0].split() # getting the mails id book =
xlwt
.Workbook(encoding="utf-8") sheet1 = book.add_sheet(&…
Re: How to install modules?
Programming
Software Development
9 Years Ago
by vegaseat
…/pythonlibs/ download (under Misc at the bottom of the page) ...
xlwt
-1.0.0-py2.py3-none-any.whl that works… is your user name) ... pip install C:/Users/xxxxx/Downloads/
xlwt
-1.0.0-py2.py3-none-any.whl
Re: How to install modules?
Programming
Software Development
9 Years Ago
by Mark54
… versions of LXML or REQUESTS, and it doesn't have
XLWT
, and I'd rather not download all of that other… the end. I'll assume those were just warnings. The
XLWT
install Worked! THANKS Very Much. So, does this mean that…
Python 3.7 filter text file lines and set results into an excel cell
Programming
Software Development
6 Years Ago
by Gustavo_7
… row3 = st3 + "\n" print(row3) workbook =
xlwt
.Workbook() worksheet = workbook.add_sheet('Test') style_string = "font: bold… on" style =
xlwt
.easyxf(style_string) worksheet.write(0, 0, 'Name', style=style)…
Re: How to write to Excel using Python?
Programming
Software Development
14 Years Ago
by richieking
… to provide to collumn info too. [CODE]import
xlwt
# Create workbook and worksheet wbk =
xlwt
.Workbook() sheet = wbk.add_sheet('python') row = 0…
Memory leak in the script
Programming
Software Development
16 Years Ago
by rajaram_l20
….2. When I tried to run a script which imports
xlwt
and creates a workbook, huge memory is being used and… happen only when using site-packages. I have tried importing
xlwt
, reportlab, pyExcelarator, xlrd which gives me the same problem. I…
Re: Memory leak in the script
Programming
Software Development
16 Years Ago
by Gribouillis
A solution is not to import your library
xlwt
but to start a child process which will import the … a module like pyro. When you are done with the
xlwt
, you terminate the child process and the memory is freed…
Problem with re.findall() module (stops afther 4 times)
Programming
Software Development
13 Years Ago
by sinnebril
… the Excel sheet used in this test) import xlrd import
xlwt
import re # inputfile: wb = xlrd.open_workbook('Test_input.xls') #Get the….nrows, sh.ncols) # Create a output workbook and worksheet wbk =
xlwt
.Workbook() sheet_total = wbk.add_sheet('names total') sheet_split = wbk.add_sheet('names…
Convert text files to excel files
Programming
Software Development
11 Years Ago
by rahim_1
…if isfile(join(mypath,f)) and '.txt' in f] import
xlwt
import xlrd for textfile in textfiles: f = open(textfile, '… f: row_list.append(row.split('|')) column_list = zip(*row_list) workbook =
xlwt
.Workbook() worksheet = workbook.add_sheet('Sheet1') i = 0 for column in…
Re: Convert text files to excel files
Programming
Software Development
11 Years Ago
by rahim_1
…if isfile(join(mypath,f)) and '.txt' in f] import
xlwt
import xlrd for textfile in textfiles: f = open(textfile, '… f: row_list.append(row.split('|')) column_list = zip(*row_list) workbook =
xlwt
.Workbook() worksheet = workbook.add_sheet('Sheet1') i = 0 for column in…
Search *.txt files in sub folder and append to single Excel file
Programming
Software Development
6 Years Ago
by SaRaVaNaN_2
import csv import
xlwt
import os import sys #import openpyxl # Look for input file ….path.join(targetoutputpath, basefilename_noext+'.xls') # Create a workbook object workbook =
xlwt
.Workbook() # Add a sheet object worksheet = workbook.add_sheet(basefilename_noext, cell_overwrite_ok…
Re: HELP! creating a spreadsheet and input information from python output
Programming
Software Development
13 Years Ago
by Gribouillis
… pip installer. For this type [code=text] sudo pip install
xlwt
[/code] in a terminal (with a working internet connection). If…
1
2
3
Next
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC