Custom Script Tool Error: DLL load failed... help, please

454
0
11-14-2018 01:40 PM
deleted-user-7DCz1T2FuzMM
New Contributor

Hello all,

I am working with ArcGIS Desktop 10.6 and Background Geoprocessing (64-bit) 10.6. I am trying to package a custom script tool.  My python script works well when I run it from my IDE, but fails when I try to run it as a script tool in ArcMap.

This is the error i'm receiving. I can't seem to find any thing that will help me resolve this.

Traceback (most recent call last):
File "C:\Program Files (x86)\ArcGIS\Desktop10.6\OCall_Tix.py", line 12, in <module>
import imaplib, sys, email
File "C:\Users\office\AppData\Local\Continuum\anaconda2\Lib\imaplib.py", line 25, in <module>
import binascii, errno, random, re, socket, subprocess, sys, time
File "C:\Users\office\AppData\Local\Continuum\anaconda2\Lib\socket.py", line 47, in <module>
import _socket
ImportError: DLL load failed: %1 is not a valid Win32 application.

Can anyone help?

0 Kudos
0 Replies