Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 668
    • Issues 668
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyPy
  • pypypypy
  • Issues
  • #1936

Closed
Open
Created Dec 01, 2014 by Bitbucket Importer@bitbucket_importerMaintainer

Weird import ctypes error

Created originally on Bitbucket by boxed (Anders Hovmöller)

I get this funny behavior:

#!python

Python 2.7.3 (87aa9de10f9c, Nov 24 2013, 20:57:21)
[PyPy 2.2.1 with GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``"it's likely temporary until
forever" arigo''
>>>> import ctypes
>>>> import gunicorn
>>>> from gunicorn import util
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/andersh/Projects/triresolve/env-pypy/site-packages/gunicorn-0.17.2_trioptima1-py2.7.egg/gunicorn/util.py", line 24, in <module>
    import resource
  File "/usr/local/Cellar/pypy/2.2.1/libexec/lib_pypy/resource.py", line 6, in <module>
    from ctypes_config_cache._resource_cache import *
  File "/usr/local/Cellar/pypy/2.2.1/libexec/lib_pypy/ctypes_config_cache/_resource_cache.py", line 6, in <module>
    globals(), locals(), ["*"])
  File "/usr/local/Cellar/pypy/2.2.1/libexec/lib_pypy/ctypes_config_cache/_resource_64_.py", line 1, in <module>
    import ctypes
ImportError: No module named ctypes
>>>> import ctypes
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named ctypes
>>>> 

Note that I successfully import ctypes, then I try to import gunicorn and it raises, then I'm in a state where I can't import ctypes anymore.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking