mozilla-services / syncserver

Run-Your-Own Firefox Sync Server
Mozilla Public License 2.0
1.86k stars 142 forks source link

Ubuntu 20.04: PyFxA installed but cannot be found #260

Open zilexa opened 3 years ago

zilexa commented 3 years ago

To delete the sync data on Mozilla servers after your local syncserver is up and running, the documentation explains how to install this tool and run it. However, it cannot be found after installation. I searched my $HOME/.local directory and I did find PyFxA folders but none contain the delete script. Where is it stored?

python3 ./bin/delete_user_data.py my@email.com
python3: can't open file './bin/delete_user_data.py': [Errno 2] No such file or directory

Installation:

$ pip3 install PyFxA
Collecting PyFxA
  Downloading PyFxA-0.7.7.tar.gz (39 kB)
Collecting PyBrowserID
  Downloading PyBrowserID-0.14.0.tar.gz (36 kB)
Requirement already satisfied: PyJWT in /usr/lib/python3/dist-packages (from PyFxA) (1.7.1)
Requirement already satisfied: cryptography in /usr/lib/python3/dist-packages (from PyFxA) (2.8)
Collecting hawkauthlib
  Downloading hawkauthlib-2.0.0-py2.py3-none-any.whl (32 kB)
Requirement already satisfied: requests>=2.4.2 in /usr/lib/python3/dist-packages (from PyFxA) (2.22.0)
Requirement already satisfied: six>=1.14 in /usr/lib/python3/dist-packages (from PyFxA) (1.14.0)
Collecting webob
  Downloading WebOb-1.8.6-py2.py3-none-any.whl (114 kB)
     |████████████████████████████████| 114 kB 14.0 MB/s 
Building wheels for collected packages: PyFxA, PyBrowserID
  Building wheel for PyFxA (setup.py) ... done
  Created wheel for PyFxA: filename=PyFxA-0.7.7-py2.py3-none-any.whl size=48425 sha256=b29f5bc3a7eca18e0bc370841ed2d0af64372d7cd1c91574e5ed1f21b836f46e
  Stored in directory: /home/asterix/.cache/pip/wheels/ef/eb/a2/623b7c650354e09e2c839f1616ecfab822da90cafc2fe5858b
  Building wheel for PyBrowserID (setup.py) ... done
  Created wheel for PyBrowserID: filename=PyBrowserID-0.14.0-py3-none-any.whl size=46573 sha256=bdaf9b74d4d704c8efb9906f46909938b042dff24cd90db5cf0a2c8f99cd4f49
  Stored in directory: /home/asterix/.cache/pip/wheels/cf/4e/c2/ee3f11dbc794c78b774b1a56689f7222b0323888b63d85f582
Successfully built PyFxA PyBrowserID
Installing collected packages: PyBrowserID, webob, hawkauthlib, PyFxA
Successfully installed PyBrowserID-0.14.0 PyFxA-0.7.7 hawkauthlib-2.0.0 webob-1.8.6
rfk commented 3 years ago

I think you need to run the tool from a checkout of this repo, so it would be something like:

git clone https://github.com/mozilla-services/syncserver
cd ./syncserver
./bin/delete_user_data.py my@email.com

The script is not bundled with PyFxA.