ActivePython discussion

Python and ActivePython usage questions; Python practices and programming questions

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.

Install Python 3 as WSH engine

I would like to install ActivePython 3.6.0.3600 as Windows Scripting Host engine (to use in classic ASP).

I've found instructions on how to do that for Python 2 at https://stackoverflow.com/questions/7637210/getting-activepython-to-work..., but I don't know how to apply them for Python 3.

I tried to run ca_pywin32reg.pyw, but it fails with syntax errors.

How do I install Python as a WSH engine?

print a persian file by thermal printer and python-escpos mnodule

hello friends...
i want to print a persian file by thermal printer..
i can print an english file esily..but i face the proble while printing persian text..
i think i don't do some principles...i have studied about unicode encodeand decode in python..but it seems it isn't enough
please guide me

in the first code, i used the different codepages, but my output from the printer is just question mark ""?"" instead of the persian words

in the second code
the printer prints the obscure letters...
i tried the different codepages..but it wasn't usefull

#!/usr/bin/env python