473,395 Members | 1,730 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,395 software developers and data experts.

Antwort: Distutil install problem ['LBBW': checked]


Hi,
what version of python are you using?
I got the same error when invoking a customized, 2-year-old version of
distutils with
python 2.3.3 (instead of 1.5.2, as before). Reason is code in dist.py,
using dir() to
look up the attributes of a class instance. But dir() nowadays also returns
the class methods,
__doc__ etc.
Changing this in the old distutils/dist.py made it work for me, again (line
numbers might be slightly
different for you):
distutils/dist.py
122c122
< method_basenames = dir(self.metadata) + \
---
method_basenames = self.metadata.__dict__.keys() + \
I don´t know what PDO is, but maybe it is also shipped including its own
distutils module, still
using the "old" code and you try running it with an new python interpreter?
Then you might either
- change the local distutils as proposed above or
- use the distutils that comes with the newer python versions (renaming
the distutils dir in your PDO
module should trigger this), which is recommended

Good luck
Holger


|---------+--------------------------------------------------->
| | |
| | |
| | |
| | |
| | Derek Croxton <cr******@yahoo.com> |
| | Gesendet von: |
| | py**************************************@python.o|
| | rg |
| | |
| | |
| | 21/02/2004 02:48 |
| | |
|---------+--------------------------------------------------->------------------------------------------------------------------------------------------------------------------| | |
| An: py*********@python.org |
| Kopie: |
| Thema: Distutil install problem ['LBBW': checked] |------------------------------------------------------------------------------------------------------------------|



I just installed a new Linux distribution (MEPIS) and went to install
PDO and got the error

Traceback (most recent call last):
File "setup.py", line 2, in ?
from distutils.core import setup
ImportError: No module named distutils.core

Undaunted, I downloaded the Distutils package, which is supposed to be
able to install itself with the usual "python setup.py install."
However, when I tried this I got a different error:

File "setup.py", line 30, in ?
packages = ['distutils', 'distutils.command'],
File "/root/Downloads/Distutils-1.0.2/distutils/core.py", line 101,
in setup
_setup_distribution = dist = klass(attrs)
File "/root/Downloads/Distutils-1.0.2/distutils/dist.py", line 130,
in __init__
setattr(self, method_name, getattr(self.metadata, method_name))
AttributeError: DistributionMetadata instance has no attribute
'get___doc__'

I'm still a newbie to Linux and mostly a newbie to Python (5 months
experience). I have a general idea of what this error means, but I have
no idea how to go about fixing it. I would appreciate any solutions
people could offer.

Sincerely,
Derek

--
http://mail.python.org/mailman/listinfo/python-list

+----------------------------------------------------------------------+
| LBBW Security Information |
+----------------------------------------------------------------------+
| - Die Nachricht war weder verschluesselt noch digital unterschrieben |
+----------------------------------------------------------------------+


Der Inhalt dieser E-Mail ist vertraulich. Falls Sie nicht der angegebene
Empfänger sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde,
verständigen Sie bitte den Absender sofort und löschen Sie die E-Mail
sodann. Das unerlaubte Kopieren sowie die unbefugte Übermittlung sind nicht
gestattet. Die Sicherheit von Übermittlungen per E-Mail kann nicht
garantiert werden. Falls Sie eine Bestätigung wünschen, fordern Sie bitte
den Inhalt der E-Mail als Hardcopy an.

The contents of this e-mail are confidential. If you are not the named
addressee or if this transmission has been addressed to you in error,
please notify the sender immediately and then delete this e-mail. Any
unauthorized copying and transmission is forbidden. E-Mail transmission
cannot be guaranteed to be secure. If verification is required, please
request a hard copy version.


Jul 18 '05 #1
0 1645

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

Similar topics

0
by: Christian Seberino | last post by:
how do a post-install command like create a soft link? ..or where add command to setup.py?? I want to create a soft link automagically when user installs this program. Chris
0
by: Holger Joukl | last post by:
You can use the exec statement (note that I set the if-condition to 1=true for the example, and I used different names for outer and inner loop indexes): >>> for index in range(1,4): .... ...
0
by: Derek Croxton | last post by:
I just installed a new Linux distribution (MEPIS) and went to install PDO and got the error Traceback (most recent call last): File "setup.py", line 2, in ? from distutils.core import setup...
0
by: Holger Joukl | last post by:
You could use the str() builtin, returning the string representation of the list object: >>> params = (1, 2, 3) >>> "select * from T where C1 not in %s" % str(params) 'select * from T where C1...
2
by: Helmut Jarausch | last post by:
Hi, I'd like to install SCons (http://www.scons.org) on my Linux box. There, the cvs version of Python is running. Doing as recommended in the README file export...
0
by: mahongquan | last post by:
when i install pysqlite in python2.41,it show error below,and i install other package error also ocur, ,but when i copy the cmdline ,it can run without error,who can help me: ''''' running...
0
by: gatti | last post by:
When building a C extension, Distutils standard command 'install' calls the 'build' command before performing the installation (see Lib/distutils/command/install.py and build.py). Reusing the...
0
by: =?GB2312?B?zPC5zw==?= | last post by:
Howdy, This problem have puzzled me for a long time. I usually use python2.5 in Windows, while VC2005 is installed. However python25.lib is compiled by VC2003. When I use disutil to build some C...
1
by: =?GB2312?B?zPC5zw==?= | last post by:
The problem is not compiler, but runtime. For example, if python is Thank you for providing this document. Indeed, passing internal pointers of one CRT lib to another is dangerous. But in most...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...
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.