There isn't a way to instantiate `Page` from an id. You need a title.
What you are attempting with page_from_repository is for sites with a Wikibase repository and uses the Wikibase QID, not the page id from the database.
I usually have some variation of the below when using pywikibot's page generators on the CLI.
local_args = pywikibot.handle_args()
site = pywikibot.Site()
gen_factory = pywikibot.pagegenerators.GeneratorFactory(site)
script_args = gen_factory.handle_args(local_args)
gen = gen_factory.getCombinedGenerator(preload=True)