Error running Python at command line

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
Hello !

I'm running a simple Python script at TCC command line prompt and, it issues this error :

TCC (Sys) DLL not found : python26.dll

Notice that I have python 3.4.4 installed on my PC.

Also, when I run the same script from Windows Explorer it is ok, that is, the ".py" extension is correctly associated with Python.

The problem is only at TCC command line.

Also, should I call the interpreter explicitly , by issuing "py myscript.py" at command prompt, it also runs fine.

The problem is some sort of implicit association of TCC with Python version 26.

Another problem is that I can't run from inside my BTMs the @python function as well.

Again, implicit association of TCC with Python version 26.

Any suggestions ?
 

rconn

Administrator
Staff member
May 14, 2008
10,100
85
#3
There is no implicit association of TCC with Python 2.6 (or any other version of Python). TCC will look in your path for multiple versions of Python (from 3.6.x to 2.5) and use the most recent one it can find. In your case (provided you put Python in your PATH), TCC will look for python34.dll.

The error message you're seeing is being returned by Python, not by TCC. I suspect you have a (partial?) Python 2.6 directory in your PATH before your Python 3.4 directory.
 
#4
There is no implicit association of TCC with Python 2.6 (or any other version of Python). TCC will look in your path for multiple versions of Python (from 3.6.x to 2.5) and use the most recent one it can find. In your case (provided you put Python in your PATH), TCC will look for python34.dll.

The error message you're seeing is being returned by Python, not by TCC. I suspect you have a (partial?) Python 2.6 directory in your PATH before your Python 3.4 directory.
I only have Python 3.4.4 installed and also , this is the only one mentioned at my PATH. I had 2.6 indeed but it was uninstalled.

But there are some issues somewhat complicated ( :-( ) :
  • I'm running on Windows XP .
  • I'm still using version 11 !
I know, I know I shouldn't but, there are other technical stuff that I can't migrate right now.

On the other hand, the Python I'm using is from Python.org . I didn't know that I needed Active State Python .... Do I ? If I do, it looks like Active State Python also does not support Windows XP...

I can upgrade TCC to version 16 (or a later one that supports XP as well) but again, Active State wont allow me to run on XP...