Python Forum
Pymssql library failing when upgrading to Python 3.7 - win32 issue
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pymssql library failing when upgrading to Python 3.7 - win32 issue
#1
Hi,

I upgraded Python from 3.4 to 3.7 and now when I test my code I get the error

File "J:\Python_Scripts\Python_Application_Testing_Briars\BriarsNurseryApp.pyw", line 13, in <module>
import pymssql #http://pymssql.org/en/stable/
File "src\_mssql.pxd", line 10, in init pymssql
ImportError: DLL load failed: %1 is not a valid Win32 application.


I've read discussions and have tried various suggestions, such as installing the pymssql wheel directly from https://www.lfd.uci.edu/~gohlke/pythonlibs/ and uninstalling/upgrading pip, Python and pymssql but nothing works.
My machine is 64bit so I installed the Windows x86-64 web-based installer version of Python. I did try the 32bit version but other errors appeared.
There doesn't appear to be a win32 version of pymssql so it fails. Has anyone else had this problem specificially with pymssql and Python 3.7? I also read the error could be misleading.

Thanks Wall
Reply


Messages In This Thread
Pymssql library failing when upgrading to Python 3.7 - win32 issue - by stixmagiggins - Jun-22-2019, 09:28 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Failing to connect by 'net use' tester_V 1 183 Apr-20-2024, 06:31 AM
Last Post: tester_V
  Failing regex tester_V 3 1,185 Aug-16-2022, 03:53 PM
Last Post: deanhystad
  Upgrading from 2 to 3 and having file write problems KenHorse 2 1,499 May-08-2022, 09:47 PM
Last Post: KenHorse
  Python library for win32 console commands eldiener 3 3,484 Aug-24-2021, 10:28 PM
Last Post: bowlofred
  Win32\ping.exe windows pops up -very annoying... tester_V 9 3,235 Aug-12-2021, 06:54 AM
Last Post: tester_V
  Failing to connect to a host with WMI tester_V 6 4,399 Aug-10-2021, 06:25 PM
Last Post: tester_V
  Failing to get Stat for a Directory tester_V 11 3,568 Jul-20-2021, 10:59 PM
Last Post: Larz60+
  Issue with a library ebolisa 2 1,782 Feb-27-2021, 08:35 AM
Last Post: ebolisa
Exclamation binwalk Win32 compile hackstunt 2 3,818 Feb-24-2021, 05:14 PM
Last Post: nilamo
  Virtual environment and upgrading python 3.5 to 3.9 NeilUK 4 12,175 Jan-24-2021, 01:02 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020