InstaLooter icon indicating copy to clipboard operation
InstaLooter copied to clipboard

Problem downloading at all on new install

Open rizkiyoist opened this issue 6 years ago • 4 comments

I had: Python 3.5.4 (v3.5.4:3f56838, Aug 8 2017, 02:07:06) [MSC v.1900 32 bit (Intel)] on win32 Windows 7 instalooter 1.0.0-a.5

When I use: $instalooter post "https://www.instagram.com/p/BFB6znLg5s1/"

traceback shows: Traceback (most recent call last):

File "C:\Users\x96\AppData\Roaming\Python\Python35\site-packages\instalooter\c
li\__init__.py", line 170, in main
   dlpbar_cls=None if args['--quiet'] else TqdmProgressBar)
 File "C:\Users\x96\AppData\Roaming\Python\Python35\site-packages\instalooter\l
ooters.py", line 811, in download
   new_only, condition)
 File "C:\Users\x96\AppData\Roaming\Python\Python35\site-packages\instalooter\l
ooters.py", line 583, in _fill_media_queue
   for media in six.moves.filter(_condition, medias_iter):
 File "C:\Users\x96\AppData\Roaming\Python\Python35\site-packages\instalooter\l
ooters.py", line 775, in medias
   info = self.info
 File "C:\Users\x96\AppData\Roaming\Python\Python35\site-packages\instalooter\l
ooters.py", line 743, in info
   self._info = self.get_post_info(self.code)
 File "C:\Users\x96\AppData\Roaming\Python\Python35\site-packages\instalooter\l
ooters.py", line 319, in get_post_info
   with self.session.get(url) as res:
AttributeError: __exit__

Any idea why? I also have updated 'requests' $pip install --user -U requests

If I added a directory, it will create a directory but nothing inside.

rizkiyoist avatar Oct 08 '18 16:10 rizkiyoist

This issue really looks like an outdated requests version. Are you sure you did update request with Python 3.5 and not another version ?

althonos avatar Oct 13 '18 19:10 althonos

Yeah I reinstalled requests just in case, making sure it is installing in the correct directory too. Successfully installed chardet-3.0.4 requests-2.19.1 Also tried using the requests inside Python shell and it works. Is it possible to see which Python directory Instalooter is trying to use?

rizkiyoist avatar Oct 13 '18 22:10 rizkiyoist

According to your error traceback, it's C:\Users\x96\AppData\Roaming\Python\Python35\.

althonos avatar Oct 16 '18 17:10 althonos

Oh I see. The executable is in that directory but I thought just maybe it tries to run Python 2.7 which is also installed. Uninstalled that and still nothing. I have no idea anymore, because requests works.

rizkiyoist avatar Oct 17 '18 15:10 rizkiyoist