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

[Bug report] "The path is too long" error #2268

Open
brockho opened this issue Mar 1, 2024 · 1 comment
Open

[Bug report] "The path is too long" error #2268

brockho opened this issue Mar 1, 2024 · 1 comment
Labels

Comments

@brockho
Copy link
Contributor

brockho commented Mar 1, 2024

Describe the bug
With the latest version, the path to the downloaded data changed from C:\Users\dimo\.cocopp\data-archives\numbbo.github.io\data-archive\data-archive in my case to C:\Users\dimo\AppData\Local\cocopp\cocopp\Cache\data-archives\numbbo.github.io\data-archive\data-archive\. As a consequence, I get again the infamous

  File "C:\Users\dimo\anaconda3new\Lib\site-packages\cocopp\findfiles.py", line 120, in get_directory
    raise IOError(2, 'Some of the files cannot be extracted ' +
FileNotFoundError: [Errno 2] Some of the files cannot be extracted from "C:\Users\dimo\AppData\Local\cocopp\cocopp\Cache\data-archives\numbbo.github.io\data-archive\data-archive\bbob-biobj\2016\RM-MEDA_Auger_bbob-biobj.tgz". The path is too long.

error.

Your System (please complete the following information when it seems relevant):

  • Operating system: Windows 10 [I guess it only happens under Windows]
  • COCO version: 2.6.4 from the development branch
  • latest pip
@brockho brockho added the bug label Mar 1, 2024
@nikohansen
Copy link
Contributor

nikohansen commented Mar 1, 2024

It looks very likely that lines 97-99 in cocopp.archiving from commit f36e343 created this problem or didn't fix it:

import platformdirs
cocopp_home = platformdirs.user_cache_dir("cocopp", ensure_exists=True)
default_archive_location = os.path.join(cocopp_home, 'data-archives')

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

No branches or pull requests

2 participants