New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DistributionMetaData error ? #38204
Comments
I'm trying to create an .exe from python files and got the -------------------------------------------------------------------------------- L:\build\gimini\giminiV15-2-exe\src>c:\python22\python
setup.py py2exe
Traceback (most recent call last):
File "setup.py", line 8, in ?
data_files=[ ( "img",
File "C:\PYTHON22\distutils\core.py", line 101, in setup
_setup_distribution = dist = klass(attrs)
File "C:\PYTHON22\distutils\dist.py", line 130, in
__init__
setattr(self, method_name, getattr(self.metadata,
method_name))
AttributeError: DistributionMetadata instance has no
attribute 'get___doc__' C.Dutoit |
Logged In: YES Is this a bug in python or in py2exe? |
Logged In: YES This seems to be a problem of version. I installed the latest |
I'm running py2exe on python 2.6 and have this error, too. I'm look self.metadata = DistributionMetadata()
method_basenames = dir(self.metadata) + \
['fullname', 'contact', 'contact_email']
for basename in method_basenames:
method_name = "get_" + basename
setattr(self, method_name, getattr(self.metadata, method_name)) I'm printing dir(self.metadata) and get this lines: code in dist.py trying add all methods from metadata to self, even this is my (ugly, i think) code: With this change, all py2exe works work correctly (and i don't try |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: