239
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 25 Jul 2023
239 points (100.0% liked)
Fediverse
35912 readers
193 users here now
A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).
If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!
Rules
- Posts must be on topic.
- Be respectful of others.
- Cite the sources used for graphs and other statistics.
- Follow the general Lemmy.world rules.
Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration)
founded 2 years ago
MODERATORS
I bet replacing python3 with py will work:
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.
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!