473,394 Members | 1,811 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

problem with import autotest ...

Hi all,

Please beware I am new to Python and have little experience with it.

I have a script that works just fine on linux but when I try to debug
from Windows using Eclipse and PyDEV plugin then it does not
work. The Python version is the same 2.3.x , and command line
is roughly the same.

from Unix:
mymodule.py <my-params>
From Windows (Eclipse) python.exe mymodule.py <my-params>

The point is that from Linux the "import autotest" works as
intended i.e. just allow the importing module use some functions
but from Windows it autoruns itself just by importing it, I do not
get why or how?
From Windows it does:


"Regression test.

This will find all modules whose name is "test_*" in the test
directory, and run them. Various command line options provide
additional facilities"

and then starts executing tests without ever getting to the main
of my module ...

Any clues?

TIA,
Best Regards,
Giovanni

May 19 '06 #1
1 1318
"bravegag" <br******@gmail.com> writes:
I have a script that works just fine on linux but when I try to
debug from Windows using Eclipse and PyDEV plugin then it does not
work. The Python version is the same 2.3.x , and command line is
roughly the same.
2.3.x is not a version. Which versions are you using on each?
import sys
sys.version '2.3.5 (#2, Sep 4 2005, 22:01:42) \n[GCC 3.3.5 (Debian 1:3.3.5-13)]'
The point is that from Linux the "import autotest" works as intended
i.e. just allow the importing module use some functions but from
Windows it autoruns itself just by importing it, I do not get why or
how?

import autotest

Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named autotest

What is this 'autotest' module? Where are you expecting it to come
from?

--
\ "If it ain't bust don't fix it is a very sound principle and |
`\ remains so despite the fact that I have slavishly ignored it |
_o__) all my life." -- Douglas Adams |
Ben Finney

May 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Roth | last post by:
I've found a case where it seems that Python is importing two copies of a module without any reason or indication. It took me a while to verify that this is what is occuring: I had to write a...
12
by: Richard Hanson | last post by:
Over the last few days, I reinstalled Win2kSP2 to a spare harddrive I had just swapped into my Fujitsu LifeBook P1120 (long story <wink>). Subsequently, I DL'ed the newest Python alpha (2.4a2), and...
2
by: Dale Gerdemann | last post by:
I'm having trouble with Unicode encoding in DOM. As a simple example, I read in a UTF-8 encoded xml file such as: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <aText>letter 'a' with...
0
by: nrip | last post by:
Dear All, I am facing a very peculiar problem. I am reading a CSV file from my JSP code and trying to insert them into MYSQL database. the program first reads a line and then splits it into words...
2
by: jiang.haiyun | last post by:
Hi, I am having some serious problems with PyQT4, when i run pyqt script, I always get 'Segmentation fault'. the script is simple: ====================== %less qttest.py from PyQt4 import...
20
by: Army1987 | last post by:
Under Linux (gcc) this works OK, but under Windows (lcc-win32) p.Blue always is zero. Within the function itself, result.Blue is correct (either 0, 255, or the floor of the expression assigned to...
0
by: Victor Lin | last post by:
Hi, I got some problem with import. I have some python file that should be executed. Something like unit-test or other small tool. The project is not so small. So I want to separate these files...
3
by: saytri | last post by:
I am displaying the contents of a textfile in a textArea. I want that when i edit this text in the textArea it is automatically saved in the textfile. I have wriitten this code, but the problem is...
13
by: Rafe | last post by:
Hi, I am in a situation where I feel I am being forced to abandon a clean module structure in favor of a large single module. If anyone can save my sanity here I would be forever grateful. My...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.