visual-c++

PyList_GetItem() returning a reference

PyList_GetItem() returning a reference Question: I am using the PyHelper class that I found HERE My python script is returning a list and in C++ I can call PyList_Size() and successfully get the size but when I try get item it returns a very large number which I assume is a address reference rather than …

Total answers: 1

Unable to find vcvarsall.bat (Unsolved for 2022 version, Python)

Unable to find vcvarsall.bat (Unsolved for 2022 version, Python) Question: I’ve been trying to instsall pgzero library for python, but however it keeps giving me an error: "unable to find vcvarsall.bat " I have been searching over StackOverflow, it shows up how to fix it for 2017 version by installing Microsoft building tools, i did …

Total answers: 1

FATAL: Error, Visual Studio required for using ClangCL on Windows

FATAL: Error, Visual Studio required for using ClangCL on Windows Question: while trying to use Nuitka on anaconda prompt to obfuscate python script pass.py (would like to use clang compiler not gcc) after typing below cmd: python -m nuitka –clang –follow-imports pass.py it shows this error message: FATAL: Error, Visual Studio required for using ClangCL …

Total answers: 1

Cannot install pyodbc, missing header files, command prompt: fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

Cannot install pyodbc, missing header files, command prompt: fatal error C1083: Cannot open include file: 'windows.h': No such file or directory Question: I’m trying to install pyodbc for python 3.9.2 (32-bit), however I keep getting the error: C:UsersICAPP02AppDataLocalTemppip-install-0c78okb8pyodbc_d782ffa5512448c49f83e214e7ec4434srcpyodbc.h(19): fatal error C1083: Cannot open include file: ‘windows.h’: No such file or directory error: command ‘C:Program Files …

Total answers: 2

"error: Unable to find vcvarsall.bat" when compiling Cython code

"error: Unable to find vcvarsall.bat" when compiling Cython code Question: As suggested here, I have succesfully installed Microsoft Visual C++ Compiler for Python 2.7 to compile some Cython code, but: from distutils.core import setup from Cython.Build import cythonize setup(ext_modules = cythonize(“module1.pyx”)) still produces: error: Unable to find vcvarsall.bat How to compile Cython code with Python …

Total answers: 3

Import error while calling from IIS hosted .NET Core API

Import error while calling from IIS hosted .NET Core API Question: I am facing the below issue while running a python script from a .NET Core api which is hosted in windows server IIS .I am using pyrfc 1.9.5 SAP connector in this script. Here is the code below from pyrfc import Connection def GetConnection(connmeta): …

Total answers: 1

Sending data from python to c++ as parameters or file?

Sending data from python to c++ as parameters or file? Question: I have two programs. My main program is in python and I have another one in c++ because I have to connect to a machine and the only way I can use this machine is a dll/lib made with c++ that the constructor gave …

Total answers: 1

Python, installing clarifai –> VS14.0 link.exe failed with exit status 1158

Python, installing clarifai –> VS14.0 link.exe failed with exit status 1158 Question: I’ve got a fresh installation of Python 3.6 + Selenium and now want to install Clarifai 2.0.21. The following command is failing: python -m pip install clarifai==2.0.21 At first it requested VC++ 14.0 but I had 14.1 (with VS2017), so I installed VC++2015 …

Total answers: 3

Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required

Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required Question: I am on a windows 10 machine and recently moved from python 2.7 to 3.5. When trying to install lxml through pip, it stops and throws this error message- building ‘lxml.etree’ extension error: Microsoft Visual C++ 14.0 is required. Get it with …

Total answers: 8

How to install numpy on windows using pip install?

How can I install NumPy on Windows using 'pip install'? Question: I want to install NumPy using the pip install numpy command, but I get the following error: RuntimeError: Broken toolchain: cannot link a simple C program I’m using Windows 7 32 bit, Python 2.7.9, pip 6.1.1 and some MSVC compiler. I think it uses …

Total answers: 8