Quantcast
Channel: ActiveState Community Site - Installation Support for ActivePython
Viewing all 48 articles
Browse latest View live

Problem running a Python Program and PyPM install packages

$
0
0

I'm running: Window 7 Enterprise

Download: ActivePython-3.2.2.3-win32-x86.msi
* ActivePython Documenation
* IDLE (Python GUI)
* Python Interactiveve Shell
* Python Package Manager (PyPM)

It went to directory:
C:\Python32

I save the following Python Program:
test.py
#! /usr/bin/env python3.2
primes=[2,3,5,7]
for i in primes:
print(i)

I tried to run my Python Program
F:\ > test.py
Choose the program you want to use to open this file: C:\python32.exe
And nothing happen, it did not run.

Could this be the problem and how can I correct it?

C:\Users\ngillem>echo "%PATH%
"C:\Perl64\site\bin;C:\Perl64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Com
mon Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\ActivIdentity\ActivClient\;C:\Program Files
(x86)\ActivIdentity\ActivClient\;C:\Program Files (x86)\QuickTime\QTSystem\

-----------------------------------------------------------
I'm also having a problem Listing and Installing packages in the repository.

I select the following: Python Package Manager (PyPM)

C:\Windows\system32> pypm list
'pypm' is not recognized as an internal or external command, operable program or batch file.

C:\Windows\system32> pypm install beatifulsoup4
'pypm' is not recognized as an internal or external command, operable program or batch file.


Pyknon library - using with Komodo on Mac

$
0
0

I have installed Pyknon on my Mac using 'pip'. This all worked and I can access the extra commands by including an import statement.

However, Komodo does not find the library to import in 'from pyknon.genmidi import Midi'.

Help please!

Python 2.7 should not install to windows system directory

$
0
0

Would it be possible to create a version of the Python 2.7 directory that doesn't install the Python27.dll into the c:\windows\system directory. It makes it harder to have other Python distributions installed on the same machine.

Cannot use Tix with ActivePython 3.4.1.0 for Mac OSX (Mavericks)

$
0
0

Hello,

When I tried to do the following:

from tkinter import tix
from tkinter.constantsimport *
root = tix.Tk()

I get the following error message:

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/tix.py", line 221, in __init__
    self.tk.eval('package require Tix')
_tkinter.TclError: can't find package Tix

Is there anyway to use Tix on MacOSX? There are no problems using Tix on WIndows 7 version.

Python 'turtle' script can't locate usable init.tcl

$
0
0

When I try to execute a simple turtle script I get the following error: "can't find a usable init.tcl in
C:/python34/lib/tcl8.6 C:/lib/tcl8.6 C:/lib/tcl8.6 C:/library C:/library C:/tcl8.6.1/library C:/tcl8.6.1/library."

I did the default ActiveState Python install, but none of these directories exist. (There is, however, a pyhton34/tcl subdirectory) There is a copy of init.tcl in python34/tcl/tcl8.6. Can someone tell me how to re-direct python to find the init.tcl?

Known Issue Workaround: Python 3.4.1 Windows 64-bit IDLE (Python GUI) to fail to run

$
0
0

Symptoms: IDLE (Python GUI) fails to start from START Menu

PROBLEM:
Run IDLE (Python GUI) from START menu and get Window flash but nothing else. IDLE fails to start in a ActiveState Python 3.4.1 installation.

However, the Python Interactive shell runs properly from the START menu.

BACKGROUND:

This is a Windows 7 64-bit installation.

I installed ActivePython-3.4.1.0-win64-x64.msi (community edition) that was downloaded directly from the web site.

Ultimately, I installed from an Administrator privileged command line window using the msiexec /i command.

I did have to change the default installation options to make the new 3.4 installation the default python on the system.

SPECIFIC SYMPTOMS:

