Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #26315

Re: docx/lxml

Path csiph.com!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <cyrille.leroux@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'attribute': 0.05; 'differently': 0.07; 'pil': 0.07; 'setup.py': 0.07; 'python': 0.09; 'importerror': 0.09; 'mess': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; "wouldn't": 0.11; 'suggest': 0.11; 'packages.': 0.15; '__init__.py': 0.16; 'possibly,': 0.16; 'wrote:': 0.17; 'instance,': 0.17; 'creates': 0.18; 'windows': 0.19; 'module': 0.19; '31,': 0.22; 'doc': 0.22; 'setup.': 0.22; 'cheers,': 0.23; 'installed': 0.23; 'cc:2**1': 0.24; 'linux': 0.24; 'testing': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'cc:addr:gmail.com': 0.27; 'guess': 0.27; '(as': 0.27; 'installing': 0.27; 'subject:/': 0.28; 'environment': 0.29; '(maybe': 0.29; "i'm": 0.29; 'install': 0.29; 'basic': 0.30; 'file': 0.32; '-----': 0.32; 'suggestion': 0.32; 'skip:s 30': 0.33; 'hi,': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'really': 0.36; 'cc:no real name:2**1': 0.36; "didn't": 0.36; 'should': 0.36; 'thank': 0.36; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'object': 0.38; 'end': 0.40; 'think': 0.40; 'your': 0.60; 'july': 0.60; 'easy': 0.60; 'story': 0.61; 'back': 0.62; 'enthusiastic': 0.65; 'jul': 0.65; 'reply': 0.66; 'internet': 0.71; '*easy': 0.84; 'isolated': 0.84; 'pain': 0.84
Newsgroups comp.lang.python
Date Tue, 31 Jul 2012 08:01:48 -0700 (PDT)
In-Reply-To <mailman.2782.1343743230.4697.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=46.218.205.226; posting-account=_emXJAoAAABRE0W7cUMTsqZn_SxaV99k
References <40113c57-5978-45a2-b695-8917706fd268@googlegroups.com> <mailman.2782.1343743230.4697.python-list@python.org>
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-IP 46.218.205.226
MIME-Version 1.0
Subject Re: docx/lxml
From Cyrille Leroux <cyrille.leroux@gmail.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org, cyrille.leroux@gmail.com
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.2786.1343746912.4697.python-list@python.org> (permalink)
Lines 82
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1343746912 news.xs4all.nl 6858 [2001:888:2000:d::a6]:54777
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:26315

Show key headers only | View raw


On Tuesday, July 31, 2012 4:00:25 PM UTC+2, Pedro Kroger wrote:
> On Jul 31, 2012, at 10:36 AM, Cyrille Leroux wrote:
> 
> 
> 
> > - Do you know any *easy to use*, *easy to deploy* package to generate ".doc like" documents ?
> 
> > - Do you have any suggestion to do it differently (maybe with native packages ?)
> 
> > 
> 
> > - As a python newby, I don't understand why you have to go through the pain of installing packages since they should be able to work with just the __init__.py files ? 
> 
> > 
> 
> > Regards,
> 
> > 
> 
> > Cyrille
> 
> 
> 
> Hi,
> 
> 
> 
> May I suggest you use pip and, possibly, virtualenv?
> 
> pip makes it easy to install Python packages while virtualenv creates an isolated Python environment
> 
> 
> 
> For instance, I just installed docx and its dependencies with:
> 
> 
> 
> pip install docx lxml datutils PIL
> 
> 
> 
> And I did that inside a testing virtualenv, so I wouldn't mess up my Python setup.
> 
> 
> 
> pip and virtualenv make it really easy and painless to install Python packages.
> 
> 
> 
> Cheers,
> 
> 
> 
> Pedro
> 
> -----
> 
> http://pedrokroger.net
> 
> http://musicforgeeksandnerds.com


Thank you for your quick reply Pedro.

I'm giving pip a try :


1/ Linux (debian lenny)
- (as root) sh setuptools-0.6c11-py2.7.egg (ok)
- (as root) cd pip-1.1 ; python setup.py install (ok)
- pip : ImportError : No module named pkg_resources
- damn, I guess it's going to be a pain, again
- ... then I remember that anyway, I cannot access internet from my session
- end of story for linux


2/ Back on Windows (7)

- setuptools-0.6c11.win32-py2.7.exe (ok)
- (cmd) easy_install.exe pip : AttributeError : 'NoneType' object has no attribute 'clone'

Well, I think I'm starting to feel less and less enthusiastic about python... I didn't suspect it would be so difficult to write a basic doc file :)

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

docx/lxml cyrille.leroux@gmail.com - 2012-07-31 06:36 -0700
  Re: docx/lxml Pedro Kroger <kroger@pedrokroger.net> - 2012-07-31 11:00 -0300
    Re: docx/lxml Cyrille Leroux <cyrille.leroux@gmail.com> - 2012-07-31 08:01 -0700
    Re: docx/lxml Cyrille Leroux <cyrille.leroux@gmail.com> - 2012-07-31 08:01 -0700
      Re: docx/lxml Stefan Behnel <stefan_ml@behnel.de> - 2012-07-31 17:13 +0200
        Re: docx/lxml Cyrille Leroux <cyrille.leroux@gmail.com> - 2012-07-31 08:51 -0700
        Re: docx/lxml Cyrille Leroux <cyrille.leroux@gmail.com> - 2012-07-31 08:51 -0700

csiph-web