ActivePython discussion

Python and ActivePython usage questions; Python practices and programming questions

Odd behavior after upgrading package with pip.

I am seeing some very odd behavior with ActiveState ActivePython after using pip to install a package.

1. Install ActiveState ActivePython 3.6.

2. Run a Python script using the file association, that is just by calling the script itself. All is well in the universe.

3. Use pip to upgrade a package that is included in ActiveState ActivePython. For example, run the following command.

python -m pip install --upgrade pip

4. Run a Python script using the file association, that is just by calling the script itself. The universe blows up.

5. The following dialog box is displayed.

ILDE SOCKET

Hello all,

I am Running windows xp sp3, MS Security Essentials, and Windows Firewall. I installed ActivePython-2.7.1.4-win32-x86.

When I run the IDLE I get a message that says:
Socket Error: No connection could be made because the target machine actively refused it.

Does anyone know what I could do to resolve this issue?

Package "whois 0.7" does not work on Windows 10

I tried to test the package according to the description https://pypi.python.org/pypi/whois

>>> import whois
>>> domain = whois.query('google.com')

But i only get the error

AttributeError: module 'whois' has no attribute 'query'

What is wrong there?
Thank you!

How can i install a package?

I have installed Active Python 3.5.4 on Windows 10 x64.

I have upgraded the pip package by typing

python -m pip install -U pip

I have installed the package "whois" by typing

pip3 install whois

I have created a file "whois.py" with the content:

import whois

When i execute the whois.py file, a window opens and is asking me for a file "ActivePython-3.5.4.3504-win64-x64-404899.exe.msi".

How do I import the Paho MQTT Library to Komodo IDE?

I've been trying to import the Paho MQTT Library (https://github.com/eclipse/paho.mqtt.python) into Komodo IDE.

What I have done so far:
> Copied the Paho folder into python>lib>site-packages>
> In Komodo preferences, I set the path under Python language to add the folder.
> Changed/tried different paths for Python, Pip, etc.

Nothing seems to work so far. Whenever I run a python script, I see this error:

Traceback (most recent call last):
  File "C:\Users\kvin\workspace\paho_projects\mqtt_test0.py", line 1, in <module>
    import paho.mqtt.client as mqtt

security plugins for active python

So I've been stepping into the field of cybersecurity using python and am in a crossroad right now as far as my dedicated IDE goes. I love and started out using Komodo when I picked up on Python and now that I am transitioning into cyber security I am broadening my workbench and am looking for plugins for Komodo that will help detect security flaws easier. I know eclipse and vs have them but I am so used to Komodo and am trying to avoid turning towards another IDE. Is there anything like this or any security plugins that can help for Komodo?

Install other Packages

Hello,

I install ActivePython but now i want to install others packages which are not include in active python (like mechanize for exemple). I install them by typing sudo apt-get install python-mechanize in my terminal but when i open python so it's active python now, i can't import them. My question is : how to import the installed packages which are not in active python ?

Thanks,

Pierre.

ActivePython in ALM VAPI-XP Script

Bonjour
Je souhaite exécuter du un script Python depuis HP ALM, de la même manière que je peux exécuter du code VBS. J'ai installé ActivePython sur mon poste local, et pourtant mon script ne s'exécute pas. Le code du script se résume à un 'print("test")'. Comment faire pour exécuter le script python depuis ALM?
Merci =)


Hi,
I would like to run Python in ALM. I installed ActivePython on my local computer but the script does'nt run. The script is 'print("test")'. How can I run the python script from ALM???
Thank you =)

New Recipe Posts

I have some recipes in Python I think would be valuable to this community but the recipe post feature appears to be turned off. Is there a way I can post my recipes?

Viewing numpy variables in python3/Komodo11

I recently ported my code to Python3 and upgraded to Komodo11. One of these things had a big impact on the way that numpy variables are displayed. For example, any ndarray type now shows a whole bunch of extra information in addition to the data I specifically assigned to the variable. When the variable is expanded I see 'T', 'base', 'ctypes', etc., etc., and many of these appear to be recursive, repeatedly expanding to the same thing. ...and this has nothing to do with displaying hidden variables.