Manually, I attempted to run idle.py and saw the following:

     C:\Python34\Lib\idlelib>idle.py"Traceback (most recent call last):
      File "C:\Python34\Lib\idlelib\idle.py", line 11, in 
        idlelib.PyShell.main()
      File "C:\Python34\Lib\idlelib\PyShell.py", line 1533, in main
        root = Tk(className="Idle")
      File "C:\Python34\Lib\tkinter\__init__.py", line 1805, in __init__
        self.tk = _tkinter.create(screenName, baseName, className, interactive, want
    objects, useTk, sync, use)
    _tkinter.TclError: Can't find a usable init.tcl in the following directories:
        C:/Python34/lib/tcl8.6 C:/lib/tcl8.6 C:/lib/tcl8.6 C:/library C:/library C:/
    tcl8.6.1/library C:/tcl8.6.1/library

    This probably means that Tcl wasn't installed properly."

THE SOLUTION:

Step 1) Manually Copy c:\Python34\tcl\tcl8.6 c:\python34\Lib

This should put the tcl8.6 sub-directory in the defined search path (last line above).

Repeat same experiment, manually running idle.py:

    C:\Python34\Lib\idlelib>idle.py"Traceback (most recent call last):
      File "C:\Python34\Lib\idlelib\idle.py", line 11, in 
        idlelib.PyShell.main()
      File "C:\Python34\Lib\idlelib\PyShell.py", line 1533, in main
        root = Tk(className="Idle")
      File "C:\Python34\Lib\tkinter\__init__.py", line 1805, in __init__
        self.tk = _tkinter.create(screenName, baseName, className, interactive, want
    objects, useTk, sync, use)
    _tkinter.TclError: Can't find a usable tk.tcl in the following directories:
        C:/Python34/lib/tcl8.6/tk8.6 C:/Python34/lib/tk8.6 C:/lib/tk8.6 C:/library


    This probably means that tk wasn't installed properly."

Step 2) Manually Copy c:\Python34\tcl\tk8.6 c:\python34\Lib

(why it wasn't found in the supposedly searched path
"C:/Python34/lib/tcl8.6/tk8.6"
I have no idea)

Problem solved: IDLE (Python GUI) will now run from the Start Menu

I don't know exactly why TCL & Tk were not installed properly in the first place. The installation logs (-L*v option of the msiexec command) didn't show anything obvious. The environment variable TCL_LIBRARY may allow another solution, but since there was no TCL_* environment variables defined in my system installation, this seemed a simple fix.

TkInter not working in fresh install of Python 2.7 on Windows 10

$
0
0

After installing ActivePython-2.7.10.12-win64-x64 on a fresh copy of Windows 10, TkInter python fails to initialise with

File "C:\Python27\lib\lib-tk\Tkinter.py", line 1814, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
C:/Python27/lib/tcl8.5 C:/lib/tcl8.5 C:/lib/tcl8.5 C:/library C:/library C:/tcl8.5.18/library C:/tcl8.5.18/library

Looking in C:/Python27/, I can see that tcl8.5 with init.tcl are actually installed in C:/Python/tcl/tcl8.5 not in C:/Python/lib/tcl8.5. That is, in a /tcl/ subdirectory, not the /lib/ subdirectory.

Copying the contents of the /tcl/ subdirectory into the /lib/ subdirectory seems to fix this, but surely I shouldn't have to do that.

Is this a bug in recent ActivePython installers? I didn't have this problem last time I did a fresh install, but that was a year ago or so.

can you install python.org python 3 alongside activepython 3 in 64-bit win 7?

$
0
0

I'd like to have both the python.org version of python 3 and activepython running on my 64-bit windows 7 machine. Is this possible? (currently I have 32-bit activepython installed (as the tcl interpeter is corrupt in 64-bit activepython), and before I install the python.org version I'd like to know whether its' safe. Thanks.


Newbie Install Issue with Python 2.7

$
0
0

Hi

Completely newbie to Python, I thought I was making good progress with Active Python...

I had Python2.7 installed and working. I hadn't used it for a couple of weeks and now whenever I click on the IDLE icon on my desktop, nothing happens. I have un-installed and re-installed from the msi file, no change. I have un-installed and re-installed from command line as administrator - no change. I have tried to run as Administrator. Nothing. If I look in Windows Task Manager, I don't even see anything appear.

