Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom importer and errors
#7
Quote:Maybe the loader I reinstanciate needs to be told that 'top' is a package, not a module?

I thought you were saying top.py is a module in some path of yours.

If top is a package, maybe ending in .whl, it needs to be installed, presumably with pip, as far as I know!

importlib will import modules "on-the-fly" I don't know if importlib can install packages, them import them. Read the docs.
Reply


Messages In This Thread
Custom importer and errors - by Fips - Apr-13-2024, 10:10 PM
RE: Custom importer and errors - by Pedroski55 - Apr-14-2024, 05:38 AM
RE: Custom importer and errors - by Fips - Apr-14-2024, 06:51 AM
RE: Custom importer and errors - by Pedroski55 - Apr-14-2024, 07:13 AM
RE: Custom importer and errors - by Fips - Apr-14-2024, 08:47 AM
RE: Custom importer and errors - by Gribouillis - Apr-14-2024, 08:58 AM
RE: Custom importer and errors - by Pedroski55 - Apr-14-2024, 02:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  informatio from importer to importee Skaperen 4 2,951 Nov-19-2018, 03:22 AM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020