Ask coding questions

← Back to all posts
Why can't I import fyf using Python?
RixTheTyrunt

At https://importfyf.rixthetyrunt.repl.co, I have written this code:

And I tried that code in the repl named: "ImportFyf test!", but it gave me somekind of a error:

[!] 'fyf' not found in HTTP repository. Moving to next Finder.
Traceback (in most call last):
File "main.py", line 3, in <module>
import fyf
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap>", line 626, in _load_backward_compitable
KeyError: 'fyf'

Voters
RixTheTyrunt
Comments
hotnewtop
emilyDoesPascal

the fyf package cannot be imported by httpimport, as it simply does not exists for httpimport

RixTheTyrunt

Then how should I import fyf from a website?!

RixTheTyrunt

Does it mean I need to do this?:

RixTheTyrunt

Nope, invalid syntax

emilyDoesPascal

@RixTheTyrunt You can import fyf by doing this: