现在已经解决了错误:出于将来的目的:我
使用PIP手动安装GRPCIO,这使我遇到了错误
暗示我有一个损坏的python框架,我卸载了
重新安装了Python和诗歌。
此特定线程很有帮助:
我MacOS版本:13.0 Beta
我输入命令时,我一直在遇到此错误:PythonPath =。诗歌运行Python Services/Tokenkeep/src/app.py来运行我的后端服务。
我得到了这个弹出窗口,有几个类似的弹出窗口,反复带有类似的文件名:
“ cimmutabledict.cpython-39-darwin.so”,因为
开发人员无法验证。
如果我将其移动到垃圾箱或取消弹出式UPS,我会收到一个追溯,这给我带来了导入错误:
Importerror:
dlopen(/Users/khawajajunaid/desktop/backend-python/.venv/lib/python3.9/site-packages/grpc/_cython/cython/cygrpc.cpython-39-darwin.so,
0x0002):尝试:
'/users/khawajajunaid/desktop/backend-python/.venv/lib/python3.9/site-packages/grpc/_cython/cython/cygrpc.cpython-39-darwin.so''
(< 2ED718E3-F901-35F5-968B-F85967D9BE12> gt;
'/users/khawajajunaid/desktop/backend-python/.venv/lib/python3.9/site-packages/grpc/_cython/cython/cygrpc.cpython-39-darwin.so''
在过程中无效:库负载被系统禁止
政策),
'/system/volumes/preboot/cryptexes/os/users/khawajajunaid/desktop/backend-pyend-python/.venv/lib/python3.9/site-packages/site-packages/grpc/_cycython/cycython/cygrepc.cpython-39-39-darwin.so''
(没有这样的文件),
'/users/khawajajunaid/desktop/backend-python/.venv/lib/python3.9/site-packages/grpc/_cython/cython/cygrpc.cpython-39-darwin.so''
(< 2ED718E3-F901-35F5-968B-F85967D9BE12> gt;
'/users/khawajajunaid/desktop/backend-python/.venv/lib/python3.9/site-packages/grpc/_cython/cython/cygrpc.cpython-39-darwin.so''
在过程中无效:库负载被系统禁止
策略)
我尝试再次安装诗歌,更新包裹并删除我的本地仓库,然后再次提取仓库,设置虚拟环境,但没有什么让我感到厌烦。
在我运行诗歌安装之后,它可以通过相同的设置工作正常,因为我在服务目录中看不到锁定文件,因此非常感谢您的整个服务。
The error has been resolved for now : for future purposes: I
installed the grpcio manually using pip which led me to an error
suggesting that I had a corrupted python framework, I uninstalled and
reinstalled python again and poetry.
This particular thread was helpful: https://gist.github.com/MuhsinFatih/ee0154199803babb449b5bb98d3475f7
My MacOS version : 13.0 Beta
I have been getting this error when I enter the command : PYTHONPATH=. poetry run python services/tokenkeep/src/app.py to run my backend service.
I get this pop up and there are a couple of popups like these that come repeatedly with different file names such as this:
“cimmutabledict.cpython-39-darwin.so” cannot be opened because the
developer cannot be verified.
If I move it to bin or cancel the pop ups I get a traceback which gives me an import error :
ImportError:
dlopen(/Users/khawajajunaid/Desktop/backend-python/.venv/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-darwin.so,
0x0002): tried:
'/Users/khawajajunaid/Desktop/backend-python/.venv/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-darwin.so'
(code signature in <2ED718E3-F901-35F5-968B-F85967D9BE12>
'/Users/khawajajunaid/Desktop/backend-python/.venv/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-darwin.so'
not valid for use in process: library load disallowed by system
policy),
'/System/Volumes/Preboot/Cryptexes/OS/Users/khawajajunaid/Desktop/backend-python/.venv/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-darwin.so'
(no such file),
'/Users/khawajajunaid/Desktop/backend-python/.venv/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-darwin.so'
(code signature in <2ED718E3-F901-35F5-968B-F85967D9BE12>
'/Users/khawajajunaid/Desktop/backend-python/.venv/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-darwin.so'
not valid for use in process: library load disallowed by system
policy)
I have tried installing poetry again, updating the packages and deleting my local repo and pulling the repo again, setting up the virtual environment but nothing has bore me fruit.
It was working fine with the same setup and messed up after I ran poetry install since I couldn't see my lock file in the service directory, would really appreciate some help, its been holding up my whole service.
发布评论