473,597 Members | 2,804 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

distutils

Hello again,

Is there any patch for python "distutils" , for this
>>from distutils import log,dir_util
ImportError: cannot import name log
Regards,
Vedran

Aug 7 '07 #1
7 4277
ve***********@v-programs.com wrote:
Hello again,

Is there any patch for python "distutils" , for this
>>>from distutils import log,dir_util
ImportError: cannot import name log
What version of Python are you running with? It looks as though there
may be something wrong with your installation if it's recent:

sholden@bigboy ~/Projects/Python
$ python
Python 2.5.1 (r251:54863, May 18 2007, 16:56:43)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright" , "credits" or "license" for more information.
>>from distutils import log
import distutils.log
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------

Aug 7 '07 #2
On 7 kol, 14:53, Steve Holden <st...@holdenwe b.comwrote:
vedrandeko...@v-programs.com wrote:
Hello again,
Is there any patch for python "distutils" , for this
>>from distutils import log,dir_util
ImportError: cannot import name log

What version of Python are you running with? It looks as though there
may be something wrong with your installation if it's recent:

sholden@bigboy ~/Projects/Python
$ python
Python 2.5.1 (r251:54863, May 18 2007, 16:56:43)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright" , "credits" or "license" for more information.
>>from distutils import log
>>import distutils.log
>>>

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------
Hello,

My version of python is 2.4 and I'am running it with Windows XP

Aug 7 '07 #3
ve***********@v-programs.com wrote:
On 7 kol, 14:53, Steve Holden <st...@holdenwe b.comwrote:
>vedrandeko...@ v-programs.com wrote:
>>Hello again,
Is there any patch for python "distutils" , for this
>from distutils import log,dir_util
ImportError : cannot import name log
What version of Python are you running with? It looks as though there
may be something wrong with your installation if it's recent:

sholden@bigb oy ~/Projects/Python
$ python
Python 2.5.1 (r251:54863, May 18 2007, 16:56:43)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright" , "credits" or "license" for more information.
> >>from distutils import log
import distutils.log
Hello,

My version of python is 2.4 and I'am running it with Windows XP
Your installation must be corrupted, then:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Steve>\pytho n24\python
Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright" , "credits" or "license" for more information.
>>from distutils import log

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------

Aug 7 '07 #4
On 7 kol, 18:00, Steve Holden <st...@holdenwe b.comwrote:
vedrandeko...@v-programs.com wrote:
On 7 kol, 14:53, Steve Holden <st...@holdenwe b.comwrote:
vedrandeko...@v-programs.com wrote:
Hello again,
Is there any patch for python "distutils" , for this
from distutils import log,dir_util
ImportError: cannot import name log
What version of Python are you running with? It looks as though there
may be something wrong with your installation if it's recent:
sholden@bigboy ~/Projects/Python
$ python
Python 2.5.1 (r251:54863, May 18 2007, 16:56:43)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright" , "credits" or "license" for more information.
>>from distutils import log
>>import distutils.log
Hello,
My version of python is 2.4 and I'am running it with Windows XP

Your installation must be corrupted, then:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Steve>\pytho n24\python
Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright" , "credits" or "license" for more information.
>>from distutils import log
>>>

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------
Hi,

Is there any other solution I need this for script installing with
setuptools,now I was install and Python 2.5 too,but same error
again.

PS: I was try your previously example also:

cd c:\Python24\pyt hon

then:
>>from distutils import log - but same error again
any other solution?

Regards,
Vedran

Aug 7 '07 #5
ve***********@v-programs.com wrote:
Hello again,

Is there any patch for python "distutils" , for this
>>>from distutils import log,dir_util
ImportError: cannot import name log
Regards,
Vedran
Are you sure you haven't written a module yourself called distutils.py ?
(that one will hide the standard distutils module)

--irmen
Aug 7 '07 #6
On 7 kol, 19:37, Irmen de Jong <irmen.NOS...@x s4all.nlwrote:
vedrandeko...@v-programs.com wrote:
Hello again,
Is there any patch for python "distutils" , for this
>>from distutils import log,dir_util
ImportError: cannot import name log
Regards,
Vedran