The Python Interactive Shell works fine

I tried running pythonw.exe idle.pyw from the command line in the idlelib directory - again nothing

Any help greatly appreciated - I was enjoying working my way through the tutorials and now I have come to a complete halt.

*** Update ****
I subsequently managed to get this error message...

C:\Python27>python lib\idlelib\idle.py
Traceback (most recent call last):
File "lib\idlelib\idle.py", line 11, in
idlelib.PyShell.main()
File "C:\Python27\lib\idlelib\PyShell.py", line 1544, in main
root = Tk(className="Idle")
File "C:\Python27\lib\lib-tk\Tkinter.py", line 1814, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, want
objects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
C:/Python27/lib/tcl8.5 C:/lib/tcl8.5 C:/lib/tcl8.5 C:/library C:/library C:/
tcl8.5.18/library C:/tcl8.5.18/library

This probably means that Tcl wasn't installed properly.
*******************************************************

I don't have a tcl8.5 folder on any of those paths, mine is at C:\Python27\tcl\tcl8.5

Does this help at all?

Best Regards

D

new install of Komodo IDE * Active Python

$
0
0

I installed Active Python from: (ActivePython-3.4.3.2-win64-x64), and Komodo from: (Komodo-IDE-10.1.4-89515), but trying to setup this python as the Interpreter in the IDE fails,
The chosen Python has version 3.4 which will not work as a Python Interpreter.

I am trying for a matching 64-bit install on each.

Using the python36 version from python.org seems to work fine.

Installed 2.7.13.2713 x86 but pypm missing?

$
0
0

I installed the current community version of ActivePython 2.7 from the download page today. When I try and run "pypm" I get the following message "pypm is not recognized as an internal or external command, operable program or batch file."

pypm supposedly should be located in the c:\Python27\Scripts folder however it is not there. pip and easy-install are there but not pypm. I have reinstalled several times and rebooted etc.

Not sure what else to try here.

Problems installing IMSL Library for PyNL

$
0
0

I have windows 7
All PyNL prerequisites are installed and working properly (I have Python 2.7.11, pip version 9.0.1, NumPy 1.11.3, SciPy 0.18.1)
I Downloaded the installation file to a temporary folder
When I Open a command prompt and enter:

pip install
I get the following :

"Could not find a version that satisfies the requirement downloaded
No matching distribution found for downloaded"

When I Open a command prompt and enter:

pip install imsl-1.0_eval-cp27-none-win_amd64.whl

I get the following :

"Requirement 'imsl-1.0_eval-cp27-none-win_amd64.whl' looks like a filename, but the file does
not exist
imsl-1.0_eval-cp27-none-win_amd64.whl is not a supported wheel on this platform."

When I execute the following statements in the Python interpreter:

>>> import imsl.timeseries.garch as garch
I get
"Traceback in <> --> 1 import
imsl.timeseries.garch as garch
Import Error: No module named imsl.timeseries.garch"

Can you help ?

EDIT

After running pip from corresponding temporary folder the only error message I get is
"imsl-1.0_eval-cp27-none-win_amd64.whl is not a supported wheel on this platform."

I'm still confused about what I'm doing wrong

Python 2.7 should not install to windows system directory

$
0
0

Would it be possible to create a version of the Python 2.7 directory that doesn't install the Python27.dll into the c:\windows\system directory. It makes it harder to have other Python distributions installed on the same machine.

Cant find program anywhere after installation on my Mac

$
0
0

After installing ActivePyhon on my Mac OS Sierra v. 10.12.3, I can't find it anywhere. No trace in the Launchpad, and the folder in install location: /Library/Frameworks/Python.framework doesn't even exist. I did not get any error while installing and all seemed to be going smoothly. That is until I can't find it, that is.

Hope anyone can help a new member of the ActiveState community

Installation failed on OSX Sierra

$
0
0

Here is the installer log showing errors.

Does this help anybody to understand what's wrong?
Thanks

