ImportError: DLL load failed: %1 is not a valid Win32 application.

55 views
Skip to first unread message

lece...@gmail.com

unread,
Oct 18, 2017, 5:20:34 PM10/18/17
to grpc.io
Hi, 

I am using gRPC's Python API and here are the things I imported for my project

import abc
import enum

import six

from grpc._cython import cygrpc as _cygrpc

When I run it it gave me this error message (the xxxxx things are my folder names)

Traceback (most recent call last):
  File "C:\Users\xxx\git\xxxx\nlp\xxxx.py", line 35, in <module>
    from google.cloud.speech.v1beta1 import cloud_speech_pb2 as cloud_speech
  File "C:\Python27\lib\site-packages\google\cloud\speech\v1beta1\cloud_speech_pb2.py", line 771, in <module>
    import grpc
  File "C:\Python27\lib\site-packages\grpc\__init__.py", line 37, in <module>
    from grpc._cython import cygrpc as _cygrpc
ImportError: DLL load failed: %1 is not a valid Win32 application.

All my setups are in 64 bits so I am wondering whether there is anything to do with gRPC's requirements? 
I am just starting to learn APIs so any input will be really really helpful to me!

Thanks!!!



Nathaniel Manista

unread,
Oct 21, 2017, 2:40:01 PM10/21/17
to lece...@gmail.com, grpc.io
On Wed, Oct 18, 2017 at 2:20 PM, <lece...@gmail.com> wrote:
I am using gRPC's Python API and here are the things I imported for my project

import abc
import enum

import six

from grpc._cython import cygrpc as _cygrpc

When I run it it gave me this error message (the xxxxx things are my folder names)

Traceback (most recent call last):
  File "C:\Users\xxx\git\xxxx\nlp\xxxx.py", line 35, in <module>
    from google.cloud.speech.v1beta1 import cloud_speech_pb2 as cloud_speech
  File "C:\Python27\lib\site-packages\google\cloud\speech\v1beta1\cloud_speech_pb2.py", line 771, in <module>
    import grpc
  File "C:\Python27\lib\site-packages\grpc\__init__.py", line 37, in <module>
    from grpc._cython import cygrpc as _cygrpc
ImportError: DLL load failed: %1 is not a valid Win32 application.

All my setups are in 64 bits so I am wondering whether there is anything to do with gRPC's requirements?

Quite likely. What can you tell us about your system and platform? What hardware version and version of Windows? How did you get gRPC onto your system? If "pip install", what version of pip?

I am just starting to learn APIs so any input will be really really helpful to me!

We hope gRPC will be helpful to you! Thanks for your report.
-Nathaniel
Reply all
Reply to author
Forward
0 new messages