question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError - 'STARTF_USESHOWWINDOW'

See original GitHub issue
  • I assure that my problem is NOT with youtube-dl
  • I’ve verified and I assure that I’m running youtube-dl-gui 0.3.8
  • I assure that i am using the latest version of youtube-dl
  • Searched bugtracker

What is the purpose of your issue?

  • Bug during the download process (encountered problems after hitting the Download button)

Provide the full verbose output as follows:

  1. Add -v flag to Options > Commands tab
  2. Re-try to download the URL
  3. Go to Options > Log tab and click the View Log button
  4. Copy the whole content of the log file and insert it between the triple ``` part
the log is empty

Please remove the following section between the (—) if your problem does not belong to the first two categories (bug report)

What operating system do you use ?

Win XP SP3

List of actions to perform to reproduce the problem:

  1. py C:\gnu\Python27\lib\site-packages\youtube_dl_gui
  2. URL http://www.youtube.com/watch?v=H22t-tiWiLw
  3. clicking DOWNLOAD
  4. nothing happens

What is the expected behaviour ?

the video should be downloaded

What happens instead ?

nothing, as seen in the screenshot below clipboard01


Description of your issue, suggested solution and other information. Please make sure the description is worded well enough to be understood.

it won’t download anything and outputs this error in the cmd window. also, changes made to settings.json are being reset to default on startup.

Exception in thread Thread-2: Traceback (most recent call last): File “C:\gnu\Python27\lib\threading.py”, line 530, in __bootstrap_inner self.run() File “C:\gnu\Python27\lib\site-packages\youtube_dl_gui\downloadmanager.py”, line 288, in run ret_code = self._downloader.download(self._data[‘url’], options) File “C:\gnu\Python27\lib\site-packages\youtube_dl_gui\downloaders.py”, line 162, in download self._create_process(cmd) File “C:\gnu\Python27\lib\site-packages\youtube_dl_gui\downloaders.py”, line 322, in _create_process info.dwFlags |= subprocess.STARTF_USESHOWWINDOW AttributeError: ‘module’ object has no attribute ‘STARTF_USESHOWWINDOW’

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MrS0m30n3commented, Oct 4, 2016

What python version do you use ?

Also, i guess you installed youtube_dl_gui from the source using: python setup.py install? Why not use the Windows installer ?

The STARTF_USESHOWWINDOW attribute should be available.

One of the following is happening:

  • You use an outdated Python version, probably < 2.7.3
  • For some reason Python is not installed correctly
  • You have overwritten the subprocess.py file under C:\gnu\Python27\Lib

You can also run those two commands on cmd and paste the output here:

python -c "import subprocess; subprocess.STARTF_USESHOWWINDOW" python -c "import subprocess; print(subprocess.__file__)"

0reactions
MrS0m30n3commented, Oct 5, 2016

@uahim you probably had an issue with the settings because of the crash or you were passing wrong values to the settings.json (if you tried to edit it).

Currently the latest Windows build (portable) is this one: link, which dates back to Feb 15, 2016

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Module subprocess has no attribute ... - Stack Overflow
AttributeError : 'module' object has no attribute 'STARTF_USESHOWWINDOW'. Possible solution of the problem is to import in your code old ...
Read more >
subprocess.STARTF_USESHOWWINDOW does not exist in ...
STARTF_USESHOWWINDOW #@UndefinedVariable AttributeError: 'module' object has no attribute 'STARTF_USESHOWWINDOW'. Similarly, subprocess.
Read more >
subprocess.STARTF_USESHOWWINDOW not ... - Issue Tracker
startupinfo.dwFlags = subprocess.STARTF_USESHOWWINDOW AttributeError: 'module' object has no attribute 'STARTF_USESHOWWINDOW'
Read more >
Python Examples of subprocess.STARTF_USESHOWWINDOW
STARTF_USESHOWWINDOW output = None try: output = subprocess.check_output( ... CalledProcessError, AttributeError): # Git will return an error when the given ...
Read more >
module subprocess has no attribute 'startf_useshowwindow'
AttributeError : 'module' object has no attribute 'STARTF_USESHOWWINDOW' import subprocess import _subprocess import subprocess print(subprocess.__file__)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found