I can't seem to be able to retrieve tweets using twitterscraper (using Pycharm but had the same issues with Visual Studio Code). I'm getting "PermissionError: [WinError 5] Access is denied" even though I'm running it as an administrator. The full error output is below.
(venv) C:\Users\User\PycharmProjects\twit>twitterscraper 'samplequery' -l 100 -c
INFO: {'User-Agent': 'Mozilla/5.0 (Windows NT 5.2; RW; rv:7.0a1) Gecko/20091211 SeaMonkey/9.23a1pre'}
INFO: queries: ["'samplequery' since:2006-03-21 until:2006-11-25", "'samplequery' since:2006-11-25 until:2007-08-01", "'
samplequery' since:2007-08-01 until:2008-04-06", "'samplequery' since:2008-04-06 until:2008-12-12", "'samplequery' since
:2008-12-12 until:2009-08-18", "'samplequery' since:2009-08-18 until:2010-04-24", "'samplequery' since:2010-04-24 until:
2010-12-29", "'samplequery' since:2010-12-29 until:2011-09-05", "'samplequery' since:2011-09-05 until:2012-05-11", "'sam
plequery' since:2012-05-11 until:2013-01-15", "'samplequery' since:2013-01-15 until:2013-09-21", "'samplequery' since:20
13-09-21 until:2014-05-29", "'samplequery' since:2014-05-29 until:2015-02-02", "'samplequery' since:2015-02-02 until:201
5-10-09", "'samplequery' since:2015-10-09 until:2016-06-14", "'samplequery' since:2016-06-14 until:2017-02-19", "'sample
query' since:2017-02-19 until:2017-10-26", "'samplequery' since:2017-10-26 until:2018-07-02", "'samplequery' since:2018-
07-02 until:2019-03-08", "'samplequery' since:2019-03-08 until:2019-11-13"]
Thread 'Supervisor' crashed: AttributeError("'IMapUnorderedIterator' object has no attribute '_write_to'")
Traceback (most recent call last):
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\pool.py", line 504, in run
return self.body()
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\pool.py", line 556, in body
pool._maintain_pool()
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\pool.py", line 1342, in _maintain_pool
joined = self._join_exited_workers()
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\pool.py", line 1234, in _join_exited_workers
write_to = job._write_to
AttributeError: 'IMapUnorderedIterator' object has no attribute '_write_to'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 165, in spawn_main
exitcode = _main(fd)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 207, in _main
self = pickle.load(from_parent)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 1027, in rebuild_pipe_co
nnection
return PipeConnection(detach(dh), readable, writable)
Traceback (most recent call last):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 165, in spawn_main
exitcode = _main(fd)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 207, in _main
self = pickle.load(from_parent)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 550, in detach
File "<string>", line 1, in <module>
Traceback (most recent call last):
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 1027, in rebuild_pipe_co
nnection
Traceback (most recent call last):
File "<string>", line 1, in <module>
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 165, in spawn_main
exitcode = _main(fd)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 207, in _main
self = pickle.load(from_parent)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 1027, in rebuild_pipe_co
nnection
Traceback (most recent call last):
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 165, in spawn_main
return sock.detach()
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 165, in spawn_main
return PipeConnection(detach(dh), readable, writable)
File "<string>", line 1, in <module>
Traceback (most recent call last):
File "<string>", line 1, in <module>
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\reduction.py", line 166, in detach
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 165, in spawn_main
return _winapi.DuplicateHandle(
PermissionError: [WinError 5] Access is denied
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 550, in detach
return PipeConnection(detach(dh), readable, writable)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 550, in detach
File "<string>", line 1, in <module>
exitcode = _main(fd)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 207, in _main
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 165, in spawn_main
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 165, in spawn_main
self = pickle.load(from_parent)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 1027, in rebuild_pipe_co
nnection
exitcode = _main(fd)
(venv) C:\Users\User\PycharmProjects\twit>Traceback (most recent call last):
File "<string>", line 1, in <module>
exitcode = _main(fd)
exitcode = _main(fd)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 207, in _main
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 165, in spawn_main
return sock.detach()
self = pickle.load(from_parent)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 1027, in rebuild_pipe_co
nnection
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 207, in _main
self = pickle.load(from_parent)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 1027, in rebuild_pipe_co
nnection
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 165, in spawn_main
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\reduction.py", line 166, in detach
return PipeConnection(detach(dh), readable, writable)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 550, in detach
exitcode = _main(fd)
return PipeConnection(detach(dh), readable, writable)
return sock.detach()
return PipeConnection(detach(dh), readable, writable)
exitcode = _main(fd)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 207, in _main
return _winapi.DuplicateHandle(
exitcode = _main(fd)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 207, in _main
Traceback (most recent call last):
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 550, in detach
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\reduction.py", line 166, in detach
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 550, in detach
return _winapi.DuplicateHandle(
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 207, in _main
PermissionError: [WinError 5] Access is denied
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 207, in _main
self = pickle.load(from_parent)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 1027, in rebuild_pipe_co
nnection
self = pickle.load(from_parent)
return sock.detach()
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\reduction.py", line 166, in detach
return sock.detach()
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\reduction.py", line 166, in detach
return _winapi.DuplicateHandle(
PermissionError: [WinError 5] Access is denied
return _winapi.DuplicateHandle(
PermissionError: [WinError 5] Access is denied
return sock.detach()
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\reduction.py", line 166, in detach
return _winapi.DuplicateHandle(
self = pickle.load(from_parent)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 1027, in rebuild_pipe_co
nnection
return PipeConnection(detach(dh), readable, writable)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 1027, in rebuild_pipe_co
nnection
PermissionError: [WinError 5] Access is denied
return PipeConnection(detach(dh), readable, writable)
PermissionError: [WinError 5] Access is denied
File "<string>", line 1, in <module>
self = pickle.load(from_parent)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 165, in spawn_main
exitcode = _main(fd)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 207, in _main
self = pickle.load(from_parent)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 1027, in rebuild_pipe_co
nnection
return PipeConnection(detach(dh), readable, writable)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 550, in detach
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 165, in spawn_main
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 1027, in rebuild_pipe_co
nnection
exitcode = _main(fd)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\spawn.py", line 207, in _main
return PipeConnection(detach(dh), readable, writable)
self = pickle.load(from_parent)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 1027, in rebuild_pipe_co
nnection
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 550, in detach
return PipeConnection(detach(dh), readable, writable)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 550, in detach
return sock.detach()
return sock.detach()
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 550, in detach
return PipeConnection(detach(dh), readable, writable)
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 550, in detach
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\reduction.py", line 166, in detach
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\reduction.py", line 166, in detach
return sock.detach()
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\connection.py", line 550, in detach
return sock.detach()
return _winapi.DuplicateHandle(
PermissionError: [WinError 5] Access is denied
return sock.detach()
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\reduction.py", line 166, in detach
return _winapi.DuplicateHandle(
PermissionError: [WinError 5] Access is denied
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\reduction.py", line 166, in detach
return _winapi.DuplicateHandle(
PermissionError: [WinError 5] Access is denied
return sock.detach()
return _winapi.DuplicateHandle(
PermissionError: [WinError 5] Access is denied
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\reduction.py", line 166, in detach
return _winapi.DuplicateHandle(
PermissionError: [WinError 5] Access is denied
File "C:\Users\User\PycharmProjects\twit\venv\lib\site-packages\billiard\reduction.py", line 166, in detach
return _winapi.DuplicateHandle(
PermissionError: [WinError 5] Access is denied
Sidenote: I also tried adding --user at the end of the line and it surprisingly does not give an error then; however it then uses the keyword as a user instead of a search query and I don't need that.
I can't seem to be able to retrieve tweets using twitterscraper (using Pycharm but had the same issues with Visual Studio Code). I'm getting "PermissionError: [WinError 5] Access is denied" even though I'm running it as an administrator. The full error output is below.
Sidenote: I also tried adding --user at the end of the line and it surprisingly does not give an error then; however it then uses the keyword as a user instead of a search query and I don't need that.