-
Notifications
You must be signed in to change notification settings - Fork 311
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
Fix SSL Error #4825
Fix SSL Error #4825
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,14 +11,15 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import cudf | ||
import dask_cudf | ||
import yaml | ||
import os | ||
import pandas as pd | ||
import cugraph.dask as dcg | ||
import yaml | ||
from pathlib import Path | ||
import urllib.request | ||
from urllib.request import urlretrieve | ||
|
||
import cudf | ||
import cugraph.dask as dcg | ||
import dask_cudf | ||
from cugraph.structure.graph_classes import Graph | ||
|
||
|
||
|
@@ -142,7 +143,7 @@ def __download_csv(self, url): | |
filename = self.metadata["name"] + self.metadata["file_type"] | ||
if self._dl_path.path.is_dir(): | ||
self._path = self._dl_path.path / filename | ||
urllib.request.urlretrieve(url, str(self._path)) | ||
urlretrieve(url, str(self._path)) | ||
|
||
else: | ||
raise RuntimeError( | ||
|
@@ -458,7 +459,7 @@ def download_all(force=False): | |
filename = meta["name"] + meta["file_type"] | ||
save_to = default_download_dir.path / filename | ||
if not save_to.is_file() or force: | ||
urllib.request.urlretrieve(meta["url"], str(save_to)) | ||
urlretrieve(meta["url"], str(save_to)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you end up needing to push another change, I recommend reverting these import changes, which just look like stylistic changes to me (please correct me). That'd make this whole file drop out of the diff, and make us even more confident that this is safe to merge this late in the release cycle. But the changes look fine to me so don't push another commit and go through another round of CI just to revert this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, I don't believe I have any more changes to push as of now. The PR is just about to pass CI so let me know if you think it'll be better to still revert the changes to have as minimal of a diff has possible. Thanks! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For those finding this from search... we talked offline and agreed that given the time-sensitivity of this, it wasn't worth another round of CI to revert this change. |
||
|
||
|
||
def set_download_dir(path): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nv-rliu Can I ask why this was added to notebook dependencies? It looks like the package is only imported in tests, not notebooks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, my apologies. I thought that we needed this package in the notebook tests because we also use the datasets API in the notebooks a lot. It may not be necessary after all..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if "having certifi installed" is sufficient to avoid this issue or not. Were you seeing certificate failures on notebook jobs before? Are they resolved now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. Just having it installed doesn't actually do anything for the notebooks.
I am not seeing any SSL failures for the notebooks so we can remove this dependency. Should I go ahead and do that in 24.12 or should it be in 25.02?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
25.02 please!