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

Python 3.11.1 - error pyperclip: No module named '_ctypes' #239

Open
Remiol opened this issue Jan 31, 2023 · 1 comment
Open

Python 3.11.1 - error pyperclip: No module named '_ctypes' #239

Remiol opened this issue Jan 31, 2023 · 1 comment

Comments

@Remiol
Copy link

Remiol commented Jan 31, 2023

I receive a Pyperclip error in all python scripts since Python 3.11.1.
When I remove Python 3.11.1 and reinstall Python 3.11 the error is gone.

This is the error I receive.

c:\Python311\Lib\site-packages\pyperclip\__init__.py, line 52, in <module> import ctypes
c:\Python311\Lib\site-packages\pyperclip\__init__.py, line 8, in <module>
from ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'

What does this error mean?

ps: my OS = Win 11 home
Thanks for this very useful extension.

@Remiol Remiol changed the title Python 3.11.1 - error pyperclip Python 3.11.1 - error pyperclip: No module names '_ctypes' Jan 31, 2023
@Remiol Remiol changed the title Python 3.11.1 - error pyperclip: No module names '_ctypes' Python 3.11.1 - error pyperclip: No module named '_ctypes' Jan 31, 2023
@Remiol
Copy link
Author

Remiol commented Jan 31, 2023

I've found out that it is a vim problem. Sorry.
":py3 import pyperclip" does give this error in vim but "import pyperclip" does work in "idle"
A few other extensions do work fine. Don't know what's happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant