qdown 1.0.4__tar.gz → 1.0.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qdown
3
- Version: 1.0.4
3
+ Version: 1.0.5
4
4
  Summary: Client for QualitegDrive
5
5
  Home-page: https://github.com/qualiteg/qdown
6
6
  Author: Qualiteg Inc.
@@ -250,11 +250,30 @@ class QDown:
250
250
 
251
251
  except httpx.RequestError as e:
252
252
  print(f"エラー: リクエストに失敗しました - {e}", file=sys.stderr)
253
+ if "Name or service not known" in str(e):
254
+ print("WSLで実行しているとき、このDNSエラーに遭遇した場合は以下をお試しください")
255
+ print("If you are running this in WSL, please try setting up DNS as follows:", file=sys.stderr)
256
+ print("STEP 1: Disable the automatic DNS configuration in WSL2", file=sys.stderr)
257
+ print("In WSL bash, run the following to prevent automatic generation of resolv.conf:", file=sys.stderr)
258
+ print('sudo sh -c \'cat > /etc/wsl.conf << EOF', file=sys.stderr)
259
+ print('[user]', file=sys.stderr)
260
+ print('default=mlu', file=sys.stderr)
261
+ print('[network]', file=sys.stderr)
262
+ print('generateResolvConf = false', file=sys.stderr)
263
+ print('EOF\'', file=sys.stderr)
264
+ print("STEP 2: Restart WSL from Windows", file=sys.stderr)
265
+ print('wsl --shutdown', file=sys.stderr)
266
+ print("STEP 3: After restarting WSL, run the following in the shell:", file=sys.stderr)
267
+ print('sudo sh -c \'cat > /etc/resolv.conf << EOF', file=sys.stderr)
268
+ print('nameserver 8.8.8.8', file=sys.stderr)
269
+ print('nameserver 8.8.4.4', file=sys.stderr)
270
+ print('EOF\'', file=sys.stderr)
253
271
  return None
254
272
  except Exception as e:
255
273
  print(f"エラー: {e}", file=sys.stderr)
256
274
  return None
257
275
 
276
+
258
277
  def main():
259
278
  parser = argparse.ArgumentParser(
260
279
  description="qdown - IDベースファイルダウンロードツール",
@@ -289,4 +308,4 @@ def main():
289
308
 
290
309
 
291
310
  if __name__ == "__main__":
292
- main()
311
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qdown
3
- Version: 1.0.4
3
+ Version: 1.0.5
4
4
  Summary: Client for QualitegDrive
5
5
  Home-page: https://github.com/qualiteg/qdown
6
6
  Author: Qualiteg Inc.
@@ -9,7 +9,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
9
9
 
10
10
  setup(
11
11
  name="qdown",
12
- version="1.0.4",
12
+ version="1.0.5",
13
13
  description="Client for QualitegDrive",
14
14
  long_description=long_description,
15
15
  long_description_content_type="text/markdown",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes