librabbitmq icon indicating copy to clipboard operation
librabbitmq copied to clipboard

Installation via pip behind a firewall

Open ghost opened this issue 5 years ago • 0 comments

I realise this is something of a long shot, but my team have been experiencing issues trying to install librabbitmq behind a corporate firewall, specifically the machine in question is unable to reach GitHub, so we can't clone rabbitmq-c.

Building wheels for collected packages: librabbitmq
  Building wheel for librabbitmq (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /local/approc/matcaz/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-oxo3yel5/librabbitmq/setup.py'"'"'; __file__='"'"'/tmp/pip-install-oxo3yel5/librabbitmq/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-yq3b23_f
       cwd: /tmp/pip-install-oxo3yel5/librabbitmq/
  Complete output (7 lines):
  /tmp/pip-install-oxo3yel5/librabbitmq/setup.py:167: DeprecationWarning: 'U' mode is deprecated
    long_description = open(os.path.join(BASE_PATH, 'README.rst'), 'U').read()
  running build
  - pull submodule rabbitmq-c...
  Cloning into 'rabbitmq-c'...
  fatal: unable to access 'https://github.com/alanxz/rabbitmq-c.git/': Failed connect to github.com:443; Connection refused
  error: [Errno 2] No such file or directory: '/tmp/pip-install-oxo3yel5/librabbitmq/rabbitmq-c'
  ----------------------------------------
  ERROR: Failed building wheel for librabbitmq

Right now as far as I can see our options are to either get a firewall exception or to manually clone, copy and build the project locally.

Essentially what I'm asking is do we have a third option, i.e could rabbitmq-c be included in a PyPi (which we have a proxy for) distribution?

ghost avatar Jun 29 '20 08:06 ghost