delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/09/25/11:56:47

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Fri, 25 Sep 2009 11:56:29 -0400
Message-ID: <5caea3690909250856g6d1978bdqb6293baadb3ae8ba@mail.gmail.com>
Subject: .DLL to Copy to server to use Expect without full CygWin installation
From: Kevin Holleran <kdawg44 AT gmail DOT com>
To: cygwin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hello,

I downloaded and installed the pexpect module and wrote a python
script.=A0 All is well and good, but the script proved to be pretty
useful and now I was asked to run it as a scheduled task up on a
server to run periodically.=A0 I was intending on simply packaging it up
with Py2Exe and moving it to the server that way.

However, when I went to test it, I received this error....

Traceback (most recent call last):
=A0 File "script.py", line 17, in <module>
=A0=A0=A0 import pexpect
=A0 File "lib\site-packages\pexpect.py" , line 85, in <module>
=A0=A0=A0 support it. Pexpect is intended for UNIX-like operating systems."=
"")
ImportError: No module named resource

A critical module was not found. Probably this operating system does not
support it. Pexpect is intended for UNIX-like operating systems.

So now I realize that when I was testing on my system, I run cygwin
and so everything worked fine....

Is there a .dll from the cygwin directory on my machine that I can
copy with it or anything so that it works without having to install
cygwin on the server that will be hosting this scheduled task?

Kevin

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019