You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the requests library (directly or via pynetbox) with pyATS on macOS with Apple Silicon, the process crashes with a segmentation fault during fork pre-exec. The same code works perfectly when run in a Linux environment (Docker).
Environment
OS: macOS Sonoma 14.4.1 (tested on both M1 and M2 architectures)
Python: 3.11 and 3.12
pyATS: 24.7, 24.9, and 24.10 (issue present in all versions)
requests: 2.31.0 and 2.32.3 (issue present in both versions)
Architecture: Apple Silicon (M1 and M2)
HTTP or HTTPS API calls
Steps to Reproduce
Create a simple test using requests within pyATS:
frompyatsimportaetestimportloggingimportrequestslogger=logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
classTestRequests(aetest.Testcase):
@aetest.setupdefsetup(self):
self.url="http://jsonplaceholder.typicode.com/posts/1"@aetest.testdeftest_simple_request(self):
response=requests.get(self.url)
logger.info(f"Response status code: {response.status_code}")
Description
When using the requests library (directly or via pynetbox) with pyATS on macOS with Apple Silicon, the process crashes with a segmentation fault during fork pre-exec. The same code works perfectly when run in a Linux environment (Docker).
Environment
Steps to Reproduce
Error output
Python crashes with a cryptic error, Stopping Context.
However, mac OS produces a crash report with the following details
The text was updated successfully, but these errors were encountered: