[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: distutils: troubles with install

Robert Kern

12/28/2007 7:12:00 PM

Vladimir Rusinov wrote:
> Hello!
>
> I've written a small app, succesfully packaged it and trying to install.
> I'm getting following error:
> # python setup.py install -n

> running install_data
> error: can't copy 'f': doesn't exist or not a regular file
>
> What the 'f'???

> data_files=[
> ('/etc/', 'files/etc/logmanager.conf'),
> ('/etc/logmanager.d/', 'files/etc/logmanager.d/portage.py')
> ],

These need to be lists.

data_files = [
('/etc/', ['files/etc/logmanager.conf']),
('/etc/logmanager.d/', ['files/etc/logmanager.d/portage.py']),
],

Since distutils is expecting a sequence, it tries to iterate over the string
yielding individual characters, like 'f'.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco