apple-silicon

Azure function not running on M1

Azure function not running on M1 Question: Running import logging import azure.functions as func def main(req: func.HttpRequest) -> func.HttpResponse: logging.info(‘Python HTTP trigger function processed a request.’) name = req.params.get(‘name’) if not name: try: req_body = req.get_json() except ValueError: pass else: name = req_body.get(‘name’) if name: return func.HttpResponse(f"Hello, {name}. This HTTP triggered function executed successfully.") else: …

Total answers: 2

(mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

(mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')) Question: I have a problem when I run a .py file on a Macbook Air M1: [Running] python3 -u "/Users/kaiyuwei/Documents/graduation project/metaheuristics/run_CRO.py" Traceback (most recent call last): File "/Users/kaiyuwei/Library/Python/3.8/lib/python/site-packages/numpy/core/__init__.py", line 23, in <module> from . import multiarray File "/Users/kaiyuwei/Library/Python/3.8/lib/python/site-packages/numpy/core/multiarray.py", line 10, in <module> from . …

Total answers: 3

Unable to import pyodbc on Apple Silicon – Symbol not found: _SQLAllocHandle

Unable to import pyodbc on Apple Silicon – Symbol not found: _SQLAllocHandle Question: I am currently working on a python (3.8) project on my 2021 MacBook Pro with Apple Silicon. Ultimately, the goal is to build a ML model on data I read from an Azure SQL DB using Apple’s Tensorflow fork. Therefore, I am …

Total answers: 2