I am trying to run a Program that I coded in Python in Windows environment When I am trying to copy the program and running it in Linux(Debian),It won't work,It is giving the following error,Traceback (most recent call last):  File BlackBox.py, line 26, in <module>    from BB_Files import BB_ExpandImportError: No module named BB_FilesDespite the presence of the file BB_Expand inside BB_Files folder, I am still getting the error.I have also tried appending the path of my current directories in Python,sys.path.append(/home/pe/Desktop/AES)# Sub-Folders of AES are also accessiblesys.path.append(/home/pe/Desktop/AES/BB_Files)But Still no Luck,This is the File Structure,/home/pe/Desktop/AES/Main.py/home/pe/Desktop/AES/BB_Files/home/pe/Desktop/AES/BB_Files/BB_Days.py/home/pe/Desktop/AES/BB_Files/BB_Expand.py/home/pe/Desktop/AES/BB_Files/BB_Steps.py this is the output of ls -l command,drwxrwx--x 4 pe users  4096 Oct 26 21:43 BB_Files-rw-rw---- 1 pe users 15284 Oct 26 22:04 Main.pyThis is some initial code in the file,import sys    # sys.argv ; sys.path, sys.exitimport osimport hashlibimport struct # Interpret strings as packed binary dataimport getopt # for Runtime argumentsimport timefrom datetime import date# Append Paths from where the Files would be Imported.sys.path.append(/home/pe/Desktop/AES)# Sub-Folders of AES are also accessiblesys.path.append(/home/pe/Desktop/AES/BB_Files)# Sub-Fodlers of BB_Files are also accessible now (Tables)from BB_Files import BB_Expandfrom BB_Files import BB_Stepsfrom BB_Files import BB_DaysThis is the line giving an error,from BB_Files import BB_ExpandThe program doesn't run after this line because the Python couldn't find this Module.The same code works absolutely fine in Windows.could anyone please help me out with this ?
No module Found error in Linux but Works fine in Windows
linux;python
You need to create a (possible empty) file called __init__.py in your BB_Files folder. From the docs:The __init__.py files are required to make Python treat the directories as containing packages; this is done to prevent directories with a common name, such as string, from unintentionally hiding valid modules that occur later on the module search path. In the simplest case, __init__.py can just be an empty file, but it can also execute initialization code for the package