Are you sure you haven't written a module yourself called distutils.py ?
(that one will hide the standard distutils module)

--irmen

I was search for all distutils files and folders and I'am sure there
is no distutils except "c:\Python24\Li b\distutils"

Regards,
Vedran

Aug 7 '07 #7
ve***********@v-programs.com wrote:
On 7 kol, 19:37, Irmen de Jong <irmen.NOS...@x s4all.nlwrote:
>Are you sure you haven't written a module yourself called distutils.py ?
(that one will hide the standard distutils module)
I was search for all distutils files and folders and I'am sure there
is no distutils except "c:\Python24\Li b\distutils"
What does
>>import distutils
distutils.__f ile__
'/usr/lib/python2.5/distutils/__init__.pyc'

print on your machine?

Peter

Aug 7 '07 #8

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

Similar topics

3
1965
by: Isaac Jones | last post by:
Hello Python Community. I bring greetings from the Haskell community (http://www.haskell.org) ;) There has been a lot of discussion of late about creating a grand-unified build & distribution system for "3rd party" Haskell libraries (those not distributed with the compilers). Python's Distutils has come up a few times. The Haskell Library Infrastructure Project's web page is just a wiki page which can be found here:...
1
2649
by: Mathieu Malaterre | last post by:
Hello, I thought this would be easy but I guess I didn't get the distutil feeling. I am trying to write a setup for install my package but I don't understand how to do that. organisation: setup.py /bin/
15
4113
by: Colin J. Williams | last post by:
The distutils download page has: -------------------------------------------------------- Current stable release The current stable release is Distutils 1.0.2; you can download it as: * Distutils-1.0.2.tar.gz (source distribution) (233k) * Distutils-1.0.2.zip (source distribution) (274k) * Distutils-1.0.2.win32.exe (Windows installer) (187k)
1
1709
by: Terry Hancock | last post by:
Some time ago, I got the idea that I wanted to build image resources from vector graphic originals, instead of marshalling hundreds of tiny little icon images by hand. I wrote "BuildImage" to do this for me, and so far, it works very well, so I'm trying to make it easier to use and available to more developers. There is a brief (and somewhat dated) tutorial explaining what BuildImage itself does at:
7
2298
by: Frans Englich | last post by:
This is silly. How do I access data files I've installed with distutils? In a portable, generic way, I want to find out what is the following path on most systems: /usr/local/lib/python2.4/lib/site-packages/foo/bar.txt How do I figure out the rest, if I know foo/bar.txt? sys.prefix doesn't get me far. I've googled, and looked in the python reference. I must be blind if the
0
1865
by: Maarten Sneep | last post by:
I'm trying to build PyBison on Mac OS X, and I'm running into some problems with the distutils. Just for starters: PyBison requires Pyrex. This is not a problem, and Pyrex seems to work without problems, at least the primes sample module shows a nice 25 to 30 fold speed increase over the pure python version. I used the distutils to create the module from the primes.pyx sample, following the setup.py from the PyBison distrubution:
1
2145
by: George van den Driessche | last post by:
Hi folks, I'm looking at packaging a project I'm working on using distutils. The project is for Windows and contains a COM server which needs registration, so the installer needs to be a little more complicated than usual. Looking at the options for the bdist_wininst command to distutils, I see it's possible to specify --install-script=<myinstallscript> which ought to do the trick. But to use this, myinstallscript itself must first be...
6
2339
by: ajikoe | last post by:
Hello I tried to combine c++ and python together. So I follow from this website: http://kortis.to/radix/python_ext/ I have this code: # prmodule.c static PyObject *pr_isprime(PyObject *self, PyObject *args){ int n, input; if (!PyArg_ParseTuple(args, "i", &input))
0
1455
by: newbie73 | last post by:
OS: Vista Python 2.5.2.2 (ActiveState Software Installation) Running latest Cygwin release The error generated is pasted below - please help. - Luis ***************************************
0
7894
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
8284
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
8392
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
8262
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5847
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5437
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
3938
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2410
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
1
1500
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.