Skip to content

setuptools 5.1 installation on AIX 7 with python 64bit does not work #225

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

Closed
ghost opened this issue Jun 19, 2014 · 8 comments
Closed

setuptools 5.1 installation on AIX 7 with python 64bit does not work #225

ghost opened this issue Jun 19, 2014 · 8 comments

Comments

@ghost
Copy link

ghost commented Jun 19, 2014

Originally reported by: Anonymous


Hello,

I have no luck installing setuptools with python 2.7.7 64bit, however on the same machine with the 32bit version python it worked ok.
Here is my output:

This box has no internet access so usually I just use the setup.py facility to build and install!

#python setup.py build
running build
running build_py

#python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to setuptools.egg-info/requires.txt
writing setuptools.egg-info/PKG-INFO
writing top-level names to setuptools.egg-info/top_level.txt
writing dependency_links to setuptools.egg-info/dependency_links.txt
writing entry points to setuptools.egg-info/entry_points.txt
Traceback (most recent call last):
  File "setup.py", line 218, in <module>
    dist = setuptools.setup(**setup_params)
  File "/usr/local/Python-2.7.7/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/local/Python-2.7.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/local/Python-2.7.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/tmp/python_modules/setuptools-5.1/setuptools/command/install.py", line 65, in run
    self.do_egg_install()
  File "/tmp/python_modules/setuptools-5.1/setuptools/command/install.py", line 107, in do_egg_install
    self.run_command('bdist_egg')
  File "/usr/local/Python-2.7.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/local/Python-2.7.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/tmp/python_modules/setuptools-5.1/setuptools/command/bdist_egg.py", line 148, in run
    self.run_command("egg_info")
  File "/usr/local/Python-2.7.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/local/Python-2.7.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/tmp/python_modules/setuptools-5.1/setuptools/command/egg_info.py", line 164, in run
    self.find_sources()
  File "/tmp/python_modules/setuptools-5.1/setuptools/command/egg_info.py", line 187, in find_sources
    mm.run()
  File "/tmp/python_modules/setuptools-5.1/setuptools/command/egg_info.py", line 271, in run
    self.add_defaults()
  File "/tmp/python_modules/setuptools-5.1/setuptools/command/egg_info.py", line 303, in add_defaults
    rcfiles = list(walk_revctrl())
  File "/tmp/python_modules/setuptools-5.1/setuptools/command/sdist.py", line 19, in walk_revctrl
    for item in ep.load()(dirname):
  File "/tmp/python_modules/setuptools-5.1/setuptools/command/sdist.py", line 66, in _default_revctrl
    for item in finder(dirname):
  File "/tmp/python_modules/setuptools-5.1/setuptools/svn_utils.py", line 468, in svn_finder
    info = SvnInfo.load(dirname)
  File "/tmp/python_modules/setuptools-5.1/setuptools/svn_utils.py", line 264, in load
    with TemporaryDirectory() as tempdir:
  File "/tmp/python_modules/setuptools-5.1/setuptools/py31compat.py", line 30, in __init__
    self.name = tempfile.mkdtemp()
  File "/usr/local/Python-2.7.7/lib/python2.7/tempfile.py", line 325, in mkdtemp
    dir = gettempdir()
  File "/usr/local/Python-2.7.7/lib/python2.7/tempfile.py", line 269, in gettempdir
    tempdir = _get_default_tempdir()
  File "/usr/local/Python-2.7.7/lib/python2.7/tempfile.py", line 197, in _get_default_tempdir
    fd = _os.open(filename, flags, 0o600)
OverflowError: signed integer is greater than maximum
#

Thanks!


@ghost
Copy link
Author

ghost commented Jun 21, 2014

Original comment by philip_thiem (Bitbucket: philip_thiem, GitHub: Unknown):


#!bash

#python setup.py build
running build
running build_py

