CatBlock / catblock

CatBlock - An ad-blocking extension (with an ability to replace ads by pictures) for all major desktop browsers!
https://getcatblock.com
GNU General Public License v3.0
94 stars 44 forks source link

Build Error on Windows 10: Looping path name makes filename too long #170

Open aaronliu0130 opened 4 years ago

aaronliu0130 commented 4 years ago

So you've found a problem in CatBlock?

Answer these questions to help us solve the case!

(If you have a problem that isn't a bug, or want to suggest a feature, do so at http://support.getcatblock.com

1. List some steps we can follow to make the bug happen on our end.

  1. Download catblock_master.zip from github
  2. cd into the root directory using command prompt
  3. python3 tools/make_release.py -b chrome -ext browser

2. When you followed these steps above, what did you think should happen?

CatBlock should've been built succesfully.

3. What actually happened instead?

C:\Users\aaron\catblock-master>python3 tools/make_release.py -b chrome -ext browser
File not found - '*.DS_Store'
Generating browser package for chrome...
 > Generating CatBlock for Chrome...Traceback (most recent call last):
  File "tools/make_release.py", line 298, in <module>
    main()
  File "tools/make_release.py", line 289, in main
    generateBrowserPackage(args.browser)
  File "tools/make_release.py", line 228, in generateBrowserPackage
    shutil.copytree(os.getcwd(), BROWSER_PATH, ignore=shutil.ignore_patterns(".*", "builds", "tools"))
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.240.0_x64__qbz5n2kfra8p0\lib\shutil.py", line 547, in copytree
    return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.240.0_x64__qbz5n2kfra8p0\lib\shutil.py", line 504, in _copytree
    raise Error(errors)
shutil.Error: [('C:\\Users\\aaron\\catblock-master\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\background_safari.html', 'catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\background_safari.html', "[Errno 2] No such file or directory: 'catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\background_safari.html'"), ('C:\\Users\\aaron\\catblock-master\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock\\contentscript.js', 'catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock\\contentscript.js', "[Errno 2] No such file or directory: 'catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock\\\\contentscript.js'"), ('C:\\Users\\aaron\\catblock-master\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock\\pix', 'catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock\\pix', "[WinError 206] The filename or extension is too long: 'catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock\\\\pix'"), ('C:\\Users\\aaron\\catblock-master\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome', 'catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome\\catblock_chrome', "[WinError 206] The filename or extension is too long: 'catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome\\\\catblock_chrome'")]

4. Finally, click the CatBlock button, then Options, then Support on the page that appears. Provide us with the debug info from that page.

image image image

ice_screenshot_20191029-194618
<Copy and paste it over this line.>

5. Any other information you think might be useful for us to know?

This is a build error.

aaronliu0130 commented 4 years ago

What, it still hasn't been seen? I'll try to do it myself then.

aaronliu0130 commented 4 years ago

This seems to be somewhat of an internal error.