Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't close the prompt while It's Working #37

Closed
IWantToLearn1 opened this issue Mar 9, 2021 · 22 comments
Closed

Can't close the prompt while It's Working #37

IWantToLearn1 opened this issue Mar 9, 2021 · 22 comments

Comments

@IWantToLearn1
Copy link

When i close the prompt while it work on links, the program wont start anymore, i have some strange errors ^^
By the way, your program is really good ^^
I just have this one problem, the only thing that worked to solve that is a fresh install

@IWantToLearn1
Copy link
Author

Nevermind, the fresh install did'nt do it this time xD

Collecting User-Agent...
Loading urls...
3 url loaded from urls.txt
Loading queries...
Traceback (most recent call last):
File "youtube_viewer.py", line 312, in
queries = load_search()
File "youtube_viewer.py", line 114, in load_search
loaded = [items.rstrip().strip() for items in load]
File "youtube_viewer.py", line 114, in
loaded = [items.rstrip().strip() for items in load]
File "C:\Users\Glou\miniconda3\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe0 in position 239: invalid continuation byte

(base) C:\Users\Glou\Documents\Pip Fichiers\YouTube-Viewer-master\YouTube-Viewer>

@MShawon
Copy link
Owner

MShawon commented Mar 9, 2021

maybe miniconda3 has to do something with it.

@IWantToLearn1
Copy link
Author

It's what i was wondering. But i was finding this strange, and i think miniconda and python were conflicting
Goodbye Miniconda!

@MShawon
Copy link
Owner

MShawon commented Mar 9, 2021

You can try executable for windows also if you don't want to uninstall miniconda.

@IWantToLearn1
Copy link
Author

I tried, but i still have the same error unfortunately :/
This seems like a great little program thought, you have talent!

"" Traceback (most recent call last):
File "C:\cygwin64\home\Glou\YouTube-Viewer\youtube_viewer.py", line 312, in
queries = load_search()
File "C:\cygwin64\home\Glou\YouTube-Viewer\youtube_viewer.py", line 114, in load_search
loaded = [items.rstrip().strip() for items in load]
File "C:\cygwin64\home\Glou\YouTube-Viewer\youtube_viewer.py", line 114, in
loaded = [items.rstrip().strip() for items in load]
File "C:\Users\Glou\AppData\Local\Programs\Python\Python39\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe0 in position 239: invalid continuation byte ""

@MShawon
Copy link
Owner

MShawon commented Mar 9, 2021

Can I see your search.txt?

@IWantToLearn1
Copy link
Author

search.txt

There it is, and with theses results the videos should appear in youtube ^^

@IWantToLearn1
Copy link
Author

