-
Notifications
You must be signed in to change notification settings - Fork 90
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
Post processing issue: cannot find workable URL #2184
Comments
It works for me. Can you access https://numbbo.github.io/data-archive/ ? Is it possible that you were disconnected from the internet? https://numbbo.github.io/data-archive/data-archive/ gives a |
Yes, I can access https://numbbo.github.io/data-archive/ and no, I was connected to internet at the time. Still not entirely sure what the issue is. This is the full traceback after I run the 'example_experiment_for_beginners.py' file.
(solving 2D, 3D, etc...)
Thank you for any help you can give me on this issue. |
This doesn't actually need the data archive at all and hence it shouldn't make this assignment in |
Executing the following code, e.g. in a Jupyter notebook, is a workaround. It writes minimal archive definition files in some folders under import os
from cocopp import archiving as ac
def has_all(a):
return hasattr(a, 'all') and a.all is not None
def make_skeleton(official_archives):
for url, class_ in official_archives._list:
path = ac._url_to_folder_name(url)
if path.endswith('/test'):
continue
if path.endswith('/all'):
path = path[:-4]
url = url[:-4]
ac._makedirs(path) # should not be necessary
df = ac._definition_file_to_read(path)
if os.path.exists(df):
print('file "{}" exists'.format(df))
else:
with open(df, 'w') as f:
f.write("[('_url_', '{}')]\n".format(url))
if ac.official_archives is None:
ac.official_archives = ac.OfficialArchives(ac.coco_url)
if not has_all(ac.official_archives):
make_skeleton(ac.official_archives)
print('made archive skeleton for {}'.format(ac.coco_url))
ac.official_archives.set_as_attributes_in()
try: ac.official_archives.update_all() # try overwrite fake definition files
except: pass After this, |
This bug will be fixed in the next release. |
Can we close the issue? |
Yes, thank you for all your help. |
Thanks for the detailed report, it always helps to improve the code basis. |
Hello,
I'm trying to run coco but I receive the following warnings during the post-processing:
UserWarning: failed to connect to https://numbbo.github.io/data-archive/data-archive warnings.warn("failed to connect to " + url)
UserWarning: failed to connect to https://numbbo.github.io/gforge/data-archive
UserWarning: failed to connect to https://coco.gforge.inria.fr/data-archive
UserWarning: failed fo find workable URL or local folder for official archives warnings.warn("failed fo find workable URL or local folder for official archives")
COCO INFO: Results will be output to folder exdata/random_search_of_cocoex.solvers_2D_on_bbob-005 *** benchmarking random_search from cocoex.solvers on suite bbob ***
When I navigate to the coco_urls, I am unable to access the first link because my browser blocks it and the final two links don't exist. Please could you help with this?
Thanks,
Ellie
The text was updated successfully, but these errors were encountered: