test.py not recognized as an internal or external command upon startup

84 views
Skip to first unread message

Christian Seitz

unread,
Dec 3, 2020, 1:50:03 AM12/3/20
to EasyModeller Discussion Forum
Hello,

I have not been able to launch EasyMODELLER. I can load python and modeller in the Windows command prompt, but when I try to open the EasyMODELLER GUI, it closes immediately, saying that "test.py not recognized as an internal or external command...". When I run EasyMODELLER as an administrator, it sets the working directory as C:/WINDOWS/system32/ and does not let me access any usable files in this directory or any of its parent directories, nor does it let me access directories where I store files (such as my Downloads directory). 

I have confirmed that python2.7 is in the system variables path through this link:

but it is not in the user variables. What can I do to run EasyMODELLER?

1) I am using python 2.7.17
C:\Users\cgsei>python
Python 2.7.17 (v2.7.17:c2f86d86e6, Oct 19 2019, 21:01:17) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

2) I am using Windows 10.0.18363 Build 18363

3) This is a 64 bit architecture.

I can provide any additional information as necessary. Thanks in advance for your help!!

Best,
Christian

kuntal bhusan

unread,
Dec 3, 2020, 7:33:47 AM12/3/20
to Christian Seitz, EasyModeller Discussion Forum
Dear Christian,

Please make sure that you have 'Python' program as a default application for '.py' files. Also make sure that .py files are not associated with some other programs. I am assuming that you have installed the latest version of MODELLER correctly. Please let me know if you have any other questions.

Thanks and regards,
Kuntal

--
You received this message because you are subscribed to the Google Groups "EasyModeller Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to easymodeller-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/easymodeller-discussion-forum/268857e2-22e9-475d-b607-d58beac98b89n%40googlegroups.com.

Christian Seitz

unread,
Dec 3, 2020, 6:50:29 PM12/3/20
to kuntal bhusan, EasyModeller Discussion Forum
Dear Kuntal,

Thanks for the suggestion. I made sure I associated python with all the .py files; now when I open EasyMODELLER normally it gives the same error as before, saying that test.py is not recognized as a command. 

When I open EasyMODELLER as an administrator, it says that 
C:\Python27\python.exe: can't open file 'C:\WINDOWS\system32\Thu Dec 3 2020154548\test.py': [Errno 2] No such file or directory

Regardless of whether I open normally or as administrator, the working directory is set as 
C:\WINDOWS\system32\Thu Dec 3 2020154548

Should it be set as something else, maybe C:\python27\ since that's my python path? Or do you have another idea?

Best,
Christian
--
Christian Seitz
PhD Candidate, Biochemistry & Biophysics | UC-San Diego
www.linkedin.com/in/christianseitz21

kuntal bhusan

unread,
Dec 4, 2020, 4:21:30 AM12/4/20
to Christian Seitz, EasyModeller Discussion Forum
Can you make a fresh install of Python and Modeller and try again.

Christian Seitz

unread,
Dec 4, 2020, 8:44:21 PM12/4/20
to kuntal bhusan, EasyModeller Discussion Forum
Hi Kuntal,

I uninstalled and made a fresh install of Modeller and python, and then re-associated .py files to python 2. There are no other versions of python on my laptop. Unfortunately, the same errors appear as my previous email.

Best,
Christian

kuntal bhusan

unread,
Dec 4, 2020, 11:53:17 PM12/4/20
to Christian Seitz, EasyModeller Discussion Forum
Hi,

Please try this :

first test whether MODELLER is working correctly in your system. To do this follow the steps below :

1. Go to command prompt (or terminal) and type :python

This should open the python IDLE and you should see a message like this :

Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
[GCC 4.5.2] on linux2

Type "help", "copyright", "credits" or "license" for more information.
>>>

N.B : If you have installed Python and still do not see this then make sure that you have set your path for Python correctly (although this should be done automatically)

2. Now inside  the Python IDLE type : import modeller

Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
[GCC 4.5.2] on linux2

Type "help", "copyright", "credits" or "license" for more information.
>>> import modeller
>>>

If the module 'modeller' loads without giving and error message then you have successfully installed modeller and you should be able to run EasyModeller without any errors.


Also please send a screenshot of the command prompt just after the problem occurs.

Thanks,

Kuntal

Christian Seitz

unread,
Dec 6, 2020, 2:20:30 PM12/6/20
to kuntal bhusan, EasyModeller Discussion Forum
Hi Kuntal,

I have performed the tasks requested. The first screenshot is after importing modeller, and the second screenshot is after running EasyMODELLER as administrator, and the picture is after running EasyMODELLER normally. Thanks for your help!

image.png

image.png

Best,
Christian
Sent from mobile, please excuse brevity and/or typos
image.png
image.png
PXL_20201206_191401876.jpg

kuntal bhusan

unread,
Dec 6, 2020, 2:27:35 PM12/6/20
to Christian Seitz, EasyModeller Discussion Forum
This is purely a permission related issue. Somehow, the application EasyModeller is not able to create the temporary files and folder in the location where you have kept it. Try running it from a different place in your PC. If the problem persists, the only option I see is to suggest you to try from a different system. Everything else seems alright to me. 

Thanks,

Kuntal

Christian Seitz

unread,
Dec 6, 2020, 2:52:04 PM12/6/20
to kuntal bhusan, EasyModeller Discussion Forum
Hi Kuntal,

That is what worked! Previously, I would search for the EasyMODELLER program on the programs list of my laptop. This would open it with a working directory of 

C:/WINDOWS/system32

and would lead to all the problems listed above. However, when I found the EasyMODELLER executable and instead double clicked on that, it opened up EasyMODELLER with the working directory of the executable's file location (for me, my downloads directory) and it loaded without issues. Many thanks for your help!

Best,
Christian

kuntal bhusan

unread,
Dec 6, 2020, 7:05:32 PM12/6/20
to Christian Seitz, EasyModeller Discussion Forum
Glad to hear it! Thanks for finding interest in my tool.
Reply all
Reply to author
Forward
0 new messages