This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Using pywin32 on Python3 on linux
Type: behavior Stage: resolved
Components: Installation Versions: Python 3.6
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: eryksun, mtischler
Priority: normal Keywords:

Created on 2017-02-03 00:14 by mtischler, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg286836 - (view) Author: Mark Tischler (mtischler) Date: 2017-02-03 00:14
I downloaded pywin32 build 220 from https://sourceforge.net/projects/pywin32/files/pywin32/, and tried to install it using 'python3 setup.py install' as well as 'python3 pywin32_postinstall.py -install' ("python3" = python 3.6.0), and the former gave me a syntax error about 'print' needing parentheses, and the latter gave me a syntax error about an 'except' statement having a syntax error, both of which tell me that this pywin32 package is not compatible with Python 3.  So, I went searching and found https://pypi.python.org/pypi/pypiwin32.  This is the same build number -- 220.  Given that it is a full year newer than the other (it's odd that its build number is the same), I thought that this might have changes in it to support Python3.  However, given that I'm installing on a Linux platform, I don't think I can deal with wheel files.  These downloadable files appear to be for Windows installations only.

I'm attempting to have an app, which is installed on a RedHat Linux machine, use SQL Server as its database, so my understanding is that I need the django-mssql package (I have version 1.8 ready to go) and that is dependent upon pywin32.  So, I'm wondering if there is a version of pywin32 that is compatible with Python 3.6.0 and that is installable on Red Hat Linux.

I am not using 'pip' to install packages, because my installation is not in the normal system area.  I have a library of multiple Python installations, so that the various apps installed on that machine can be pointed to one of several different versions of Python.

Note, I am somewhat new to Python and Python installations.  Any help would be appreciated.
msg286838 - (view) Author: Eryk Sun (eryksun) * (Python triager) Date: 2017-02-03 02:25
I'm closing this as a third-party issue that's unrelated to the development of CPython.

PyWin32 is a package of extension modules for accessing Windows C and COM APIs in Windows Python. You can't install it in Linux Python. You should be able to access SQL Server on Linux via django-pyodbc, using pyodbc and the FreeTDS driver.
History
Date User Action Args
2022-04-11 14:58:42adminsetgithub: 73612
2017-02-03 02:26:00eryksunsetstatus: open -> closed

nosy: + eryksun
messages: + msg286838

resolution: third party
stage: resolved
2017-02-03 00:14:13mtischlercreate