New installation on RPI3 (Raspbian Stretch lite)


I tried to install latest cozy packages on Raspbian Stretch using the documentation at
while executing the command “cozy-coclyco create cozy.localhost”, I have the error message below:

 Traceback (most recent call last):
  File "/usr/bin/cozy-coclyco", line 11, in <module>
load_entry_point('cozy-coclyco==1.0', 'console_scripts', 'cozy-coclyco')()
  File "/usr/lib/python3/dist-packages/pkg_resources/", line 561, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/", line 2631, in load_entry_point
return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/", line 2291, in load
return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/", line 2297, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/cozy/coclyco/", line 4, in <module>
from .backup import Backup
  File "/usr/lib/python3/dist-packages/cozy/coclyco/", line 9, in <module>
import couchdb
ImportError: No module named 'couchdb'

couchDB and cozy-stack seem started:

#curl http://localhost:5984/
{"couchdb":"Welcome","version":"2.1.0","features":["scheduler"],"vendor":{"name":"The Apache >     > Software Foundation"}}
#curl http://localhost:8080/version


Hello @SomeAverageDev !

First install on raspi :heart_eyes:

Do you have python3-couchdb package installed ?

Edit : I notice this package was not published on nightly, I do it manually. And cozy-coclyco package doesn’t declare it as dependancy. Will see this night if the next build will be better.


Hello @aeris,
yes I love to take risks :wink:
might be the same dependency issue for yaml.

the default installed python version is Python 2.7.13

below my modules list (I also manually installed python-yaml)

> Please wait a moment while I gather a list of all available modules...

> BaseHTTPServer      anydbm              httplib             select
> Bastion             argparse            idna                sets
> CDROM               array               ihooks              setuptools
> CGIHTTPServer       ast                 imageop             sgmllib
> Canvas              asynchat            imaplib             sha
> ConfigParser        asyncore            imghdr              shelve
> Cookie              atexit              imp                 shlex
> DLFCN               audiodev            importlib           shutil
> Dialog              audioop             imputil             signal
> DocXMLRPCServer     base64              inspect             site
> FileDialog          bdb                 io                  sitecustomize
> FixTk               binascii            ipaddress           six
> HTMLParser          binhex              itertools           smtpd
> IN                  bisect              json                smtplib
> MimeWriter          bsddb               keyword             sndhdr
> OpenSSL             bz2                 lib2to3             socket
> Queue               cPickle             linecache           spwd
> RPi                 cProfile            linuxaudiodev       sqlite3
> ScrolledText        cStringIO           locale              sre
> SimpleDialog        calendar            logging             sre_compile
> SimpleHTTPServer    cgi                 lsb_release         sre_constants
> SimpleXMLRPCServer  cgitb               macpath             sre_parse
> SocketServer        chardet             macurl2path         ssl
> StringIO            chunk               mailbox             stat
> TYPES               cmath               mailcap             statvfs
> Tix                 cmd                 markupbase          string
> Tkconstants         code                marshal             stringold
> Tkdnd               codecs              math                stringprep
> Tkinter             codeop              md5                 strop
> UserDict            collections         mhlib               struct
> UserList            colorsys            mimetools           subprocess
> UserString          commands            mimetypes           sunau
> _LWPCookieJar       compileall          mimify              sunaudio
> _MozillaCookieJar   compiler            mmap                symbol
> __builtin__         contextlib          modulefinder        symtable
> __future__          cookielib           multifile           sys
> _abcoll             copy                multiprocessing     sysconfig
> _ast                copy_reg            mutex               syslog
> _bisect             couchdb             netrc               tabnanny
> _bsddb              crypt               new                 tarfile
> _cffi_backend       cryptography        nis                 telnetlib
> _codecs             csv                 nntplib             tempfile
> _codecs_cn          ctypes              ntpath              termios
> _codecs_hk          curses              nturl2path          test
> _codecs_iso2022     datetime            numbers             textwrap
> _codecs_jp          dbhash              opcode              this
> _codecs_kr          dbm                 operator            thread
> _codecs_tw          debconf             optparse            threading
> _collections        decimal             os                  time
> _csv                difflib             os2emxpath          timeit
> _ctypes             dircache            ossaudiodev         tkColorChooser
> _ctypes_test        dis                 parser              tkCommonDialog
> _curses             distutils           pdb                 tkFileDialog
> _curses_panel       dl                  pickle              tkFont
> _elementtree        doctest             pickletools         tkMessageBox
> _functools          dumbdbm             pipes               tkSimpleDialog
> _hashlib            dummy_thread        pkg_resources       toaiff
> _heapq              dummy_threading     pkgutil             token
> _hotshot            easy_install        platform            tokenize
> _io                 email               plistlib            trace
> _json               encodings           popen2              traceback
> _locale             ensurepip           poplib              ttk
> _lsprof             enum                posix               tty
> _md5                errno               posixfile           turtle
> _multibytecodec     exceptions          posixpath           types
> _multiprocessing    fcntl               pprint              unicodedata
> _osx_support        filecmp             profile             unittest
> _pyio               fileinput           progressbar         urllib
> _random             fnmatch             pstats              urllib2
> _sha                formatter           pty                 urllib3
> _sha256             fpectl              pwd                 urlparse
> _sha512             fpformat            py_compile          user
> _socket             fractions           pyasn1              uu
> _sqlite3            ftplib              pyclbr              uuid
> _sre                functools           pydoc               warnings
> _ssl                future_builtins     pydoc_data          wave
> _strptime           gc                  pyexpat             weakref
> _struct             genericpath         quopri              webbrowser
> _symtable           getopt              random              whichdb
> _sysconfigdata      getpass             re                  wsgiref
> _sysconfigdata_nd   gettext             readline            xdrlib
> _testcapi           glob                repr                xml
> _threading_local    grp                 requests            xmllib
> _warnings           gzip                resource            xmlrpclib
> _weakref            hashlib             rexec               xxsubtype
> _weakrefset         heapq               rfc822              yaml
> _yaml               hmac                rlcompleter         zipfile
> abc                 hotshot             robotparser         zipimport
> aifc                htmlentitydefs      runpy               zlib
> antigravity         htmllib             sched


