简体   繁体   中英

Module ctypes has no attribute 'windll'

i am running my web app on GCP app engine and and getting this error

AttributeError: module 'ctypes' has no attribute 'windll'

i am using it to display alert messages on browser, can anyone tell me the alternative or solution of this error

NOTE: i have also tried win32api but its not working as well here is the error

 Could not find a version that satisfies the requirement pywin32==223 (from -r requirements.txt (line 6)) (from versions: )

It seems like you're trying to use a Windows module on a non Windows enviroment, if you check the ctype module it has some conditional classes:

if _os.name == "nt":

    class WinDLL(CDLL):
        """This class represents a dll exporting functions using the
        Windows stdcall calling convention.
   [...]

https://docs.python.org/3/library/ctypes.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM