For hours today, yesterday, and intermittently since I’ve been on here (a month or so) lemmy stops loading using jerboa, liftoff, and a web browser.
The site isn’t listed on any down detector I know of, and each app gives different errors but ultimately just won’t load.
It’s often enough that recently when I consider jumping on here I just don’t because there will probably be an issue. Ranging from not loading, JSON errors, or just blank screens and my comments not working…
What’s going on? Is there a status page for these places?
First, edit the .ini file with your lemmy servers, usernames and passwords.
Then make sure you have python interpreter with requests installed. You can check this with
python3 -m pip show requests
. if it says something like package not found, you should look into how to install python requests on your operatation system. If you downloaded it from python.org,python3 -m pip install --user requests
should work.Then you can do
python3 lemmy-migrate.py -c config.ini
. Let me know if you run into any problems!Thank you, helpful person!
I edited the .ini file and installed python 3.11.4 without problems.
When I type
py
in powershell it repliesPython 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)] on win32
, so it was obviously installed successfully.However, when I copypasta the commands you posted I always get the same reply for each, that python could not be found. What does that mean? Do I maybe have to put a filepath into the command somewhere? Do requests have to be installed separately? What is the meaning of all this, the universe and everything and why does my back always hurt?
I bet replacing python3 with py will work:
py -m pip install --user requests py lemmy-migrate.py -c config.ini
>
py -m pip install --user requests
worked but also returned a warning:
WARNING: The script normalizer.exe is installed in ‘C:\Users\Username\AppData\Roaming\Python\Python311\Scripts’ which is not on PATH.
>
py lemmy-migrate.py -c config.ini
does not work and returns an error:
C:\Users\Username\AppData\Local\Programs\Python\Python311\python.exe: can’t open file ‘C:\Users\Username\lemmy-migrate.py’: [Errno 2] No such file or directory
I guess I have to place the files in a certain directory, putting them in the python folder did not help though.
Please help me further, we got close, I can feel it!
Did you try my suggestion in this comment?
https://lemmy.sdf.org/comment/1491482
I think your problem is that you aren’t pointing PowerShell at the right folder. You can use the
cd
command to get to the right folder containing the python script and config file.It is weird. I can navigate to the folder in powershell without a problem.
C:\Users\Username\Desktop\lemmy_migrate-1.1.0>
But when I execute
py lemmy-migrate.py -c config.ini
in there I get
C:\Users\Username\AppData\Local\Programs\Python\Python311\python.exe: can’t open file ‘C:\Users\Username\Desktop\lemmy_migrate-1.1.0\lemmy-migrate.py’: [Errno 2] No such file or directory
Edit:
Found the problem, it´s
py lemmy_migrate.py -c config.ini
and not
py lemmy-migrate.py -c config.ini
Thank you for the help!