Using IVI-COM drivers with python via comtypes

I am trying to get my IVI drivers working using comtypes. So far I have been successful in initializing the instrument thanks to...

print_control_identifiers() error in pywinauto

I am using pyautowin in WIN10, and I want to open a secure app to generate passcode. But after i find a window of app in script, the print_control_identifiers() function pops error, I'm not sure...

python : COMERROR when reading file

I'm using Windows and Jupyter to write python code, and when I'm using package comtypes.client, it is unstable, sometimes it works, sometimes it doesn't. What I'm doing is trying to convert pptx...

Python - _ctypes.COMError -2147287038 (comtypes module)

EDIT: I came here by chance and realized I didn't put here who the code is from (???). Sorry about that... I knew programming only for 2 or 3 months when I published this question. Didn't even...

How to create new environment from a text file without environment name?

I am trying to create a new environment in Anaconda from a given file provided by Udacity here. However, I keep getting this error: SpecNotFound: Can't process without a name I think this is due...

pyautocad gives ungooglable error

OSError: [WinError -2147221005] Invalid class string full traceback During handling of the above exception, another exception occurred: Traceback (most recent call last): File...

Muting/Unmuting speakers in Python

I'm trying to create a piece of Malware that plays an audio file and doesn't allow the user to easily cancel play of the file. I've tested some code from...

Conda takes 20+ minutes to solve environment when package is already installed

NOTE: I'm duplicating this post because the question has been up on the conda github page for ~6-days with no response. The original link is...

Python 3.7 anaconda environment - import _ssl DLL load fail error

I created anaconda environment with Python=3.7 and have trouble with the error of _ssl and DLL. When I tried to get back to my base environment, I have trouble getting the background processes to...

WEBP support not installed error with Pillow included in Anaconda

I have written a small code to open webp image in the Anaconda prompt. from PIL import Image im = Image.open('test.webp') It causes the following...

"AssertionError: Torch not compiled with CUDA enabled" in spite upgrading to CUDA version

I figured out this is a popular question, but still I couldn't find a solution for that. I'm trying to run a simple repo Here which uses PyTorch. Although I just upgraded my Pytorch to the latest...

ERROR: You must give at least one requirement to install -- when running: pip install --upgrade --no-binary hdbscan

I am trying to install hdbscan in my PC which runs Windows 10 and has installed Python 3.6. My first attempt failed: (base) C:\WINDOWS\system32>pip install hdbscan --user Collecting hdbscan ...

No module named 'matplotlib.artist'

I faced with this error No module named 'matplotlib.artist' here is the complete error: --------------------------------------------------------------------------- ModuleNotFoundError ...

Concerned about malicious libraries in my project

So for a while now I have been building my virtual assistant in python which has required the use of several external libraries. I have also been converting the scripts to an exe using...

I have used this code for text to speech via pyttx3 and get this error I dont know how to solve it

import pyttsx3 engine = pyttsx3.init() engine.say("I will speak this text") engine.runAndWait() Error: return __import__(fullname, globals(), locals(), ['DUMMY']) File...

pyttsx3 initialization error, can't use pyttsx3

I was having some problems when using the .getproperty('voices') attribute in pyttsx3. So I decided to uninstall it and then re-install it using PIP to see if that may fix the problem. Previous...

error H13 on heroku on an dash application

import requests from bs4 import BeautifulSoup import pandas as pd import dash import dash_core_components as dcc import dash_html_components as html import...

Convert doc/docx to pdf in AWS Lambda?

Tried: Premade Lambda application docx to pdf (the application is no longer deployable) https://github.com/NativeDocuments/docx-to-pdf-on-AWS-Lambda Installing comtypes.client and win32com.client...

AttributeError: module 'comtypes.gen.SpeechLib' has no attribute 'ISpeechVoice'

I want to use pyttsx3 in my code but I always have that error: Traceback (most recent call last): File...

Why does `conda list cudnn` have no output after `conda install pytorch torchvision cudatoolkit=10.2 -c pytorch` installation

*Please feel free to vote "Reopen" at the bottom of this question. The reason is that I have marked this as a duplicate although the answers there are not clear enough for this question.* As soon...

Getting pyttsx3 ModuleNotFoundError error, can't use pyttsx3

I am working on an ai project but I am not able to use pyttsx3. First I installed pyttsx3 first I installed pyttsx3 and wrote pip install pyttsx3 it gave me error ERROR: Command errored out...

Convert DOCX Bytestream to PDF Bytestream Python

I currently have a program that generates a .docx document using the python-docx library. Upon completing the building of the .docx file I save it into a Bytestream as so file_stream =...

Getting an ImportError: cannot import name 'Random' from 'random'

I ran my code many times in my computer and didn't get this error. But all of a sudden this came File "e:\Python 3.8.0\lib\site-packages\comtypes\client\_code_cache.py", lin import ctypes,...

I have a ModuleNotFoundError: No module named 'Crypto'

Please need help When I try to run myfile.py it says, ModuleNotFoundError: No module named 'Crypto' ,but I already have the path for 'conda' and 'anaconda3' in my environment variables, I also...

how to select a particlular portion of a window's client area to display in window's thumbnail in the taskbar in Python/PyQt5/PySide2/Tkinter?

I want to set a particular portion(like only a frame or widget) of my application window to taskbar thumbnail.I found one windows API that is ITaskbarList3::SetThumbnailClip here but this is in...

Cannot import pywinauto on Windows 10

I installed pywinauto using pip install pywinauto. OS: Windows 10 Python: 3.6.2 When I run python and try to import pywinauto, I get the error: Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36)...

Invalid requirement

I converted the requirements of my project into a txt file with the method below. pip freeze > requirements.txt And I tried to load the generated txt file with the code below to test it, but I...

PowerPoint Print to PDF using win32com

Goal: using python, I want to open a Powerpoint presentation and print it using the "Microsoft Print to PDF" printer. I do NOT want to export it as PDF, I want to print it using Print to PDF. This...

Updating packages in conda

I have a problem with updating packages in conda. The list of my installed packages is: # # Name Version Build Channel _anaconda_depends 2020.07 ...

64 bit python is building a 32 bit COM server

import platform platform.architecture() #('64bit', 'WindowsPE') I'm running on 64 bit, specifically: Python 3.8.8 (default, Apr 13 2021, 15:08:03) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc....