Code Monkey home page Code Monkey logo

Comments (8)

thiagotalma avatar thiagotalma commented on July 24, 2024 2

@drybjed I had the same problem no such file or directory

I discovered it was the lack of git package. You forgot to include it as prerequisites.

from debops-tools.

drybjed avatar drybjed commented on July 24, 2024

So you tried DebOps from pypi? Can you try with version from GitHub and see if you get the same result?

from debops-tools.

leviwheatcroft avatar leviwheatcroft commented on July 24, 2024

different issue...

root@hmoffice:/etc/ansible/playbooks# pip install https://github.com/debops/debops/archive/master.zip
Downloading/unpacking https://github.com/debops/debops/archive/master.zip
  Downloading master.zip (unknown size): 69kB downloaded
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1198, in prepare_files
    do_download,
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1376, in unpack_url
    self.session,
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 572, in unpack_http_url
    download_hash = _download_url(resp, link, temp_location)
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 433, in _download_url
    for chunk in resp_read(4096):
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 421, in resp_read
    chunk_size, decode_content=False):
  File "/usr/lib/python2.7/dist-packages/urllib3/response.py", line 256, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "/usr/lib/python2.7/dist-packages/urllib3/response.py", line 186, in read
    data = self._fp.read(amt)
  File "/usr/lib/python2.7/httplib.py", line 573, in read
    s = self.fp.read(amt)
  File "/usr/lib/python2.7/socket.py", line 380, in read
    data = self._sock.recv(left)
  File "/usr/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py", line 188, in recv
    data = self.connection.recv(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 995, in recv
    self._raise_ssl_error(self._ssl, result)
  File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 851, in _raise_ssl_error
    raise ZeroReturnError()
ZeroReturnError

Storing debug log for failure in /root/.pip/pip.log

Is python 2.7 correct. I noticed I'm running ansible 1.7, while 1.9 is recommended, but I don't think that's what caused the error here.

from debops-tools.

drybjed avatar drybjed commented on July 24, 2024

from debops-tools.

leviwheatcroft avatar leviwheatcroft commented on July 24, 2024

Ok so for my first issue, debops-update returning no such file or directory, yes cloning the git repo solved this problem.

For the second issue, python ZeroReturnError(), I resolved that by:

sudo apt-get install python-dev
sudo pip install --upgrade pyOpenSSL

I rarely use python, so I installed python on this machine (Debian Jessie) just a few days ago for the first time to play around with ansible. The pyOpenSSL package installed by default was 0.14, and updating it to 0.15 solved the ZeroReturnError problem.

Thanks so much for your advice!

from debops-tools.

drybjed avatar drybjed commented on July 24, 2024

Good to know you fixed the issue. I wonder if it's repeatable and should requirements reflect that pyOpenSSL needs to be updated on Jessie, however I'm running Ansible on Ubuntu Trusty machine where I have 0.13 installed, and no issues. Perhaps it's related to this specific 0.14 version of pyOpenSSL.

from debops-tools.

leviwheatcroft avatar leviwheatcroft commented on July 24, 2024

Can confirm pyOpenSSL needs to be updated in this fashion from a clean install of debian 8.1

edit: actually you have to uninstall pyOpenSSL with apt first before you can upgrade it with pip:

sudo apt-get remove python-openssl
sudo pip install pyOpenSSL

from debops-tools.

violuke avatar violuke commented on July 24, 2024

Yes, as @thiagotalma said, this is caused by the git package being missing. Thanks.

from debops-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.