I have the same issue on my side, on rpi3 and on my OVH vps.

@SomeAverageDev how do you list installed python module ?


Hello @quentin_lamamy,
use python -c “help(‘modules’)” from command line
or python3 -c “help(‘modules’)”


Coclyco is python3 only, so use python3 and not python if you want to list your available python packages for Coclyco.

I found the trouble with dependencies on cozy-coclyco Debian package. I fix it, will be correct on the next build tomorrow.


@SomeAverageDev thks

@aeris i will make an install from scratch at 7AM (to be sure that the build is done) and test that bugfix


No bug anymore on my side

cozy@vps430380:/$ sudo cozy-coclyco create
[INF] Create new account key /etc/ssl/private/account.pem
[INF] Accept TOS:
[INF] Creating new master key /etc/ssl/private/cozy.pem
[INF] Create instance with email

@SomeAverageDev Does it work on your side ?


Hello @SomeAverageDev,

Have you succeed in installing Cozy?
For the record, packages are now available in testing.


Hello @Clochix,
No I gave up, as I don’t have much time and also I don’t have a domain and subdomains to play with (I use a pi3 behind my box).
It looks we must have a dedicated domain and a SSL certificate to make cozy works.


Sorry to read that.

If you just want to test Cozy on your local network, you probably could succeed by using your own DNS resolver and self-signed certificates but it would require som hacking.


You can also create a « dev » instance (with the --dev flag in cozy-stack instances add command), which disable TLS and so the certificate need.
But you always need a DNS resolver or hardcoded IP in hosts file even in dev mode.


Hello @Clochix and @aeris
I will probably try again soon, at the end my personal utilization will be behind my box, using my box’s url. I will try the --dev flag, it could be enough.
I don’t understand the obligation to have one subdomain per app, if I understood correctly, it won’t be easy to manage on a personal instance. probably much easier with an automated platform as you might prepare on your side.


Each application having its own subdomain is required for security reasons. This prevent an application to access the data of another one.
Soon, Let’s encrypt will offer wildcard certificates, son getting certificates for each application will become much easier.


Hi…thanks for sharing the info. .I think I understand everything but one thing.First I have to say that I use Mac for this.When you say the two have to "Write the image to the Micro SD card in your laptop and Replace SDX with the block Device…I am lost there.I guess its not just to copy the image on MIcroSDcard right? how are we supposed to do this?