Skip to content
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

get-pip bailing out while trying to import colorama on AIX #1826

Closed
schmir opened this issue May 21, 2014 · 9 comments
Closed

get-pip bailing out while trying to import colorama on AIX #1826

schmir opened this issue May 21, 2014 · 9 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@schmir
Copy link
Contributor

schmir commented May 21, 2014

I get the following error trying to run get-pip.py on a machine running AIX 7.1 with python 2.7.5:

$ py27/bin/python get-pip.py  --help
Traceback (most recent call last):
  File "get-pip.py", line 20479, in 
    main()
  File "get-pip.py", line 20471, in main
    bootstrap(tmpdir=tmpdir)
  File "get-pip.py", line 20411, in bootstrap
    import pip
  File "/tmp/tmpuabmtc/pip.zip/pip/__init__.py", line 9, in 
  File "/tmp/tmpuabmtc/pip.zip/pip/log.py", line 9, in 
  File "/tmp/tmpuabmtc/pip.zip/pip/_vendor/colorama/__init__.py", line 2, in 
  File "/tmp/tmpuabmtc/pip.zip/pip/_vendor/colorama/initialise.py", line 5, in 
  File "/tmp/tmpuabmtc/pip.zip/pip/_vendor/colorama/ansitowin32.py", line 6, in 
  File "/tmp/tmpuabmtc/pip.zip/pip/_vendor/colorama/winterm.py", line 2, in 
  File "/tmp/tmpuabmtc/pip.zip/pip/_vendor/colorama/win32.py", line 7, in 
  File "/opt/freeware/lib/python2.7/ctypes/__init__.py", line 10, in 
    from _ctypes import Union, Structure, Array
ImportError: No module named _ctypes

I don't it makes sense to import colorama.win32 on this machine.

is there a way to turn off colorised output as a workaround?

@vinhdizzo
Copy link

Hi, I'm getting this same error on AIX 6.1. It appears from this thread that the error has been fixed. However, I don't believe it is reflected in get-pip.py yet because I still get the error. Is there a way to get the latest get-pip.py that reflects these changes? Thanks.

@vinhdizzo
Copy link

Hi again,

I downloaded the latest version of get-pip.py (dated 11/4/2014) and I'm still getting this error on AIX 6.1. Is this not fixed? Thanks.

@dstufft
Copy link
Member

dstufft commented Nov 10, 2014

This has not been released yet.

@vinhdizzo
Copy link

I see. Is it in the git repo? That is, if I am able to generate the get pip
file, will that version include this fix?

Company unfortunately has AIX, and I'm trying to make the system useful.

If not, do you have any suggestions? I tried compiling python from source
but ctype failed to compile. Thanks.
On Nov 10, 2014 3:23 PM, "Donald Stufft" notifications@github.com wrote:

This has not been released yet.


Reply to this email directly or view it on GitHub
#1826 (comment).

@dstufft
Copy link
Member

dstufft commented Nov 10, 2014

The develop branch has the fix, however get-pip.py will attempt to install the version of pip that is released on PyPI. If you want to use the development branch your best bet is probably to get a tarball from the develop branch and run setup.py install from it.

@vinhdizzo
Copy link

Will try and report back. Hopefully there isn't any dependencies. Trying to
get pip so it can handle all dependencies :)
On Nov 10, 2014 3:27 PM, "Donald Stufft" notifications@github.com wrote:

The develop branch has the fix, however get-pip.py will attempt to
install the version of pip that is released on PyPI. If you want to use the
development branch your best bet is probably to get a tarball from the
develop branch and run setup.py install from it.


Reply to this email directly or view it on GitHub
#1826 (comment).

@vinhdizzo
Copy link

Tried to install using setup.py, but it required setuptools. Tried to install setuptools, and there too is a dependency on ctypes:

$ python setup.py --user
Traceback (most recent call last):
  File "setup.py", line 19, in <module>
    exec(init_file.read(), command_ns)
  File "<string>", line 11, in <module>
  File "/sas/outmva/vinh/setuptools-7.0/setuptools/__init__.py", line 12, in <module>
    from setuptools.extension import Extension
  File "/sas/outmva/vinh/setuptools-7.0/setuptools/extension.py", line 8, in <module>
    from .dist import _get_unpatched
  File "/sas/outmva/vinh/setuptools-7.0/setuptools/dist.py", line 18, in <module>
    from setuptools import windows_support
  File "/sas/outmva/vinh/setuptools-7.0/setuptools/windows_support.py", line 2, in <module>
    import ctypes
  File "/opt/freeware/lib/python2.7/ctypes/__init__.py", line 10, in <module>
    from _ctypes import Union, Structure, Array
ImportError: No module named _ctypes

Any other thoughts on getting pip installed without ctypes? Thanks.

@zad9999
Copy link

zad9999 commented Apr 19, 2018

vinhdizzo now you can installed setup.py??

@lock
Copy link

lock bot commented Jun 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

4 participants