#python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to setuptools.egg-info/requires.txt
writing setuptools.egg-info/PKG-INFO
writing top-level names to setuptools.egg-info/top_level.txt
writing dependency_links to setuptools.egg-info/dependency_links.txt
writing entry points to setuptools.egg-info/entry_points.txt
Traceback (most recent call last):
  File &quot;setup.py&quot;, line 218, in &lt;module&gt;
    dist = setuptools.setup(**setup_params)
  File &quot;/usr/local/Python-2.7.7/lib/python2.7/distutils/core.py&quot;, line 151, in setup
    dist.run_commands()
  File &quot;/usr/local/Python-2.7.7/lib/python2.7/distutils/dist.py&quot;, line 953, in run_commands
    self.run_command(cmd)
  File &quot;/usr/local/Python-2.7.7/lib/python2.7/distutils/dist.py&quot;, line 972, in run_command
    cmd_obj.run()
  File &quot;/tmp/python_modules/setuptools-5.1/setuptools/command/install.py&quot;, line 65, in run
    self.do_egg_install()
  File &quot;/tmp/python_modules/setuptools-5.1/setuptools/command/install.py&quot;, line 107, in do_egg_install
    self.run_command(&#39;bdist_egg&#39;)
  File &quot;/usr/local/Python-2.7.7/lib/python2.7/distutils/cmd.py&quot;, line 326, in run_command
    self.distribution.run_command(command)
  File &quot;/usr/local/Python-2.7.7/lib/python2.7/distutils/dist.py&quot;, line 972, in run_command
    cmd_obj.run()
  File &quot;/tmp/python_modules/setuptools-5.1/setuptools/command/bdist_egg.py&quot;, line 148, in run
    self.run_command(&quot;egg_info&quot;)
  File &quot;/usr/local/Python-2.7.7/lib/python2.7/distutils/cmd.py&quot;, line 326, in run_command
    self.distribution.run_command(command)
  File &quot;/usr/local/Python-2.7.7/lib/python2.7/distutils/dist.py&quot;, line 972, in run_command
    cmd_obj.run()
  File &quot;/tmp/python_modules/setuptools-5.1/setuptools/command/egg_info.py&quot;, line 164, in run
    self.find_sources()
  File &quot;/tmp/python_modules/setuptools-5.1/setuptools/command/egg_info.py&quot;, line 187, in find_sources
    mm.run()
  File &quot;/tmp/python_modules/setuptools-5.1/setuptools/command/egg_info.py&quot;, line 271, in run
    self.add_defaults()
  File &quot;/tmp/python_modules/setuptools-5.1/setuptools/command/egg_info.py&quot;, line 303, in add_defaults
    rcfiles = list(walk_revctrl())
  File &quot;/tmp/python_modules/setuptools-5.1/setuptools/command/sdist.py&quot;, line 19, in walk_revctrl
    for item in ep.load()(dirname):
  File &quot;/tmp/python_modules/setuptools-5.1/setuptools/command/sdist.py&quot;, line 66, in _default_revctrl
    for item in finder(dirname):
  File &quot;/tmp/python_modules/setuptools-5.1/setuptools/svn_utils.py&quot;, line 468, in svn_finder
    info = SvnInfo.load(dirname)
  File &quot;/tmp/python_modules/setuptools-5.1/setuptools/svn_utils.py&quot;, line 264, in load
    with TemporaryDirectory() as tempdir:
  File &quot;/tmp/python_modules/setuptools-5.1/setuptools/py31compat.py&quot;, line 30, in __init__
    self.name = tempfile.mkdtemp()
  File &quot;/usr/local/Python-2.7.7/lib/python2.7/tempfile.py&quot;, line 325, in mkdtemp
    dir = gettempdir()
  File &quot;/usr/local/Python-2.7.7/lib/python2.7/tempfile.py&quot;, line 269, in gettempdir
    tempdir = _get_default_tempdir()
  File &quot;/usr/local/Python-2.7.7/lib/python2.7/tempfile.py&quot;, line 197, in _get_default_tempdir
    fd = _os.open(filename, flags, 0o600)
OverflowError: signed integer is greater than maximum
#

@ghost
Copy link
Author

ghost commented Jun 21, 2014

Original comment by philip_thiem (Bitbucket: philip_thiem, GitHub: Unknown):


Hmm.. An OvverflowError in _os.open? 0o600=384 that leaves the flags (which we don't pass in) or the file descriptor. Hopefully this is reproducible on 64-bit pythons in general. Might be a python bug, in which case would have to make the temp directory a no-op on error or an alternative implementation.

@ghost
Copy link
Author

ghost commented Jun 23, 2014

Original comment by repcsike (Bitbucket: repcsike, GitHub: Unknown):


Can you check it, or should I try it to reproduce on another 64bit compilation on Linux or maybe BSD?
I had success with some python modules but setuptools and it's dependencies are giving me a headache...
Another problematic module is ecdsa, which I'm asking the developer to check as well...

@ghost
Copy link
Author

ghost commented Jul 1, 2014

Original comment by philip_thiem (Bitbucket: philip_thiem, GitHub: Unknown):


Not exactly posix but I did check a 2.7.7 64-bit on windows 64-bit, and that installed ok using "python setup.py install". Does something like:

#!python

import tempfile
import os
for i in range(100):
    temp = tempfile.mkdtemp()
    os.rmdir(temp)

Work?

@ghost
Copy link
Author

ghost commented Jul 2, 2014

Original comment by philip_thiem (Bitbucket: philip_thiem, GitHub: Unknown):


I have verified that travis is 64-bit, so 64-bit linux is working as well.

@ghost
Copy link
Author

ghost commented Jul 4, 2014

Original comment by repcsike (Bitbucket: repcsike, GitHub: Unknown):


I had another issue installing the ecdsa python module and with the help of Brian Warner we found out that probably on aix the 64 bit python mathematical functions are giving a different result than what they should, so it seems that it's probably a python64 bug.

@ghost
Copy link
Author

ghost commented Jul 4, 2014

Original comment by philip_thiem (Bitbucket: philip_thiem, GitHub: Unknown):


Yeah would be best to be sure that the underlying python is functional. I'll close this bug for the moment and we can reopen should the problem persist afterwards,

@ghost
Copy link
Author

ghost commented Jul 4, 2014

Original comment by philip_thiem (Bitbucket: philip_thiem, GitHub: Unknown):


Looks like AIX's 64-bit python distribution might need tweaking. Reopen once a new one has been obtained and the math/temp functions checked.

@ghost ghost closed this as completed Mar 29, 2016
jaraco added a commit that referenced this issue Apr 12, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants