HealthSciTech / Dynamic_iFogSim

Full-Stack IoT Simulator
GNU General Public License v3.0
9 stars 1 forks source link

Regarding Dynamic iFogSim #1

Open AbhilashPati opened 3 years ago

AbhilashPati commented 3 years ago

PS D:\Dynamic IFogSim\Dynamic_iFogSim> python platform_controller.py brute_force system_configurations/devices/device_setting.cfg FallDetection Traceback (most recent call last): File "D:\Dynamic IFogSim\Dynamic_iFogSim\platform_controller.py", line 5, in import docker ModuleNotFoundError: No module named 'docker' PS D:\Dynamic IFogSim\Dynamic_iFogSim>

DongDongJu commented 3 years ago

Hello, Please install docker library for python.

Thanks

AbhilashPati commented 3 years ago

Respected sir,

I am currently doing research on Fog Computing. The framework named "Dynamic iFogSim" is quite impressive in this regard. But, I am failing to use this on my local PC. Will you please help me in this regard.

First, I have installed Docker.

Next using Powershell,

git clone https://github.com/HealthSciTech/Dynamic_iFogSim

cd snipersim docker build -t sniper . cd ..

python3 platform_controller.py brute_force system_configurations/devices/device_setting.cfg FallDetection

I have given you a mail

I am facing problems while running brute force agent with example configs using Dynamic iFogSim.

PS D:\Dynamic IFogSim\Dynamic_iFogSim> python platform_controller.py brute_force system_configurations/devices/device_setting.cfg FallDetection Traceback (most recent call last): File "D:\Dynamic IFogSim\Dynamic_iFogSim\platform_controller.py", line 5, in import docker ModuleNotFoundError: No module named 'docker' PS D:\Dynamic IFogSim\Dynamic_iFogSim>

Wishing a positive and quick response in this regard.

And you responded to install the python library for docker.

Then, I have tried

  1. pip install docker
  2. pip install docker-py
  3. docker pull python

The same problem I have right now.

PS D:\Dynamic IFogSim\Dynamic_iFogSim> python platform_controller.py brute_force system_configurations/devices/device_setting.cfg FallDetection Traceback (most recent call last): File "D:\Dynamic IFogSim\Dynamic_iFogSim\platform_controller.py", line 5, in import docker ModuleNotFoundError: No module named 'docker' PS D:\Dynamic IFogSim\Dynamic_iFogSim>

Please help me in this regard.

On Tue, Apr 6, 2021 at 5:00 PM Dongjoo Seo @.***> wrote:

Hello, Please install docker library for python.

Thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/HealthSciTech/Dynamic_iFogSim/issues/1#issuecomment-814046568, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATRYOWQSYKI7ECFFBCI6Q43THLWHDANCNFSM42OECFMA .

-- Thanks and Regards, Er Abhilash Pati Ph.D. (CSE), M.Tech.(CSE)-B.Tech (CSE), MBA (HR and IT) UGC - NET QUALIFIED (2019) MIAENG, MUSERN, MCSTA, Research Scholar, Dept. of CSE, ITER *(Faculty of Engineering and Technology), Siksha 'O' Anusandhan (Deemed to be University) Bhubaneswar-751030, Odisha, INDIA E_mail: ER.ABHILASH.PATI@GMAIL.COM ER.ABHILASH.PATI@GMAIL.COM

DongDongJu commented 3 years ago

that's because you used pip, not pip3. pip is for python version2.

AbhilashPati commented 3 years ago

Respected Sir,

Thanks for the quick response. Now I have installed using the command

pip install docker[tls]

and Then

