Configure devpi-server to work behind proxy server at workplace
Hi! We want to use devpi-server to share packages between colleagues on 64-bit Windows using miniconda environment. The problem is we can't download packages from pypi and from our local index. The uploading works fine and the uploaded packages are visible on devpi-web. The pip.ini contains the http://localhost:3141/root/pypi/+simple/ index-url and trusted-host localhost (localhost=server hostname) configuration but I get the following error: [test] C:\Users\{username}>pip install simplejson Collecting simplejson Could not find a version that satisfies the requirement simplejson (from versi ons: ) No matching distribution found for simplejson Is it because of the company's proxy server or the conda environment? Best regards, RedDevil91
Hi! Please look at http://localhost:3141/root/pypi/+simple/simplejson to see if devpi lists any releases at all. If it doesn't, then it might not be able to access pypi. You should look at the log output. Maybe start devpi with --debug to see more information. If it lists releases when accessing the above URL via a browser, then try to run pip install -v simplejson to get more info on what pip tries to do. Regards, Florian Schulze On 1 Jul 2016, at 13:59, RedDevil91 wrote:
Hi!
We want to use devpi-server to share packages between colleagues on 64-bit Windows using miniconda environment. The problem is we can't download packages from pypi and from our local index. The uploading works fine and the uploaded packages are visible on devpi-web. The pip.ini contains the index-url and trusted-host localhost (localhost=server hostname) configuration but I get the following error:
[test] C:\Users\{username}>pip install simplejson Collecting simplejson Could not find a version that satisfies the requirement simplejson (from versi ons: ) No matching distribution found for simplejson
Is it because of the company's proxy server or the conda environment?
Best regards, RedDevil91
-- You received this message because you are subscribed to the Google Groups "devpi-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to devpi-dev+...@googlegroups.com. To post to this group, send email to devp...@googlegroups.com. Visit this group at https://groups.google.com/group/devpi-dev. For more options, visit https://groups.google.com/d/optout.
Hi! I have tried everything I can but in vain. Devpi can't reach pypi. I get the following error when trying to list the simplejson releases with your link: An error has occurred: *502 Bad Gateway* -1 status on GET https://pypi.python.org/simple/simplejson/ My uploaded package is listed on the devpi-web page but we get the same error when we try to install it from another computer. Could not find a version that satisfies the requirement {packagename} (from versions: ) No matching distribution found for {packagename} command failed I have no idea what to do. Best regards, RedDevil91 2016. július 1., péntek 15:44:28 UTC+2 időpontban Florian Schulze a következőt írta:
Hi!
Please look at http://localhost:3141/root/pypi/+simple/simplejson to see if devpi lists any releases at all.
If it doesn't, then it might not be able to access pypi. You should look at the log output. Maybe start devpi with --debug to see more information.
If it lists releases when accessing the above URL via a browser, then try to run pip install -v simplejson to get more info on what pip tries to do.
Regards, Florian Schulze
On 1 Jul 2016, at 13:59, RedDevil91 wrote:
Hi!
We want to use devpi-server to share packages between colleagues on 64-bit Windows using miniconda environment. The problem is we can't download packages from pypi and from our local index. The uploading works fine and the uploaded packages are visible on devpi-web. The pip.ini contains the index-url and trusted-host localhost (localhost=server hostname) configuration but I get the following error:
[test] C:\Users\{username}>pip install simplejson Collecting simplejson Could not find a version that satisfies the requirement simplejson (from versi ons: ) No matching distribution found for simplejson
Is it because of the company's proxy server or the conda environment?
Best regards, RedDevil91
-- You received this message because you are subscribed to the Google Groups "devpi-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to devpi-...@googlegroups.com javascript:. To post to this group, send email to dev...@googlegroups.com javascript:. Visit this group at https://groups.google.com/group/devpi-dev. For more options, visit https://groups.google.com/d/optout.
Try setting http_proxy and https_proxy in the environment that runs devpi-server. That way devpi-server should use the proxy to access PyPI. Regards, Florian Schulze On 1 Jul 2016, at 16:12, RedDevil91 wrote:
Hi!
I have tried everything I can but in vain. Devpi can't reach pypi. I get the following error when trying to list the simplejson releases with your link:
An error has occurred: *502 Bad Gateway* -1 status on GET https://pypi.python.org/simple/simplejson/
My uploaded package is listed on the devpi-web page but we get the same error when we try to install it from another computer.
Could not find a version that satisfies the requirement {packagename} (from versions: ) No matching distribution found for {packagename} command failed
I have no idea what to do.
Best regards, RedDevil91
2016. július 1., péntek 15:44:28 UTC+2 időpontban Florian Schulze a következőt írta:
Hi!
Please look at http://localhost:3141/root/pypi/+simple/simplejson to see if devpi lists any releases at all.
If it doesn't, then it might not be able to access pypi. You should look at the log output. Maybe start devpi with --debug to see more information.
If it lists releases when accessing the above URL via a browser, then try to run pip install -v simplejson to get more info on what pip tries to do.
Regards, Florian Schulze
On 1 Jul 2016, at 13:59, RedDevil91 wrote:
Hi!
We want to use devpi-server to share packages between colleagues on 64-bit Windows using miniconda environment. The problem is we can't download packages from pypi and from our local index. The uploading works fine and the uploaded packages are visible on devpi-web. The pip.ini contains the index-url and trusted-host localhost (localhost=server hostname) configuration but I get the following error:
[test] C:\Users\{username}>pip install simplejson Collecting simplejson Could not find a version that satisfies the requirement simplejson (from versi ons: ) No matching distribution found for simplejson
Is it because of the company's proxy server or the conda environment?
Best regards, RedDevil91
-- You received this message because you are subscribed to the Google Groups "devpi-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to devpi-...@googlegroups.com javascript:. To post to this group, send email to dev...@googlegroups.com javascript:. Visit this group at https://groups.google.com/group/devpi-dev. For more options, visit https://groups.google.com/d/optout.
Hi! Miniconda is running with the right http_proxy and https_proxy settings and works flawlessly. I tried to set http_proxy and https_proxy as an environment variable but the installation still doesn't work. Regards, RedDevil91 2016. július 1., péntek 18:05:26 UTC+2 időpontban Florian Schulze a következőt írta:
Try setting http_proxy and https_proxy in the environment that runs devpi-server. That way devpi-server should use the proxy to access PyPI.
Regards, Florian Schulze
On 1 Jul 2016, at 16:12, RedDevil91 wrote:
Hi!
I have tried everything I can but in vain. Devpi can't reach pypi. I get the following error when trying to list the simplejson releases with your link:
An error has occurred: *502 Bad Gateway* -1 status on GET https://pypi.python.org/simple/simplejson/
My uploaded package is listed on the devpi-web page but we get the same error when we try to install it from another computer.
Could not find a version that satisfies the requirement {packagename} (from versions: ) No matching distribution found for {packagename} command failed
I have no idea what to do.
Best regards, RedDevil91
2016. július 1., péntek 15:44:28 UTC+2 időpontban Florian Schulze a következőt írta:
Hi!
Please look at http://localhost:3141/root/pypi/+simple/simplejson to see if devpi lists any releases at all.
If it doesn't, then it might not be able to access pypi. You should look at the log output. Maybe start devpi with --debug to see more information.
If it lists releases when accessing the above URL via a browser, then try to run pip install -v simplejson to get more info on what pip tries to do.
Regards, Florian Schulze
On 1 Jul 2016, at 13:59, RedDevil91 wrote:
Hi!
We want to use devpi-server to share packages between colleagues on 64-bit Windows using miniconda environment. The problem is we can't download packages from pypi and from our local index. The uploading works fine and the uploaded packages are visible on devpi-web. The pip.ini contains the index-url and trusted-host localhost (localhost=server hostname) configuration but I get the following error:
[test] C:\Users\{username}>pip install simplejson Collecting simplejson Could not find a version that satisfies the requirement simplejson (from versi ons: ) No matching distribution found for simplejson
Is it because of the company's proxy server or the conda environment?
Best regards, RedDevil91
-- You received this message because you are subscribed to the Google Groups "devpi-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to devpi-...@googlegroups.com javascript:. To post to this group, send email to dev...@googlegroups.com javascript:. Visit this group at https://groups.google.com/group/devpi-dev. For more options, visit https://groups.google.com/d/optout.
On 07/11/2016 01:53 PM, RedDevil91 wrote:
Miniconda is running with the right http_proxy and https_proxy settings and works flawlessly. I tried to set http_proxy and https_proxy as an environment variable but the installation still doesn't work.
It's not the client that needs the proxy settings, but the devpi server. See https://github.com/jhermann/devpi-puppet for a proven "company LAN" setup, specifically: https://github.com/jhermann/devpi-puppet/blob/master/templates/supervisord.c... Note that you need to add local (LAN) hosts to no_proxy depending on how your internet gateway is set up (especially if it denies proxying for internal addresses).
Unfortunately, we use Windows system and I can't generate config files with: devpi-server --gen-config 2016. július 12., kedd 22:58:28 UTC+2 időpontban Jürgen Hermann a következőt írta:
On 07/11/2016 01:53 PM, RedDevil91 wrote:
Miniconda is running with the right http_proxy and https_proxy settings and works flawlessly. I tried to set http_proxy and https_proxy as an environment variable but the installation still doesn't work.
It's not the client that needs the proxy settings, but the devpi server. See https://github.com/jhermann/devpi-puppet for a proven "company LAN" setup, specifically:
https://github.com/jhermann/devpi-puppet/blob/master/templates/supervisord.c...
Note that you need to add local (LAN) hosts to no_proxy depending on how your internet gateway is set up (especially if it denies proxying for internal addresses).
Hi! Does anybody have a solution for Windows platform? Regards, RedDevil91 2016. július 13., szerda 11:25:14 UTC+2 időpontban RedDevil91 a következőt írta:
Unfortunately, we use Windows system and I can't generate config files with: devpi-server --gen-config
2016. július 12., kedd 22:58:28 UTC+2 időpontban Jürgen Hermann a következőt írta:
On 07/11/2016 01:53 PM, RedDevil91 wrote:
Miniconda is running with the right http_proxy and https_proxy settings and works flawlessly. I tried to set http_proxy and https_proxy as an environment variable but the installation still doesn't work.
It's not the client that needs the proxy settings, but the devpi server. See https://github.com/jhermann/devpi-puppet for a proven "company LAN" setup, specifically:
https://github.com/jhermann/devpi-puppet/blob/master/templates/supervisord.c...
Note that you need to add local (LAN) hosts to no_proxy depending on how your internet gateway is set up (especially if it denies proxying for internal addresses).
There should also be a way to set environment variables on windows. If you run it from the command prompt (and possibly power shell), the "set" command should work. Also see http://stackoverflow.com/a/8287752 Regards, Florian Schulze On 26 Jul 2016, at 11:00, RedDevil91 wrote:
Hi!
Does anybody have a solution for Windows platform?
Regards,
RedDevil91
2016. július 13., szerda 11:25:14 UTC+2 időpontban RedDevil91 a következőt írta:
Unfortunately, we use Windows system and I can't generate config files with: devpi-server --gen-config
2016. július 12., kedd 22:58:28 UTC+2 időpontban Jürgen Hermann a következőt írta:
On 07/11/2016 01:53 PM, RedDevil91 wrote:
Miniconda is running with the right http_proxy and https_proxy settings and works flawlessly. I tried to set http_proxy and https_proxy as an environment variable but the installation still doesn't work.
It's not the client that needs the proxy settings, but the devpi server. See https://github.com/jhermann/devpi-puppet for a proven "company LAN" setup, specifically:
https://github.com/jhermann/devpi-puppet/blob/master/templates/supervisord.c...
Note that you need to add local (LAN) hosts to no_proxy depending on how your internet gateway is set up (especially if it denies proxying for internal addresses).
-- You received this message because you are subscribed to the Google Groups "devpi-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to devpi-dev+...@googlegroups.com. To post to this group, send email to devp...@googlegroups.com. Visit this group at https://groups.google.com/group/devpi-dev. For more options, visit https://groups.google.com/d/optout.
I tried to set the environment variables from command prompt. After the settings I started devpi server but it failed to reach pypi packages. 2016. július 26., kedd 12:55:56 UTC+2 időpontban Florian Schulze a következőt írta:
There should also be a way to set environment variables on windows. If you run it from the command prompt (and possibly power shell), the "set" command should work. Also see http://stackoverflow.com/a/8287752
Regards, Florian Schulze
On 26 Jul 2016, at 11:00, RedDevil91 wrote:
Hi!
Does anybody have a solution for Windows platform?
Regards,
RedDevil91
2016. július 13., szerda 11:25:14 UTC+2 időpontban RedDevil91 a következőt írta:
Unfortunately, we use Windows system and I can't generate config files with: devpi-server --gen-config
2016. július 12., kedd 22:58:28 UTC+2 időpontban Jürgen Hermann a következőt írta:
On 07/11/2016 01:53 PM, RedDevil91 wrote:
Miniconda is running with the right http_proxy and https_proxy settings and works flawlessly. I tried to set http_proxy and https_proxy as an environment variable but the installation still doesn't work.
It's not the client that needs the proxy settings, but the devpi server. See https://github.com/jhermann/devpi-puppet for a proven "company LAN" setup, specifically:
https://github.com/jhermann/devpi-puppet/blob/master/templates/supervisord.c...
Note that you need to add local (LAN) hosts to no_proxy depending on how your internet gateway is set up (especially if it denies proxying for internal addresses).
-- You received this message because you are subscribed to the Google Groups "devpi-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to devpi-...@googlegroups.com javascript:. To post to this group, send email to dev...@googlegroups.com javascript:. Visit this group at https://groups.google.com/group/devpi-dev. For more options, visit https://groups.google.com/d/optout.
participants (3)
-
Florian Schulze
-
Jürgen Hermann
-
RedDevil91