shadowmoose / RedditDownloader

Scrapes Reddit to download media of your choice.
1.12k stars 101 forks source link

Cant launch #102

Open Motromatt opened 4 years ago

Motromatt commented 4 years ago

when attempting to set up the launcher in the installing requirements it comes uppon an error, this is the terminal actions

$ pip install -r requirements.txt Collecting psaw Using cached https://files.pythonhosted.org/packages/60/b7/6724defc12bdcc45470 e2b1fc1b978367f3d183ec6c6baa2770a0b083fc7/psaw-0.0.7-py3-none-any.whl Requirement already satisfied: youtube_dl in c:\users\matt wilkinson\appdata\loc al\programs\python\python38-32\lib\site-packages (from -r requirements.txt (line 2)) (2019.11.28) Collecting imgurpython==1.1.7 Using cached https://files.pythonhosted.org/packages/d4/76/514defcb05e6d58ded4 27f57d736ce6dfe879e0188392385a986e8ef3b7b/imgurpython-1.1.7.tar.gz Requirement already satisfied: requests>=2.22.0 in c:\users\matt wilkinson\appda ta\local\programs\python\python38-32\lib\site-packages (from -r requirements.txt (line 4)) (2.22.0) Collecting sqlalchemy>=1.3.8 Using cached https://files.pythonhosted.org/packages/17/7f/35879c73859368ad19a 952b69ee780aa97fc30350dabd45fb948d6a4e3ea/SQLAlchemy-1.3.12.tar.gz Requirement already satisfied: praw>=6.0.0 in c:\users\matt wilkinson\appdata\lo cal\programs\python\python38-32\lib\site-packages (from -r requirements.txt (lin e 6)) (6.4.0) Requirement already satisfied: lxml>=3.6.0 in c:\users\matt wilkinson\appdata\lo cal\programs\python\python38-32\lib\site-packages (from -r requirements.txt (lin e 7)) (4.4.2) Requirement already satisfied: newspaper3k==0.2.8 in c:\users\matt wilkinson\app data\local\programs\python\python38-32\lib\site-packages (from -r requirements.t xt (line 8)) (0.2.8) Collecting beautifulsoup4==4.7.1 Using cached https://files.pythonhosted.org/packages/1d/5d/3260694a59df0ec52f8 b4883f5d23b130bc237602a1411fa670eae12351e/beautifulsoup4-4.7.1-py3-none-any.whl Collecting colorama==0.4.1 Using cached https://files.pythonhosted.org/packages/4f/a6/728666f39bfff1719fc 94c481890b2106837da9318031f71a8424b662e12/colorama-0.4.1-py2.py3-none-any.whl Collecting Pillow==6.2.0 Using cached https://files.pythonhosted.org/packages/87/dc/7597336c48796d4a836 007460148b7baf7f278ad42b73d49047eb0e8194c/Pillow-6.2.0.tar.gz Collecting pathvalidate==0.28.1 Using cached https://files.pythonhosted.org/packages/5a/e3/0fc0e098c905b19e80fe1a290b16837d3208dcee8892fcffaa0e99deddc1/pathvalidate-0.28.1-py2.py3-none-any.whl Collecting eel==0.11.1 Using cached https://files.pythonhosted.org/packages/72/b1/b3da061e31dfd362c01f8c581055ed9e7aa20c3d6b9cd1210991ed7b6e62/Eel-0.11.1.tar.gz Collecting twitter-text-python==1.1.1 Using cached https://files.pythonhosted.org/packages/29/a9/3d9cc947dea07e42f55a3c9de741ceeea766f841bc08297605a6370dfca0/twitter-text-python-1.1.1.tar.gz Collecting appdirs==1.4.3 Using cached https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl Collecting alembic==1.3.1 Using cached https://files.pythonhosted.org/packages/84/64/493c45119dce700a4b9eeecc436ef9e8835ab67bae6414f040cdc7b58f4b/alembic-1.3.1.tar.gz Requirement already satisfied: idna<2.9,>=2.5 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from requests>=2.22.0->-r requirements.txt (line 4)) (2.8) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from requests>=2.22.0->-r requirements.txt (line 4)) (3.0.4) Requirement already satisfied: certifi>=2017.4.17 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from requests>=2.22.0->-r requirements.txt (line 4)) (2019.11.28) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from requests>=2.22.0->-r requirements.txt (line 4)) (1.25.7) Requirement already satisfied: websocket-client>=0.54.0 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from praw>=6.0.0->-r requirements.txt (line 6)) (0.56.0) Requirement already satisfied: prawcore<2.0,>=1.0.1 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from praw>=6.0.0->-r requirements.txt (line 6)) (1.0.1) Requirement already satisfied: update-checker>=0.16 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from praw>=6.0.0->-r requirements.txt (line 6)) (0.16) Requirement already satisfied: feedparser>=5.2.1 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from newspaper3k==0.2.8->-r requirements.txt (line 8)) (5.2.1) Requirement already satisfied: cssselect>=0.9.2 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from newspaper3k==0.2.8->-r requirements.txt (line 8)) (1.1.0) Requirement already satisfied: jieba3k>=0.35.1 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from newspaper3k==0.2.8->-r requirements.txt (line 8)) (0.35.1) Requirement already satisfied: python-dateutil>=2.5.3 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from newspaper3k==0.2.8->-r requirements.txt (line 8)) (2.8.1) Requirement already satisfied: feedfinder2>=0.0.4 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from newspaper3k==0.2.8->-r requirements.txt (line 8)) (0.0.4) Requirement already satisfied: nltk>=3.2.1 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from newspaper3k==0.2.8->-r requirements.txt (line 8)) (3.4.5) Requirement already satisfied: tldextract>=2.0.1 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from newspaper3k==0.2.8->-r requirements.txt (line 8)) (2.2.2) Requirement already satisfied: PyYAML>=3.11 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from newspaper3k==0.2.8->-r requirements.txt (line 8)) (5.2) Requirement already satisfied: tinysegmenter==0.3 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from newspaper3k==0.2.8->-r requirements.txt (line 8)) (0.3) Requirement already satisfied: soupsieve>=1.2 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from beautifulsoup4==4.7.1->-r requirements.txt (line 9)) (1.9.5) Requirement already satisfied: setuptools>=38.3.0 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from pathvalidate==0.28.1->-r requirements.txt (line 12)) (41.2.0) Collecting bottle Using cached https://files.pythonhosted.org/packages/e9/39/2bf3a1fd963e749cdbe5036a184eda8c37d8af25d1297d94b8b7aeec17c4/bottle-0.12.18-py3-none-any.whl Collecting bottle-websocket Using cached https://files.pythonhosted.org/packages/17/8e/a22666b4bb0a6e31de579504077df2b1c2f1438136777c728e6cfabef295/bottle-websocket-0.2.9.tar.gz Collecting future Using cached https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz Collecting whichcraft Using cached https://files.pythonhosted.org/packages/b5/a2/81887a0dae2e4d2adc70d9a3557fdda969f863ced51cd3c47b587d25bce5/whichcraft-0.6.1-py2.py3-none-any.whl Collecting Mako Using cached https://files.pythonhosted.org/packages/b0/3c/8dcd6883d009f7cae0f3157fb53e9afb05a0d3d33b3db1268ec2e6f4a56b/Mako-1.1.0.tar.gz Collecting python-editor>=0.3 Using cached https://files.pythonhosted.org/packages/c6/d3/201fc3abe391bbae6606e6f1d598c15d367033332bd54352b12f35513717/python_editor-1.0.4-py3-none-any.whl Requirement already satisfied: six in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from websocket-client>=0.54.0->praw>=6.0.0->-r requirements.txt (line 6)) (1.13.0) Requirement already satisfied: requests-file>=1.4 in c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages (from tldextract>=2.0.1->newspaper3k==0.2.8->-r requirements.txt (line 8)) (1.4.3) Collecting gevent-websocket Using cached https://files.pythonhosted.org/packages/7b/84/2dc373eb6493e00c884cc11e6c059ec97abae2678d42f06bf780570b0193/gevent_websocket-0.10.1-py3-none-any.whl Collecting MarkupSafe>=0.9.2 Using cached https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-1.1.1.tar.gz Collecting gevent Using cached https://files.pythonhosted.org/packages/ed/27/6c49b70808f569b66ec7fac2e78f076e9b204db9cf5768740cff3d5a07ae/gevent-1.4.0.tar.gz ERROR: Command errored out with exit status 1: command: 'c:\users\matt wilkinson\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Matt Wilkinson\AppData\Local\Temp\pip-install-w9p01r_q\gevent\setup.py'"'"'; file='"'"'C:\Users\Matt Wilkinson\AppData\Local\Temp\pip-install-w9p01r_q\gevent\setup.py'"'"';f=getattr(to kenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Matt Wilkinson\AppData\Local\Temp\pip-install-w9p01r_q\gevent\pip-egg-info' cwd: C:\Users\Matt Wilkinson\AppData\Local\Temp\pip-install-w9p01r_q\gevent\ Complete output (112 lines): Traceback (most recent call last): File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\sandbox.py", line 154, in save_modules yield saved File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context yield File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\sandbox.py", line 250, in run_setup _execfile(setup_script, ns) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\sandbox.py", line 45, in _execfile exec(code, globals, locals) File "C:\Users\MATTWI~1\AppData\Local\Temp\easy_install-43enim2j\cffi-1.13.2\setup.py", line 127, in HUB_PRIMITIVES = Extension(name="gevent.__hub_primitives", File "C:\Users\MATTWI~1\AppData\Local\Temp\easy_install-43enim2j\cffi-1.13.2\setup.py", line 105, in uses_msvc include_dirs=include_dirs) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\distutils\command\config.py", line 225, in try_compile self._compile(body, headers, include_dirs, lang) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\distutils\command\config.py", line 127, in _compile src = self._gen_temp_sourcefile(body, headers, lang) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\distutils\command\config.py", line 109, in _gen_temp_sourcefile with open(filename, "w") as file: File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\sandbox.py", line 418, in _open self._violation("open", path, mode, *args, **kw) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\sandbox.py", line 407, in _violation raise SandboxViolation(operation, args, kw) setuptools.sandbox.SandboxViolation: SandboxViolation: open('_configtest.c', 'w') {} The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted. This package cannot be safely installed by EasyInstall, and may not support alternate installation locations even if you run its setup script by hand. Please inform the package's author and the EasyInstall maintainers to find out if a fix or workaround is available. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "", line 1, in File "C:\Users\Matt Wilkinson\AppData\Local\Temp\pip-install-w9p01r_q\gevent\setup.py", line 427, in run_setup(EXT_MODULES, run_make=_BUILDING) File "C:\Users\Matt Wilkinson\AppData\Local\Temp\pip-install-w9p01r_q\gevent\setup.py", line 328, in run_setup setup( File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools__init.py", line 144, in setup _install_setup_requires(attrs) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools__init.py", line 139, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\dist.py", line 716, in fetch_build_eggs resolved_dists = pkg_resources.working_set.resolve( File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\pkg_resources\init.py", line 780, in resolve dist = best[req.key] = env.best_match( File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\pkg_resources\init.py", line 1065, in best_match return self.obtain(req, installer) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\pkg_resources\init.py", line 1077, in obtain return installer(requirement) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\dist.py", line 786, in fetch_build_egg return cmd.easy_install(req) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\command\easy_install.py", line 679, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\command\easy_install.py", line 705, in install_item dists = self.install_eggs(spec, download, tmpdir) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\command\easy_install.py", line 890, in install_eggs return self.build_and_install(setup_script, setup_base) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\command\easy_install.py", line 1158, in build_and_install self.run_setup(setup_script, setup_base, args) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\command\easy_install.py", line 1144, in run_setup run_setup(setup_script, args) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\sandbox.py", line 253, in run_setup raise File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\contextlib.py", line 131, in exit__ self.gen.throw(type, value, traceback) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context yield File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\contextlib.py", line 131, in exit__ self.gen.throw(type, value, traceback) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\sandbox.py", line 166, in save_modules saved_exc.resume() File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\sandbox.py", line 141, in resume six.reraise(type, exc, self._tb) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools_vendor\six.py", line 685, in reraise raise value.with_traceback(tb) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\sandbox.py", line 154, in save_modules yield saved File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context yield File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\sandbox.py", line 250, in run_setup _execfile(setup_script, ns) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\sandbox.py", line 45, in _execfile exec(code, globals, locals) File "C:\Users\MATTWI~1\AppData\Local\Temp\easy_install-43enim2j\cffi-1.13.2\setup.py", line 127, in HUB_PRIMITIVES = Extension(name="gevent.__hub_primitives", File "C:\Users\MATTWI~1\AppData\Local\Temp\easy_install-43enim2j\cffi-1.13.2\setup.py", line 105, in uses_msvc include_dirs=include_dirs) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\distutils\command\config.py", line 225, in try_compile self._compile(body, headers, include_dirs, lang) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\distutils\command\config.py", line 127, in _compile src = self._gen_temp_sourcefile(body, headers, lang) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\distutils\command\config.py", line 109, in _gen_temp_sourcefile with open(filename, "w") as file: File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\sandbox.py", line 418, in _open self._violation("open", path, mode, *args, **kw) File "c:\users\matt wilkinson\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\sandbox.py", line 407, in _violation raise SandboxViolation(operation, args, kw) setuptools.sandbox.SandboxViolation: SandboxViolation: open('_configtest.c', 'w') {} The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted. This package cannot be safely installed by EasyInstall, and may not support alternate installation locations even if you run its setup script by hand. Please inform the package's author and the EasyInstall maintainers to find out if a fix or workaround is available. ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Motromatt commented 4 years ago

