ERROR <urlopen error Tunnel connection failed: 407 Proxy Authentication Required> #1923
Replies: 6 comments 1 reply
-
First following this guide |
Beta Was this translation helpful? Give feedback.
-
First try set envionment like this
If it still not work, try to patch diff --git a/pyarmor/cli/context.py b/pyarmor/cli/context.py
index 068ad359..cd46c0ee 100644
--- a/pyarmor/cli/context.py
+++ b/pyarmor/cli/context.py
@@ -753,7 +753,9 @@ class Context(object):
return urlopen(req, None, timeout, context=context)
with get_response('pyarmor.dashingsoft.com') as res:
- return res.read()
+ data = res.read()
+ print('got server data: ', ' '.join(['%02x' % x for x in data]))
+ return data Then
And paste the full output here |
Beta Was this translation helpful? Give feedback.
-
And it's better to use IPv4 proxy, IPv6 proxy may not work |
Beta Was this translation helpful? Give feedback.
-
I've updated the pyarmor/cli/context.py file, and executed the steps you've mentioned, but it seems like the output is the same.
|
Beta Was this translation helpful? Give feedback.
-
Please patch function |
Beta Was this translation helpful? Give feedback.
-
Adding the extra settings to context.py solved the issue, thank you! |
Beta Was this translation helpful? Give feedback.
-
I've bought a Pyarmor-pro license, and I'm trying to activate the product. I'm having the following issue.
I'm in a corporate network with proxy enabled, but its settings should be fine (e.g., pip is working). I'm executing the scrip in Visual Studio Code. Please tell me how should I proceed, what settings should I revise.
Beta Was this translation helpful? Give feedback.
All reactions