mardi 14 octobre 2014

PyCharm: Moving a project into a sister folder


Vote count:

0




I have recently moved the folder an existing PyCharm project is in. My pipeline of scripts now are having issues identifying the other scripts as modules. The error code I receive is the following:



Traceback (most recent call last):
File "/Users/donaldvetal/anaconda/lib/python2.7/site-
packages/IPython/core/interactiveshell.py", line 2883, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-4-84c563cce2e6>", line 4, in <module>
import performTopicAnalysis as ta
ImportError: No module named performTopicAnalysis


In this case I am calling the perfromTopicAnalysis.py file as an import in my other file called dt_company.py. Also note these scripts are located in the same directory. All of these scripts are located in an app folder of a django project.


Why is this happening and what might be a good solution to this? Thank you!



asked 1 min ago







PyCharm: Moving a project into a sister folder

Aucun commentaire:

Enregistrer un commentaire