uppon launching i get this

py_eWF0bbT8FL

shadowmoose commented 4 years ago

It looks like pip is having issues installing one of the libraries RMD needs. I'd either try checking your python installation, or making sure to run the requirement install command as an admin.

There will hopefully be a fix for this soon, where I simply pre-build an executable of RMD.

Motromatt commented 4 years ago

Thanks for replying so fast just wanting to know how to run the install command in admin mode don't really know much about programming etc and how it works

Thanks in advance.

shadowmoose commented 4 years ago

On Windows, you can right-click the start menu and run Powershell in Admin mode. Then use cd <directory> to move into the directory you have RMD saved in, and run the same installation steps.

Motromatt commented 4 years ago

Tried installing the requirements as admin and same problem happens

shadowmoose commented 4 years ago

Okay, that's an odd bug. I'll try to replicate this so that I can fix it. Otherwise, I'm working on a no-installation RMD release now.

supra89t commented 4 years ago

I had the same issue, I cleared the temp location for the PIP cache and all other python cache locations and ran it again as normal user and it worked like a charm. Perhaps you can add a check or a clear cache option.

shadowmoose commented 4 years ago

@supra89t Good to know - thanks for helping. I'd prefer to not interfere too much with the user's Python installation, so RMD probably won't try to do anything to pip itself.

I've got a prebuilt binary release system in the works for the next major release (which will hopefully be out soon), which should let users skip needing to install anything.