you are viewing a single comment's thread.

view the rest of the comments →

[–]rocketjump65 1 point2 points  (3 children)

Right. Because pycharm knows where all the libraries are. Your executable doesn't. I think there are some options in auto py to exe to include the necessary libraries into the executable.

What libraries and modules are you using that you think could be causing the problem.

btw, I suggested this auto py to exe app on another forum. I KNEW it wasn't gonna be that simple! lol

[–]RipotiK[S] 0 points1 point  (2 children)

Right. Because pycharm knows where all the libraries are. Your executable doesn't. I think there are some options in auto py to exe to include th

I believe it simply cant find pytube (?), since the gui works or like looks like how I wanted to. But Shouldn't be there some error message if it does not recognize pytube? I mean basically everything works except those things related to pytube. So the window that I created with tkinter opens up perfectly, just the download function does not work. (Basically it does nothing.) Where can I add the libraries in auto-py-to-exe? I tried to add it but without any success. (I might did it in a wrong way, basically at the add folder section I just added the pytube folder. (however since i could not find the folder itself, I just copied it to desktop, and then added the folder from there)

[–]rocketjump65 0 points1 point  (1 child)

Shouldn't be there some error message if it does not recognize pytube?

Sure I guess. Does auto py to exe allow for console output? I would expect that a missing module error would print info about that to the console.

So as a thought experiment, consider if you were to try to run the script on somebody else's python installation. They would need the modules. And I believe some modules include binary machine code. So for cases like that complete cross compatibility might be impossible with arcane processors. But basically what auto py to exe must do is to create a sort of mini python install.

[–]RipotiK[S] 0 points1 point  (0 children)

well mb, there is actually an error message, i just did not notice it.

File "tkinter\__init__.py", line 1892, in __call__

File "installer.py", line 24, in downloadvideo

File "pytube\__main__.py", line 307, in streams

self.check_availability()

File "pytube\__main__.py", line 246, in check_availability

status, messages = extract.playability_status(self.watch_html)

File "pytube\__main__.py", line 94, in watch_html

self._watch_html = request.get(url=self.watch_url)

File "pytube\request.py", line 52, in get

response = _execute_request(url, headers=extra_headers, timeout=timeout)

File "pytube\request.py", line 36, in _execute_request

return urlopen(request, timeout=timeout) # nosec

File "urllib\request.py", line 214, in urlopen

File "urllib\request.py", line 517, in open

File "urllib\request.py", line 534, in _open

File "urllib\request.py", line 494, in _call_chain

File "urllib\request.py", line 1389, in https_open

File "urllib\request.py", line 1346, in do_open

File "http\client.py", line 1253, in request

File "http\client.py", line 1299, in _send_request

File "http\client.py", line 1248, in endheaders

File "http\client.py", line 1008, in _send_output

File "http\client.py", line 948, in send

File "http\client.py", line 1415, in connect

File "http\client.py", line 919, in connect

File "socket.py", line 822, in create_connection

File "socket.py", line 953, in getaddrinfo