asimptot / FollowerBot

Follower bot for Instagram
191 stars 67 forks source link

TypeError: expected str, bytes or os.PathLike object, not NoneType #53

Closed santymart1nez closed 1 year ago

santymart1nez commented 1 year ago

Getting followers... Please do not terminate the program. Traceback (most recent call last): File "C:\Users\Edit\Desktop\FollowerBot-main\get_instagram_followers.py", line 46, in ig.setup() File "C:\Users\Edit\Desktop\FollowerBot-main\get_instagram_followers.py", line 13, in setup Setup.init(self) File "C:\Users\Edit\Desktop\FollowerBot-main\init.py", line 15, in init self.browser = uc.Chrome(options=chrome_options, version_main=108) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Edit\AppData\Local\Programs\Python\Python311\Lib\site-packages\undetected_chromedriver__init.py", line 421, in init browser = subprocess.Popen( ^^^^^^^^^^^^^^^^^ File "C:\Users\Edit\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1024, in init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\Edit\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1433, in _execute_child args = list2cmdline(args) ^^^^^^^^^^^^^^^^^^ File "C:\Users\Edit\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 608, in list2cmdline for arg in map(os.fsdecode, seq): File "", line 824, in fsdecode TypeError: expected str, bytes or os.PathLike object, not NoneType

Help pls!

asimptot commented 1 year ago

Please apply this solution.

https://github.com/asimptot/FollowerBot/issues/39#issuecomment-1398057818

santymart1nez commented 1 year ago

I did what you told me and now I have this error: Traceback (most recent call last): File "C:\Users\Edit\Desktop\FollowerBot-main\get_instagram_followers.py", line 4, in from init import * File "C:\Users\Edit\Desktop\FollowerBot-main\init.py", line 11 def init(self): ^ IndentationError: expected an indented block after class definition on line 10

asimptot commented 1 year ago

Can you send your error in screenshot format? Becuase I don't see what happened in line 4 and 11 on your local.

santymart1nez commented 1 year ago

Captura de pantalla (15)

asimptot commented 1 year ago

Please apply this solution.

https://github.com/asimptot/FollowerBot/issues/39#issuecomment-1398057818

santymart1nez commented 1 year ago

Captura de pantalla (16)

asimptot commented 1 year ago

This error is not caused by my side. You should use TABs. Otherwise, Python doesn't allow to run your code.