Project

General

Profile

when I test legion client in windows pc, python window open and closed imediately

Added by Shunming Fang about 11 years ago

I debug according test run , import start module,
it show no module named start
What is wrong?


Replies (2)

RE: when I test legion client in windows pc, python window open and closed imediately - Added by Anchi Cheng about 11 years ago

If possible, post the url of the wiki page you are on in the installation instruction. It will help us finding out the exact status of your installation and possible improvement can be made to the page.

I am guessing that you are importing start module in python command window. If it does not find the module, it means that python does not find it in its path. The path python looks for can be found in python command windown with the following commands:

import sys
sys.path

Note that C:\\python25\Lib\site-packages is always in python's path which is where leginon should have been installed when you used instruction in Installation_on_the_microscope_computer
Each of the subpackages would be in a separate folder in there.

In your particular case, unless you start python command window inside leginon directory, you will have to use this python command to import:

from leginon import start

or
import leginon.start

RE: when I test legion client in windows pc, python window open and closed imediately - Added by Anchi Cheng about 11 years ago

For those who see this post and don't know why Shunming is debugging, python window on Windows PC closes when it fails, making it impossible to see the error generated during running of the python script. Starting python command line window allows us to see the true cause of the failure.

    (1-2/2)