473,395 Members | 2,795 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.

Python script setup

Hi all,

When I want setup my script:

I write:

from distutils.core import setup
setup(name="myscript",
version='1.0',
scripts=["myscripts.py"])

or some else example,error is
Traceback (most recent call last):
File "<pyshell#5>", line 1, in -toplevel-
setup(name="myscript",
version='1.0',
scripts=["myscripts.py"])
File "C:\Python24\distutils\core.py", line 101, in setup
_setup_distribution = dist = klass(attrs)
File "C:\Python24\distutils\dist.py", line 130, in __init__
setattr(self, method_name, getattr(self.metadata, method_name))
AttributeError: DistributionMetadata instance has no attribute
'get___doc__'

Aug 11 '06 #1
1 1894

2Good4You-Veki(Cro) wrote:
Hi all,

When I want setup my script:

I write:

from distutils.core import setup
setup(name="myscript",
version='1.0',
scripts=["myscripts.py"])

or some else example,error is
Traceback (most recent call last):
File "<pyshell#5>", line 1, in -toplevel-
Do you get the same result if you put those Python statements in a file
(typically named setup.py) and run it in the Windows "Command Prompt"
window as shown in the manual:

http://docs.python.org/inst/standard-install.html

instead of using pyshell? Where/how are you supplying the "install"
argument when using pyshell?
setup(name="myscript",
version='1.0',
scripts=["myscripts.py"])
File "C:\Python24\distutils\core.py", line 101, in setup
My distutils is where I'd expect it to be (C:\Python24\Lib\distutils)
because that's where the standard Python installation puts it relative
to my choice of the Python installation directory (C:\Python24).
How did yours end up like that? Did you download distutils and install
it as a separate package? If so, how did you install it?
What version of Python are you using?
_setup_distribution = dist = klass(attrs)
File "C:\Python24\distutils\dist.py", line 130, in __init__
setattr(self, method_name, getattr(self.metadata, method_name))
AttributeError: DistributionMetadata instance has no attribute
'get___doc__'
HTH,
John

Aug 11 '06 #2

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

Similar topics

4
by: Logan | last post by:
Several people asked me for the following HOWTO, so I decided to post it here (though it is still very 'alpha' and might contain many (?) mistakes; didn't test what I wrote, but wrote it - more or...
5
by: Ben Finney | last post by:
Howdy all, I'm experimenting with carrying my personal computing environment around on a keychain USB flash storage device. I have the usual suspects on there: SSH keys, GPG keys, program...
5
by: Fuzzyman | last post by:
Python 2.4 is built with Microsoft Visiual C++ 7. This means that it uses msvcr7.dll, which *isn't* a standard part of the windows operating system. This means that if you build a windows installer...
2
by: Cathy Hui | last post by:
I am trying to install MySQL-Python 0.9.1 on my Solaris 8 system. The system has Python 2.3.3 and Mysql 4.0.21 installed. This is where I downloaded the distribution of the Mysql-python...
6
by: baoilleach | last post by:
Dear all, Can anyone point me to a resource that describes the best way of organising a python project? My project (gausssum.sf.net) is based around a class, and has a GUI that allows...
1
by: moishyyehuda | last post by:
Hi #1 How do I open a script from another script. #2 when I run the script how can I supply commands to the script. #3 how do I find the what commands the script needs. The thing is like...
34
by: Ben Sizer | last post by:
I've installed several different versions of Python across several different versions of MS Windows, and not a single time was the Python directory or the Scripts subdirectory added to the PATH...
15
by: kyosohma | last post by:
Hi, I am trying to get a small group of volunteers together to create Windows binaries for any Python extension developer that needs them, much like the package/extension builders who volunteer...
7
by: Anthony | last post by:
Hi, I'm a FoxPro programmer, but I want to learn python before it's too late. I do a lot of statistical programming, so I import SPSS into python. In my opinion, the best features of Visual...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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
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...
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...

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.