Deepakchawla / Mobile-Phone-Dataset-GSMArena

Python script for creating Mobile Phones Dataset on GSMArena website.
MIT License
59 stars 46 forks source link

'pwd' is not recognized as an internal or external command, #5

Closed bugrevealingbme closed 5 years ago

bugrevealingbme commented 5 years ago

GSMArenaDataset directory already exists Traceback (most recent call last): File "gsmarena_scraping.py", line 149, in obj.save_specification_to_file() File "gsmarena_scraping.py", line 121, in save_specification_to_file files_list = self.check_file_exists() File "gsmarena_scraping.py", line 115, in check_file_exists return os.listdir(self.absolute_path) FileNotFoundError: [WinError 3] Sistem belirtilen yolu bulamıyor: '/GSMArenaDataset'

Deepakchawla commented 5 years ago

@bugrevealingbme you have to delete the GSMArenaDataset folder and run again script.

voogarix commented 5 years ago

Hi. Same problem happend on my Windows 10 system. Already deleted GSMArenaDataset folder, tried run with/without admin rights but nothing change. Is there another solution?

voogarix commented 5 years ago

C:\Users\user\Desktop\Mobile-Phone-Dataset-GSMArena-master>python gsmarena_scraping.py 'pwd' is not recognized as an internal or external command, operable program or batch file. Creating GSMArenaDataset Folder.... Folder Created. Traceback (most recent call last): File "gsmarena_scraping.py", line 149, in obj.save_specification_to_file() File "gsmarena_scraping.py", line 121, in save_specification_to_file files_list = self.check_file_exists() File "gsmarena_scraping.py", line 115, in check_file_exists return os.listdir(self.absolute_path) FileNotFoundError: [WinError 3] The system cannot find the path specified: '/GSMArenaDataset'

voogarix commented 5 years ago

solved the problem. pwd is linux command. for run in Windows you have to change os.popen('pwd') to os.popen('echo %cd%')

Deepakchawla commented 5 years ago

@voogarix issue solved, now I am closing the issue.