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

No module named '_ctypes' #76582

Closed
YoSTEALTH mannequin opened this issue Dec 21, 2017 · 3 comments
Closed

No module named '_ctypes' #76582

YoSTEALTH mannequin opened this issue Dec 21, 2017 · 3 comments
Labels
3.7 (EOL) end of life build The build process and cross-build topic-installation

Comments

@YoSTEALTH
Copy link
Mannequin

YoSTEALTH mannequin commented Dec 21, 2017

BPO 32401
Nosy @YoSTEALTH, @yan12125
Superseder
  • bpo-31652: make install fails: no module _ctypes
  • 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:

    assignee = None
    closed_at = <Date 2017-12-27.22:59:03.235>
    created_at = <Date 2017-12-21.19:25:02.994>
    labels = ['3.7', 'build', 'expert-installation']
    title = "No module named '_ctypes'"
    updated_at = <Date 2018-07-08.03:35:10.775>
    user = 'https://github.com/YoSTEALTH'

    bugs.python.org fields:

    activity = <Date 2018-07-08.03:35:10.775>
    actor = 'martin.panter'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-12-27.22:59:03.235>
    closer = 'YoSTEALTH'
    components = ['Installation']
    creation = <Date 2017-12-21.19:25:02.994>
    creator = 'YoSTEALTH'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32401
    keywords = []
    message_count = 3.0
    messages = ['308897', '308926', '309109']
    nosy_count = 2.0
    nosy_names = ['YoSTEALTH', 'yan12125']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'resolved'
    status = 'closed'
    superseder = '31652'
    type = 'compile error'
    url = 'https://bugs.python.org/issue32401'
    versions = ['Python 3.7']

    @YoSTEALTH
    Copy link
    Mannequin Author

    YoSTEALTH mannequin commented Dec 21, 2017

    I tried to install python3.7.0a3 just to test it out and i keep getting error:

    Traceback (most recent call last):
      File "/tmp/psi/Python-3.7.0a3/Lib/runpy.py", line 193, in _run_module_as_main
        "__main__", mod_spec)
      File "/tmp/psi/Python-3.7.0a3/Lib/runpy.py", line 85, in _run_code
        exec(code, run_globals)
      File "/tmp/psi/Python-3.7.0a3/Lib/ensurepip/__main__.py", line 5, in <module>
        sys.exit(ensurepip._main())
      File "/tmp/psi/Python-3.7.0a3/Lib/ensurepip/__init__.py", line 204, in _main
        default_pip=args.default_pip,
      File "/tmp/psi/Python-3.7.0a3/Lib/ensurepip/__init__.py", line 117, in _bootstrap
        return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
      File "/tmp/psi/Python-3.7.0a3/Lib/ensurepip/__init__.py", line 27, in _run_pip
        import pip
      File "/tmp/tmpuwh0fjm1/pip-9.0.1-py2.py3-none-any.whl/pip/__init__.py", line 28, in <module>
      File "/tmp/tmpuwh0fjm1/pip-9.0.1-py2.py3-none-any.whl/pip/vcs/mercurial.py", line 9, in <module>
      File "/tmp/tmpuwh0fjm1/pip-9.0.1-py2.py3-none-any.whl/pip/download.py", line 36, in <module>
      File "/tmp/tmpuwh0fjm1/pip-9.0.1-py2.py3-none-any.whl/pip/utils/glibc.py", line 4, in <module>
      File "/tmp/psi/Python-3.7.0a3/Lib/ctypes/__init__.py", line 7, in <module>
        from _ctypes import Union, Structure, Array
    ModuleNotFoundError: No module named '_ctypes'
    Makefile:1108: recipe for target 'install' failed
    make: *** [install] Error 1

    System:
    Linux (4.10.0-42-generic) 64bit

    I have installed 3.6.0 and 3.6.4 without any problems.

    @YoSTEALTH YoSTEALTH mannequin added 3.7 (EOL) end of life topic-installation build The build process and cross-build labels Dec 21, 2017
    @yan12125
    Copy link
    Mannequin

    yan12125 mannequin commented Dec 22, 2017

    Most likely the same issue as bpo-31652. Passing --without-ensurepip to ./configure is a workaround.

    @YoSTEALTH
    Copy link
    Mannequin Author

    YoSTEALTH mannequin commented Dec 27, 2017

    Yes, it does work without pip.

    @YoSTEALTH YoSTEALTH mannequin closed this as completed Dec 27, 2017
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life build The build process and cross-build topic-installation
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants