Open NimaDolatabadi opened 1 year ago
It appears this would work if IPv6 were disabled. Can you try disabling IPv6?
It appears this would work if IPv6 were disabled. Can you try disabling IPv6?
the problem still exist!
it seems no one cares for Iran! Python, Open source, Free, lots of developers and still we are limited. not gonna do anything at all?
I have the same issue with installing packages
I have the same problem ---> Cannot install anything using pip from IRAN
What is this?? What is going to happen tomorrow??? Is someone going to ban us from living?? I feel like I am suffocating.
I have the same issue with installing packages
Hello, the problem has been made clear and your frustrations and anxieties are understandable. I'm sorry there isn't more that we are aware of that can be done.
As far as we are able to determine this censorship is enacted and enforced by the Iranian government and ISRG.
If anyone has actionable solutions, they are encouraged to suggest them here. We do not have the resources or expertise to determine methods of making PyPI and its associated service domains reliably available in the face of such state censorship.
I have the same issue with installing packages
I have the same problem ---> Cannot install anything using pip from IRAN
I have the same problem ---> Cannot install anything using pip from IRAN
I have the same problem. I can't install Python packages using pip from IRAN.
I faced same problem.
Hello, the problem has been made clear and your frustrations and anxieties are understandable. I'm sorry there isn't more that we are aware of that can be done.
As far as we are able to determine this censorship is enacted and enforced by the Iranian government and ISRG.
If anyone has actionable solutions, they are encouraged to suggest them here. We do not have the resources or expertise to determine methods of making PyPI and its associated service domains reliably available in the face of such state censorship.
Just tested out dns changing. These two works fine: 178.22.122.100 185.51.200.2
Hello, the problem has been made clear and your frustrations and anxieties are understandable. I'm sorry there isn't more that we are aware of that can be done.
As far as we are able to determine this censorship is enacted and enforced by the Iranian government and ISRG.
If anyone has actionable solutions, they are encouraged to suggest them here. We do not have the resources or expertise to determine methods of making PyPI and its associated service domains reliably available in the face of such state censorship.
Just about 15 minutes after i made this report, the download got opened again but download speed is extremely slow at about 20 KB/S. Now I'm sure it was something on PyPi side. Download speed is still the problem. I know that mirror repo works well but the main repo still encountering serious issues this could be ISP problem due to no affection of using any sort of vpn.
I hope you're service becomes functional in later days at all. Regards
I have the same issue with installing packages
Super slow download rate here ... Anybody got a solution to this issue yet?
This is a result of state censorship as the Pypi repos are hosted on Fastly CDN and CDNs are being blocked by I.R. and IRGC because of their censorship circumvention abilities (domain fronting, etc) without any regards to the costs on society and economy. There's no (easy) way to make changes that will help the situation. The only salvation is in the streets.
This is a result of state censorship as the Pypi repos are hosted on Fastly CDN and CDNs are being blocked by I.R. and IRGC because of their censorship circumvention abilities (domain fronting, etc) without any regards to the costs on society and economy. There's no (easy) way to make changes that will help the situation. The only salvation is in the streets.
so the only common way to get over with it is the one and only mirrors?! Like we're gonna stil and let them get a head of us
I have the same problem. I think it's a sanction or something.
I have the same issue with installing packages
I have the same problem. what happened؟
Unfortunately, I have the same issue with installing libraries and packages using pip.
Hello, at this point the reply piling is not helping.
I'll reiterate: If anyone has constructive suggestions as to what can be done or can point to other services that have restored service after such state censorship, those replies are welcome.
If the reply piling continues, I will lock the discussion of this topic to maintainers. Which I DO NOT want to do. I would prefer to leave it open for those that might have suggestions or implementation ideas on mechanisms to make PyPI available in Iran again.
Just install pysocks then use SSH tunneling for pip
Unfortunately, i have same problem!
👌🏾👌🏾
I have the same problem since about two or three months ago.
Being born in this country is like being born in a maze . you have to try to get out of it entire your life. I have the same problem...
I have the same problem ---> Cannot install anything using pip from IRAN
Just install pysocks then use SSH tunneling for pip
have any manual for that? can you share it here please?
Same problem here, sometimes I have to use conda. But, it does not work for all packages.
What is the definition of open source?? If Python does not work properly for Iran, then it is not open source?
I have the same problem, we need DNS changer or VPN to download Python packages, it's nonsense
I did some analysis. DNS is fine, there's no DNS -based blocking. TLS connections are being established too, so there isn't blocking there either.
What happens is that the connection is then being throttled. It's hard to tell what is triggering that. It could be the domain name on the SNI, or simply the IP address.
It would be helpful to determine whether this is ISP-dependent. Here is a command to try:
time curl --ipv4 'https://files.pythonhosted.org/packages/84/a9/2bf119f3f9cff1f376f924e39cfae18dec92a1514784046d185731301281/scipy-1.10.1.tar.gz' > /dev/null
It should take around 2-5 seconds. On networks doing throttling it will take a lot more than that. Can people test on the different ISPs?
I came up with a way to test if the throttling is based on the domain name.
First, establish a baseline of how long it takes to download the file directly:
time curl --ipv4 'https://files.pythonhosted.org/packages/84/a9/2bf119f3f9cff1f376f924e39cfae18dec92a1514784046d185731301281/scipy-1.10.1.tar.gz' > /dev/null
You may need to run that multiple times to make sure it's somewhat stable. Perhaps 3 times and take the median time.
Then, run the fetch again with ClientHello splitting:
mkfifo in.fifo
nc -l localhost 8443 < in.fifo | { dd bs=100 count=1; sleep 0.1; cat; } | nc files.pythonhosted.org 443 > in.fifo &
time curl --connect-to ::localhost:8443 'https://files.pythonhosted.org/packages/84/a9/2bf119f3f9cff1f376f924e39cfae18dec92a1514784046d185731301281/scipy-1.10.1.tar.gz' > /dev/null
This code is running a local server on port 8443 that intercepts the outgoing flow, splits it on byte 100, then forwards to files.pythonhosted.org. We use in.fifo to connect the two nc
commands for the incoming flow.
Here is a diagram of what's going on:
If the throttling is based on the SNI, and if the censor only looks at the first packet, then the second download should run a lot faster than the first one.
If anyone gives it a try, please report back.
I have the same problem ---> Cannot install anything using pip from IRAN
I have same problem. I can not install any package via pip
My Platform
I am using Ubuntu 22.04,,Installed anaconda and using pip to install the packages. the download speed was reduced to 20KB/S and now it gives connectivity error. I have tried with anything possible, wifi, celular, data. lan. any company, just anything
Fastly Debug
the site given: https://fastly-debug.com/ cannot even be loaded. i live in iran we have extreme limitation over internet and vpn so if there is any other way to do the job please tell me.
DNS Resolution
Traceroutes / IPv4
Traceroutes / IPv6 (If available)
HTTPS Requests / IPv4
HTTPS Requests / IPv6 (If available)
TLS Debug / IPv4
TLS Debug / IPv6 (If available)
Code of Conduct