# Can't load python file using paths

**URL:** <https://forum.anaconda.com/t/cant-load-python-file-using-paths/47841>\
**Category:** PyScript\
**Created:** [December 24, 2022, 2:47am UTC](https://forum.anaconda.com/t/cant-load-python-file-using-paths/47841 "2022-12-24T02:47:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hsauro](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/hsauro/32/2758_2.png) [@hsauro](https://forum.anaconda.com/u/hsauro)\
**Post date:** [December 24, 2022, 2:47am UTC](https://forum.anaconda.com/t/cant-load-python-file-using-paths/47841/1 "2022-12-24T02:47:25Z")

</div>

I saw the message about loading multiple python files. However I have been unable to get it to load even one file. I can load a python file using but I noticed one can’t load multiple files this way as they overwrite each other. I tried the path solution but I can’t get it to work:

 paths = ['./myadd.py']

I also just tried paths = [‘myadd.py’]

I’m pulling the python file from a [github.io](http://github.io) page if that matters. The error message I get is the following when I try to import myadd

Traceback (most recent call last):  
File “/lib/python3.10/site-packages/\_pyodide/\_base.py”, line 435, in eval\_code  
.run(globals, locals)  
File “/lib/python3.10/site-packages/\_pyodide/\_base.py”, line 304, in run  
coroutine = eval(self.code, globals, locals)  
File “”, line 2, in   
ModuleNotFoundError: No module named ‘myadd’

---

<div class="post-metadata">

**Author:** ![JeffGlass](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/jeffglass/32/1301_2.png) [@JeffGlass](https://forum.anaconda.com/u/JeffGlass)\
**Post date:** [December 27, 2022, 1:48pm UTC](https://forum.anaconda.com/t/cant-load-python-file-using-paths/47841/2 "2022-12-27T13:48:51Z")

</div>

HI @hsauro, and welcome to the forum!

As of version 2022.12.1, the `paths` syntax has been deprecated in favor of the more powerful `[[fetch]] configurations`. Fetch (a new table in py-config) allows for loading multiple files, and load them into different places in the emscripten virtual file system if desired.

See the [fetch section of the py-config documentation](https://docs.pyscript.net/latest/reference/elements/py-config.html#a-name-fetch-fetch-a) for more details, or [this section of my recent release writeup](https://jeff.glass/post/whats-new-pyscript-2022-12-1/#paths) for a more narrative description with examples.
