Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
pypy
pypy
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 582
    • Issues 582
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 12
    • Merge Requests 12
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards

This instance will be upgraded to Heptapod 0.19.0rc2 on 2021-01-18 at 11:00 UTC+1 (a few minutes of downtime)

  • PyPy
  • pypypypy
  • Issues
  • #3286

Closed
Open
Opened Aug 23, 2020 by Ruofan XU@SleepyRoy

Support Python module pywin32

I just tried nightly (win32) binary 20200818 and good to see more data science modules such as pandas now work on pypy3. You know data science with Python is very popular so I believe this would greatly facilitate spread of pypy.

I tried to install jupyter notebook, one of the most popular IDEs. The other parts work nicely except for one dependency, pywin32, which results in jupyter kernel error (cannot import win32api). There's no official pywin32 whl for pypy so I copy pywin32 files to pypy's site-packages folder, just like how this module is installed on CPython. But this only enables win32 and win32con imports, not win32api and win32com. Installing pypiwin32 also doesn't help at all.

I notice that someone has investigated this issue in https://github.com/mhammond/pywin32/issues/1289 and might help - Main problem is that PyPy CPython compatibility C header Python.h(and PyPy library) does not provide these functions: Py_SetProgramName, Py_Initialize, PySys_SetArgv

Jupyter is not the only popular module depending on pywin32. I hope pypy could support it so more modules are enabled in pypy :)

Edited Aug 23, 2020 by Ruofan XU
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: pypy/pypy#3286