Mar 17 22:19:19 ysteins-iMac Installer[3704]: Installation checks succeeded with warnings.
Mar 17 22:19:19 ysteins-iMac Installer[3704]: Installation check warning. An existing installation has been found on your system. NOTE: Detected an existing installation of ActivePython 3.6 on your system. Please consider uninstalling it before proceeding with the current
installation. Please check the documentation for more information..
Mar 17 22:20:04 ysteins-iMac installd[328]: PackageKit: ----- Begin install -----
Mar 17 22:20:04 ysteins-iMac installd[328]: PackageKit: Session UUID file exists - will not overwrite /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/7CCCE3A0-E6CB-40D6-8BDB-2B7B98F14FC1.activeSandbox
Mar 17 22:20:20 ysteins-iMac installd[328]: PackageKit: ----- End install -----


ActivePython 3.4

$
0
0

I am developing a MySQL application. From what I can see, MySQL only supports Python 3.4. What is the last ActivePyton release of Python 3.4 and where can I get it?

Python 2.7.13.2715 install immediately fails

$
0
0

I had AP 2.7.13.2714 installed and running just fine. I d/l'ed 2715, and tried to install it after uninstalling 2714 and rebooting. I removed c:\python27 completely.

All options (Typeical, Custom and Complete) immediately exit with an error and no system changes. I d/l'ed another copy, and it is identical to the first copy.

I obtained another copy of 2714, but it likewise ends prematurely with an unknown error.

Any suggestions? There is plenty of disk space, so that's not the problem.

ActivePython 2.7.13.2715 Windows .bat all broken

$
0
0

Just installed the lastest version of ActivePython on my Windows 10.
Can't use any off ipython, jupyter, ... out of the box from a cmd.
Please help me finding a global solution to my problem,
I only succeeded to "hack" the install.

Context:
--------

Fired a cmd.exe shell.

> ipython
Returns:
echo off
python.exe non module ipython found.

Same for almost every packages I tried.

First thing:
-----------
Please put an @ before "echo off" to avoid prompting => "@echo off"

Second thing:
------------
All .bat shortcuts seems to be broken.
In the case of ipython, the command line is
"python.exe -m ipython %1 ..."

Worked when changing to "-m IPython". But is it intended ?

Other "hack" solution, .bat files maybe supposed to load their "*-script.py" counterpart,
in this case naming modules with a dash is not really a good idea.

Thanks for your replies

Import errors using ActivePython 2.7.13.2715 on MacOS Sierra V10.12.5 with packages such as tensorflow, sklearn

$
0
0

ActivePython 2.7.13.2715 (ActiveState Software Inc.) based on
Python 2.7.13 (default, May 16 2017, 11:18:28)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

>>> import tensorflow
Traceback (most recent call last):
File "", line 1, in
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tensorflow/__init__.py", line 24, in
from tensorflow.python import *
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 51, in
from tensorflow.python import pywrap_tensorflow
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so, 10): Symbol not found: _PyUnicodeUCS2_AsASCIIString
Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so
Expected in: flat namespace
in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/install_sources#common_installation_p...

for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.

>>> import sklearn
Traceback (most recent call last):
File "", line 1, in
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sklearn/__init__.py", line 57, in
from .base import clone
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sklearn/base.py", line 12, in
from .utils.fixes import signature
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sklearn/utils/__init__.py", line 11, in
from .validation import (as_float_array,
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sklearn/utils/validation.py", line 18, in
from ..utils.fixes import signature
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sklearn/utils/fixes.py", line 291, in
from scipy.sparse.linalg import lsqr as sparse_lsqr
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/linalg/__init__.py", line 113, in
from .isolve import *
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/linalg/isolve/__init__.py", line 6, in
from .iterative import *
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/linalg/isolve/iterative.py", line 7, in
from . import _iterative
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/linalg/isolve/_iterative.so, 10): Library not loaded: /usr/local/lib/libgfortran.3.dylib
Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/linalg/isolve/_iterative.so
Reason: image not found

2.7.13.2716 for 32bit, x86 Windows

Viewing all 48 articles
Browse latest View live