Skip to content

Import PPD file #8

Answered by ThomasAkam
YinHana0505 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Hana,

This error is happening because the data_import module is not located anywhere where Python is looking for it, so Python is failing to import it. See here for more information about where the python interpreter looks for modules. The simplest way to fix this is to create a code folder for your project where you will locate the python files that you use for that project's analysis. Then copy the file data_import.py from pyPhotometry/tools folder into the code folder. When you open a python interpreter, you will then need to set the current working directory to the code folder you created. If you use an IDE like Spyder you can do this using the folder browser in the GUI. Alternativ…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ThomasAkam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants