473,793 Members | 2,742 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_basename s = dir(self.metada ta) + \
---
method_basename s = 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************* *************** **********@pyth on.o|
| | rg |
| | |
| | |
| | 21/02/2004 02:48 |
| | |
|---------+--------------------------------------------------->------------------------------------------------------------------------------------------------------------------| | |
| An: py*********@pyt hon.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.comm and'],
File "/root/Downloads/Distutils-1.0.2/distutils/core.py", line 101,
in setup
_setup_distribu tion = dist = klass(attrs)
File "/root/Downloads/Distutils-1.0.2/distutils/dist.py", line 130,
in __init__
setattr(self, method_name, getattr(self.me tadata, method_name))
AttributeError: DistributionMet adata 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 1666

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

Similar topics

0
1714
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
1064
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): .... list = .... for inner in range(1,7): .... if 1: .... list.append(inner) .... foo = "list_" + str(index) + "= list"
0
1313
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 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."
0
1461
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 not in (1, 2, 3)' >>>
2
1663
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 SCONS_LIB_DIR=`pwd`/src/engine python src/script/scons.py build/scons I get after some time
0
1218
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 install running build running build_py running build_ext building '_sqlite' extension C:\PROGRA~1\MICROS~2\VC98\BIN\cl.exe /c /nologo /Ox /MD /W3 /GX
0
1220
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 build command is the correct way to ensure the installation payload is ready, but the two commands support very different sets of user options and it is impossible to combine them: install validates them at the beginning, rejecting user options meant...
0
1182
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 extensions, it complaints that there is no VC2003. Well, IMO, the format of binary files generated by VC2003 and VC2005 is compatible in most cases. What should I do to workaround this error? I mean, disable distutil complaints and use VC2005 to...
1
159
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 cases, the python extension only focus on computational-intensive jobs rather than API-intensive jobs. Therefore it is safe to let VS2003-built python to call VS2005-built extensions with some attentions. When you use distutil to trigger...
0
9518
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
10433
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
10212
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...
0
9035
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6777
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();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4112
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
2
3720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2919
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.