'M1 Mac Snowflake connector for python - error: incompatible version of 'pyarrow' installed

I am getting an error message (please see screenshoot) while running in Terminal the command below:

import snowflake.connector as sf

Can someone help with this ? Thank you.

Terminal error message M1 Mac



Solution 1:[1]

I solved it by creating a new template and then modifying its .vcxproj file. Here are the steps to create a console app with x64 platform only.

  1. Create a new console project.
  2. Export it as a template. I called it console_64.
  3. Go to "C:\Users<user>\Documents\Visual Studio 2019\My Exported Templates". Here you will find the template zip file, in my case, console_64.zip.
  4. Extract the .vcxproj file.
  5. In the project file, delete all XML nodes that refer to Win32. These will be <ProjectConfiguration>, <PropertyGroup>, <ItemDefinitionGroup> and <ImportGroup> nodes.
  6. Save the file and update the zip overwriting the existing .vcxproj file in there.

Start a new VS session and voila! I now have a template, console_64, that creates a console solution with only the x64 target.

It will only save me a handful of mouse clicks per year yet I'd still like to know how to do it globally.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 stumit63