You think maybe the ^ on drôle could pose a problem? (i'm french by the way) xD

@MShawon
Copy link
Owner

MShawon commented Mar 9, 2021

No no you got it wrong. You need to put keyword : video title just like I mentioned in readme. Also I have provided a search.txt just look at it.

@IWantToLearn1
Copy link
Author

Ooooooh! Sorry I'm not all there, i havent sleep trying to figure it out! Thank You!

@MShawon
Copy link
Owner

MShawon commented Mar 9, 2021

You think maybe the ^ on drôle could pose a problem? (i'm french by the way) xD

Also it could be.. if still problem isn't solved.. try without this keyword.

@IWantToLearn1
Copy link
Author

Oh Sh*t it work! I was just dumb
Thank you a lot for your help! I appreciate it :)

@IWantToLearn1
Copy link
Author

By the way, sorry to bother you, i have 1 last question, do you think that there is a risk at 1 thread all day/week?

@MShawon
Copy link
Owner

MShawon commented Mar 10, 2021

No no risk

@IWantToLearn1
Copy link
Author

Ok! Thank you for you disponibility! You're awesome keep the good work. And i understand the pain of code error as there can be so much stuff getting wrong :o

@IWantToLearn1 IWantToLearn1 reopened this Mar 10, 2021
@IWantToLearn1
Copy link
Author

Oh my god, now it's something else, On a fresh install:

ERROR: Command errored out with exit status 1:
command: 'c:\users\Glou\appdata\local\programs\python\python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Glou\AppData\Local\Temp\pip-install-90az4bar\cffi_97e31a79d4714fe2a0a858d8116f254a\setup.py'"'"'; file='"'"'C:\Users\Glou\AppData\Local\Temp\pip-install-90az4bar\cffi_97e31a79d4714fe2a0a858d8116f254a\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Glou\AppData\Local\Temp\pip-pip-egg-info-2wdlp_a5'
cwd: C:\Users\Glou\AppData\Local\Temp\pip-install-90az4bar\cffi_97e31a79d4714fe2a0a858d8116f254a
Complete output (19 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Glou\AppData\Local\Temp\pip-install-90az4bar\cffi_97e31a79d4714fe2a0a858d8116f254a\setup.py", line 131, in
if sys.platform == 'win32' and uses_msvc():
File "C:\Users\Glou\AppData\Local\Temp\pip-install-90az4bar\cffi_97e31a79d4714fe2a0a858d8116f254a\setup.py", line 109, in uses_msvc
return config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif')
File "c:\users\Glou\appdata\local\programs\python\python39\lib\distutils\command\config.py", line 225, in try_compile
self._compile(body, headers, include_dirs, lang)
File "c:\users\Glou\appdata\local\programs\python\python39\lib\distutils\command\config.py", line 132, in _compile
self.compiler.compile([src], include_dirs=include_dirs)
File "c:\users\Glou\appdata\local\programs\python\python39\lib\distutils_msvccompiler.py", line 323, in compile
self.initialize()
File "c:\users\Glou\appdata\local\programs\python\python39\lib\distutils_msvccompiler.py", line 220, in initialize
vc_env = _get_vc_env(plat_spec)
File "c:\users\Glou\appdata\local\programs\python\python39\lib\site-packages\setuptools\msvc.py", line 314, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
File "c:\users\Glou\appdata\local\programs\python\python39\lib\site-packages\setuptools\msvc.py", line 268, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/

WARNING: Discarding https://files.pythonhosted.org/packages/f7/09/88bbe20b76ca76be052c366fe77aa5e3cd6e5f932766e5597fecdd95b2a8/cffi-1.14.2.tar.gz#sha256=ae8f34d50af2c2154035984b8b5fc5d9ed63f32fe615646ab435b05b132ca91b (from https://pypi.org/simple/cffi/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement cffi==1.14.2
ERROR: No matching distribution found for cffi==1.14.2

I feel your pain.. xD

@MShawon
Copy link
Owner

MShawon commented Mar 10, 2021

I know this error drived my crazy also. That's why I released executable yesterday. Just download it unzip it and you will be good to go.

Unless you want to use from source take a look at this for your problem benfred/implicit#76 (comment)

@IWantToLearn1
Copy link
Author

I'm gonna re download and fresh install and i will post an update if everything work fine (or not) :)

@IWantToLearn1
Copy link
Author

I still have this error:

Collecting User-Agent...
Loading urls...
3 url loaded from urls.txt
Loading queries...
Traceback (most recent call last):
File "C:\Users\Glou\Documents\Pip Fichiers\YouTube-Viewer-master\YouTube-Viewer\youtube_viewer.py", line 312, in
queries = load_search()
File "C:\Users\Glou\Documents\Pip Fichiers\YouTube-Viewer-master\YouTube-Viewer\youtube_viewer.py", line 114, in load_search
loaded = [items.rstrip().strip() for items in load]
File "C:\Users\Glou\Documents\Pip Fichiers\YouTube-Viewer-master\YouTube-Viewer\youtube_viewer.py", line 114, in
loaded = [items.rstrip().strip() for items in load]
File "C:\Users\Glou\AppData\Local\Programs\Python\Python39\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe0 in position 29: invalid continuation byte

@IWantToLearn1
Copy link
Author

Found out the problem (i think) It was Cygwin that was buging the whole thing up!

@MShawon
Copy link
Owner

MShawon commented Mar 10, 2021

could be ....

@IWantToLearn1
Copy link
Author

And i also think the ç is not supported, because when i put this video tittle it doesn't work ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants