Open kb100824 opened 3 years ago
I could manually install ponyd on macOS Big Sur 11.5.2.
Instructions
You have to use python2 for this, and pip for python2 (pip2).
Check pip version:
--pip2 version
or
python2 -m pip --version
If there is no pip2, then you must install it. This is how to install pip2:
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
After python2 and pip2 is ready, clone PonyDebugger repo or download ZIP and unzip it:
git clone https://github.com/square/PonyDebugger.git
Create and activate virtual environment by setting python2 as an interpreter:
virtualenv -p python2 venv
source venv/bin/activate
Go into PonyDebugger folder (or PonyDebuffer-master if you have unzipped):
cd PonyDebugger
And then, run installation command. BUT, here is the trick comes:
python setup.py install
pip install .
NOTE: The first step might fail, but it doesn't matter. Running 2nd step before 1st step fails with error about bounjour-blablabla. So, pass first step, then second.
And that is it!
PS: first time you run ponyd it might require you to update devtools, so follow instructions or run the following command:
ponyd update-devtools
PS: if you have issue with 404 error (after running ponyd serve), copy PonyDebugger/ponyd/web folder to venv/lib/python2.7/site-packages/ponyd folder:
cp -r PonyDebugger/ponyd/web venv/lib/python2.7/site-packages/ponyd
Good luck!
Refer to this method to install cannot be successful
error logs :