Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

python - Error when running a python3 Xcode project (Too many levels of symbolic links and Operation not permitted) - macOS BigSur

I recently bought a new computer (I am completely new with macOS):

  • MacBook Pro (13-inch, M1, 2020)
  • Puce Apple M1
  • macOS Big Sur version 11.1

I would like to set-up a python3 development environment in Xcode.

I followed the following tutorial on the web.

I set up the project interpreter to Python3.

However, when I click on the play button (run), I get an error:

2021-01-09 12:17:40.062440+0100 python3[1139:27278] Failed to open macho file at /Applications/Xcode.app/Contents/Developer/usr/bin/python3 for reading: Too many levels of symbolic links

/Applications/Xcode.app/Contents/Developer/usr/bin/python3: can't open file 'PythonTest.py': [Errno 1] Operation not permitted

Program ended with exit code: 2

I also tried to execute python3 code in the cmd, its working well. So the problem seems to come from Xcode.

Moreover, I observed in my Xcode project that I can select among three propositions:

  • apple Silicon
  • apple Silicon (arm64)
  • apple Rosetta

What is the difference among them (in terms of python execution) ? Knowing that the error appears for each of the previous options.

Thanks for your help.

question from:https://stackoverflow.com/questions/65643335/error-when-running-a-python3-xcode-project-too-many-levels-of-symbolic-links-an

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...