No module Found error in Linux but Works fine in Windows
I am attempting to run a Program that I coded in Python in Windows setting When I am attempting to replicate the program and also running it in Linux (Debian),. It will not function,
It is offering the adhering to mistake,
Traceback (most recent call last): File "BlackBox.py", line 26, in <module> from BB_Files import BB_Expand ImportError: No module named BB_Files
Despite the visibility of the documents BB_Expand inside BB_Files folder, I am still obtaining the mistake.
I have actually additionally attempted adding the course of my existing directory sites in Python,
sys.path.append("/home/pe/Desktop/AES") # Sub-Folders of AES are also accessible sys.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 result 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.py
This is some first code in the documents,
import sys # sys.argv ; sys.path, sys.exit import os import hashlib import struct # Interpret strings as packed binary data import getopt # for Runtime arguments import time from 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 accessible sys.path.append("/home/pe/Desktop/AES/BB_Files") # Sub-Fodlers of BB_Files are also accessible now (Tables) from BB_Files import BB_Expand from BB_Files import BB_Steps from BB_Files import BB_Days
This is the line offering a mistake,
from BB_Files import BB_Expand
The program does not pursued this line due to the fact that the Python could not locate this Module.
The very same code functions definitely great in Windows.
could any person please aid me out with this?