PS D:\Dynamic IFogSim\Dynamic_iFogSim> python platform_controller.py brute_force system_configurations/devices/device_setting.cfg FallDetection edge edge.cfg fog fog.cfg cloud cloud.cfg number_of_core_edge 8 number_of_core_fog 4 number_of_edge 1 number_of_fog 1 number_of_cloud start to get the MIPS of workload from virtual devices with snipersim 1,399.9992918330103,1440.0349587801666,1536.358076,3530.309567 Traceback (most recent call last): File "D:\Dynamic IFogSim\Dynamic_iFogSim\platform_controller.py", line 151, in _main() File "D:\Dynamic IFogSim\Dynamic_iFogSim\platform_controller.py", line 132, in _main agent = check_agent_available(args.agent) File "D:\Dynamic IFogSim\Dynamic_iFogSim\platform_controller.py", line 108, in check_agent_available return BruteForceAgent(int(devices_cfg['number_of_edge']), devices_cfg) File "D:\Dynamic IFogSim\Dynamic_iFogSim\cross_layer_controller\brute_force.py", line 36, in init self.data_dic[k] = self.runIFogSim(class_num,packet_loss,processing,number_of_apps,cloud_network_type,policies) File "D:\Dynamic IFogSim\Dynamic_iFogSim\cross_layer_controller\brute_force.py", line 86, in runIFogSim self.makeConfigFile(class_num, packet_loss, processing, number_of_apps, cloud_network_type, policies) File "D:\Dynamic IFogSim\Dynamic_iFogSim\cross_layer_controller\brute_force.py", line 75, in makeConfigFile output = subprocess.Popen(run_cmd, File "C:\Python\Python392\lib\subprocess.py", line 951, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Python\Python392\lib\subprocess.py", line 1420, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified PS D:\Dynamic IFogSim\Dynamic_iFogSim>

Will you please help me to solve this problem?

Wishing a positive responce in this regard.

On Wed, Apr 7, 2021 at 11:48 AM Dongjoo Seo @.***> wrote:

that's because you used pip, not pip3. pip is for python version2.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/HealthSciTech/Dynamic_iFogSim/issues/1#issuecomment-814634849, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATRYOWTMHAD62MKO3KMZO2DTHP2JTANCNFSM42OECFMA .

-- Thanks and Regards, Er Abhilash Pati Ph.D. (CSE), M.Tech.(CSE)-B.Tech (CSE), MBA (HR and IT) UGC - NET QUALIFIED (2019) MIAENG, MUSERN, MCSTA, Research Scholar, Dept. of CSE, ITER *(Faculty of Engineering and Technology), Siksha 'O' Anusandhan (Deemed to be University) Bhubaneswar-751030, Odisha, INDIA E_mail: ER.ABHILASH.PATI@GMAIL.COM ER.ABHILASH.PATI@GMAIL.COM

DongDongJu commented 3 years ago

I think this is path string issue with windows. I never tested it with windows. I will take a look at this after April 9.

AbhilashPati commented 3 years ago

Respected sir,

Thanks again for your quick reply.

Can you please provide me a video lecture to install it in my Ubuntu system ?

On Wed, 7 Apr, 2021, 3:08 pm Dongjoo Seo, @.***> wrote:

I think this is path string issue with windows. I never tested it with windows. I will take a look at this after April 9.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/HealthSciTech/Dynamic_iFogSim/issues/1#issuecomment-814769379, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATRYOWSGPRHFB6LMKW5UBM3THQRXZANCNFSM42OECFMA .

AbhilashPati commented 3 years ago

Respected Sir,

I have tried Dynamic iFogSim in the Ubuntu Platform.

The output is

(base) @.Inspiron-5558:~/Dynamic_iFogSim$ python3 platform_controller.py brute_force system_configurations/devices/device_setting.cfg FallDetection edge edge.cfg fog fog.cfg cloud cloud.cfg number_of_core_edge 8 number_of_core_fog 4 number_of_edge 1 number_of_fog 1 number_of_cloud start to get the MIPS of workload from virtual devices with snipersim Traceback (most recent call last): File "platform_controller.py", line 151, in _main() File "platform_controller.py", line 128, in _main edge_MIPS, fog_MIPS = get_two_layer_MIPS_from_snipersim(destroy_and_construct_snipersim()) File "platform_controller.py", line 19, in destroy_and_construct_snipersim remove_all_containers(client) File "platform_controller.py", line 14, in remove_all_containers for container in client.containers.list(): AttributeError: 'function' object has no attribute 'list' (base) @.Inspiron-5558:~/Dynamic_iFogSim$

What to do next?

Please respond me.

Thanks & Regards,

On Wed, Apr 7, 2021 at 3:26 PM Er Abhilash Pati @.***> wrote:

Respected sir,

Thanks again for your quick reply.

Can you please provide me a video lecture to install it in my Ubuntu system ?

On Wed, 7 Apr, 2021, 3:08 pm Dongjoo Seo, @.***> wrote:

I think this is path string issue with windows. I never tested it with windows. I will take a look at this after April 9.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/HealthSciTech/Dynamic_iFogSim/issues/1#issuecomment-814769379, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATRYOWSGPRHFB6LMKW5UBM3THQRXZANCNFSM42OECFMA .

-- Thanks and Regards, Er Abhilash Pati Ph.D. (CSE), M.Tech.(CSE)-B.Tech (CSE), MBA (HR and IT) UGC - NET QUALIFIED (2019) MIAENG, MUSERN, MCSTA, Research Scholar, Dept. of CSE, ITER *(Faculty of Engineering and Technology), Siksha 'O' Anusandhan (Deemed to be University) Bhubaneswar-751030, Odisha, INDIA E_mail: ER.ABHILASH.PATI@GMAIL.COM ER.ABHILASH.PATI@GMAIL.COM

DongDongJu commented 3 years ago

reinstalled docker to 2.1.0, issues is gone.

AbhilashPati commented 3 years ago

Please provide me the detailed steps how to reinstall docker 2.1.0 in Ubuntu.

On Sun, 11 Apr, 2021, 2:32 am Dongjoo Seo, @.***> wrote:

reinstalled docker to 2.1.0, issues is gone.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/HealthSciTech/Dynamic_iFogSim/issues/1#issuecomment-817201633, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATRYOWUQBVGSNGXMHO3WLNLTIC4ETANCNFSM42OECFMA .