October 24, 2024
Chicago 12, Melborne City, USA
python

Trying to include an egg file in the python using sys.path.extend. ending up in


I tried to add an egg file in sys.path using

egg_glob = os.path.dirname(__file__) + "/../../build/oh-tree/*.egg"
# print(egg_glob)
#eggs = reversed(sorted(glob.glob(egg_glob)))
sys.path.extend(glob.glob(egg_glob))

and then tried to import using
import oh.archive_log

but iam seeing this error.
enter image description here
import oh.archive_log
:1007: in _find_and_load
???
:986: in _find_and_load_unlocked
???
:664: in _load_unlocked
???
:627: in _load_backward_compatible
???

What am i doing wrong?



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video