Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install ponyd normally #217

Open
kb100824 opened this issue Apr 1, 2021 · 1 comment
Open

Can't install ponyd normally #217

kb100824 opened this issue Apr 1, 2021 · 1 comment

Comments

@kb100824
Copy link

kb100824 commented Apr 1, 2021

Refer to this method to install cannot be successful

curl -sk https://cloud.github.com/downloads/square/PonyDebugger/bootstrap-ponyd.py | \
  python - --ponyd-symlink=/usr/local/bin/ponyd ~/Library/PonyDebugger

error logs :

 File "<stdin>", line 1806
    print "Symlink to %s already exists. (continuing anyways)" % symlink_target
                                                             ^

@ikrom92
Copy link

ikrom92 commented Sep 8, 2021

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants