StackOverflow Questions for Tag: python-importlib

Delgan
Delgan

Reputation: 19677

How to modify imported source code on-the-fly?

Score: 26

Views: 27430

Answers: 6

Read More
hzcodec
hzcodec

Reputation: 57

python importlib from subdirectory, module not found

Score: 0

Views: 46

Answers: 1

Read More
pgossa
pgossa

Reputation: 285

Get app version from pyproject.toml inside python code

Score: 13

Views: 13697

Answers: 6

Read More
GalaxyGamerYT
GalaxyGamerYT

Reputation: 21

How to dynamically import functions from a file in a subdirectory?

Score: 0

Views: 52

Answers: 2

Read More
pop
pop

Reputation: 31

Getting ModuleNotFoundError: No module named 'importlib.resources'

Score: 3

Views: 17813

Answers: 1

Read More
user1179317
user1179317

Reputation: 2923

Python load tempfile as module

Score: 0

Views: 289

Answers: 2

Read More
Xbox One
Xbox One

Reputation: 303

Is there any way to get the installed modules without version info with pip?

Score: 2

Views: 3927

Answers: 3

Read More
Lars
Lars

Reputation: 11

Overriding pip package

Score: 1

Views: 43

Answers: 0

Read More
hl037_
hl037_

Reputation: 3907

Is it possible to create a dynamic module with a custom `__dict__` class?

Score: 3

Views: 67

Answers: 1

Read More
Paul
Paul

Reputation: 116

Django autoreload raises: TypeError: unhashable type: 'types.SimpleNamespace'

Score: 5

Views: 617

Answers: 2

Read More
John Gibb
John Gibb

Reputation: 1

How to specify package and module relative paths for importlib.import_module?

Score: 0

Views: 18

Answers: 0

Read More
jmpion
jmpion

Reputation: 11

Reloading torch triggers RuntimeError

Score: 1

Views: 354

Answers: 0

Read More
Albin Antony
Albin Antony

Reputation: 805

OSError: Bad file descriptor

Score: 0

Views: 48

Answers: 1

Read More
FamousSnake
FamousSnake

Reputation: 451

Why undeclared variables are present in `globals()` after a reload and is it safe to use them to identify a reload?

Score: 0

Views: 59

Answers: 2

Read More
Yaseen
Yaseen

Reputation: 94

How do I dynamically define a package level __all__ without running any slow code in the package's constituent modules?

Score: 0

Views: 35

Answers: 1

Read More
DurandA
DurandA

Reputation: 1559

How to handle extra requirements when also used as type hints?

Score: 5

Views: 372

Answers: 2

Read More
Pedro Cattori
Pedro Cattori

Reputation: 2805

Python 3.5+: How to dynamically import a module given the full file path (in the presence of implicit sibling imports)?

Score: 44

Views: 16348

Answers: 6

Read More
Simon
Simon

Reputation: 985

Reload custom python function

Score: -1

Views: 61

Answers: 1

Read More
Dushyant
Dushyant

Reputation: 46

Hidden import "importlib_resources.trees" not found

Score: 0

Views: 371

Answers: 0

Read More
baxx
baxx

Reputation: 4745

Typehint importing module dynamically using importlib

Score: 6

Views: 1986

Answers: 1

Read More
PreviousPage 1Next