Skip to content

Stop using deprecated urllib.request.URLopener#158

Merged
glukhman merged 1 commit intocloudify-cosmo:masterfrom
barneygale:fix-urlopener
Jan 18, 2026
Merged

Stop using deprecated urllib.request.URLopener#158
glukhman merged 1 commit intocloudify-cosmo:masterfrom
barneygale:fix-urlopener

Conversation

@barneygale
Copy link
Contributor

This was deprecated in Python 3.3.

Fixes #157

This was deprecated in Python 3.3.

Fixes cloudify-cosmo#157
@davidfstr
Copy link

wagon no longer imports on Python 3.14+ due to this problem.

Here's how I got wagon to be usable on Python 3.14:

WAGON_PATH=/usr/local/lib/python3.14/site-packages/wagon.py
sed -i 's/from urllib.request import URLopener/from urllib.request import urlopen/' $WAGON_PATH
sed -i 's/from urllib import urlopen/from urllib.request import urlopen/' $WAGON_PATH

@glukhman glukhman merged commit 9cc6fa2 into cloudify-cosmo:master Jan 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

urllib.request.URLopener is deprecated

4 participants