when I type the following on python2.5 IDLE (windows vista 32-bit)--
from pywinauto import Application
I get this error message--
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import pywinauto
ImportError: No module named pywinauto
I followed the instructions from this site, and did not get any error message during installation. What did I not get right here?
Thanks!
Do you have multiple versions of Python installed? Maybe the python.exe that was used for python.exe setup.py install is not Python 2.5. To check, open a command prompt and run python.exe -V.
If that is the problem, you need to go to the directory where you extracted the pywinauto zip file, and run C:\python25\python.exe setup.py install
Related
I'm using Pycharm to create a simple program that uses snap7 lib. to read a S7-1200 PLC, it works correctly when i run it with Pycharm but when i try to run it with an .exe file it prompts this error message:
Traceback (most recent call last):
File "main.py", line 1, in
ModuleNotFoundError: No module named 'snap7'
the snap7.dll and .lib are both in sys32 folder aswell as in environment variables PATH route.
both the python file and my PC are x64 so i used the x64 version of the DLL and lib files.
What am i missing?
How did you install the snap7 library?
py -m pip install python-snap7 is the way i installed it. I never had any problems with it.
I am trying to use the zmq Python library but it is not recognized and I have already installed it by using the following command:
pip3 install pyzmq
I am using PyCharm IDE.
The run output gives me this error:
Traceback (most recent call last):
File "C:/Users/Operações/Desktop/Testes/teste.py", line 2, in <module>
import zmq
ModuleNotFoundError: No module named 'zmq'
Does anyone can help me with this?
Instead of using pip, try installing pyzmq from File/Settings in PyCharm.
Open the Settings/Preferences
Navigate to Project: -> Python Interpreter
Klick the + at the bottom of the list
Search for your package of choice and hit Install Package
For more details on installing/uninstalling packages in PyCharm:
https://www.jetbrains.com/help/pycharm/installing-uninstalling-and-upgrading-packages.html
Recently, when I use pip to install python modules, I will get an error saying that the module has not been downloaded when I run it in the IDLE. However, when I run the same script in the terminal, it works fine. What is this error and how can I solve it?
Traceback (most recent call last):
File "<pyshell#8>", line 1, in <module>
import gspread
ModuleNotFoundError: No module named 'gspread'
Probably you have different versions of python installed.
The version you used pip to install new modules is different from the version you access with IDLE.
I have downloaded selenium module and installed it using python setup.py install. When i open up Pycharm and try to import Selenium it gives me this error:
Traceback (most recent call last):
File "C:/Users/mali03/.PyCharmCE2018.1/config/scratches/exe.py", line 1, in
<module> from selenium import webdriver
ModuleNotFoundError: No module named selenium'
Is it because of the interpreter? Where did python install the module and how do i access it?
It's because of Pycharm doesn't know where to find out selenium, or which python interpreter you are using.
Please select correct Python version.
You can found them in Settings | Project Interpreter > Wheel - More > Show Paths for the selected interpreter"
I've got this while working with Cassandra https://github.com/marionleborgne/cloudbrain/wiki/1.-Setup
~/Downloads/cloudbrain/cloudbrain/datastore$ cqlsh -f /home/user/Downloads/cloudbrain/cloudbrain/datastore/cassandra_schema.cql
Traceback (most recent call last):
File "/usr/bin/cqlsh.py", line 157, in <module>
from cqlshlib import cql3handling, cqlhandling, pylexotron, sslhandling, copy
ImportError: cannot import name sslhandling
Such error may occur when you have installed Cassandra using installator and it haven't installed required python libs. Download tar.gz archive from cassandra.apache.org/download/, extract it, go to pylib folder in it and run command in terminal
python setup.py install --user
It is possible that you'll need to reboot your system after that.