Auteur Topic: Installing CouchPotato from source  (gelezen 5210 keer)

Offline raptile

  • MVP
  • *
  • Bedankjes
  • -Gegeven: 66
  • -Ontvangen: 131
  • Berichten: 1.263
Installing CouchPotato from source
« Gepost op: 12 juni 2012, 23:43:31 »
Wie o wie heeft hier ervaring mee?!


Volgens Ruud Burger zijn er een aantal bugs gefixt waar ik tegen aan loop en hij geeft aan dat ik bij SynoCommunity moet zijn om de laatste versie te kunnen krijgen of ik moet het zonder package manager installeren.

Dit laatste heb ik geprobeerd omdat ik de bugs erg vervelend vindt waar ik tegen aan loop.

Maar...

------------------------

Linux (ubuntu / debian):
•   Install GIT with apt-get install git-core
•   'cd' to the folder of your choosing.
•   Run git clone https://github.com/RuudBurger/CouchPotatoServer.git
•   Then do python CouchPotatoServer/CouchPotato.py to start
•   To run on boot copy the init script. cp CouchPotatoServer/init/ubuntu /etc/init.d/couchpotato
•   Change the paths inside the init script. nano /etc/init.d/couchpotato
•   Make it executable. chmod +x /etc/init.d/couchpotato
•   Add it to defaults. sudo update-rc.d couchpotato defaults



Maar dat is voor Linux/Ubuntu.
Update-rc.d betaat niet op een Synology NAS.
Daarnaast gaat het toch niet helemaal lekker.

Als je python kunt draaien, Kan je ook CP vanuit de source draaien....

Wat doe ik dan fout?!
Zie onderstaande…


Via ipkg heb ik git geinstalleerd



root@RapOlogy:~/cptemp #git clone https://github.com/RuudBurger/CouchPotatoSer>
Cloning into 'CouchPotatoServer'...
remote: Counting objects: 11949, done.
remote: Compressing objects: 100% (4595/4595), done.
remote: Total 11949 (delta 7489), reused 11676 (delta 7243)
Receiving objects: 100% (11949/11949), 5.34 MiB | 1.29 MiB/s, done.
Resolving deltas: 100% (7489/7489), done.

So far so good :)


root@RapOlogy:~/cptemp #cd CouchPotatoServer/
root@RapOlogy:~/cptemp/CouchPotatoServer #ls
CouchPotato.py  README.md       couchpotato     init            libs            license.txt     version.py
root@RapOlogy:~/cptemp/CouchPotatoServer #./CouchPotato.py
env: python: No such file or directory

Dus python zit niet als omgeving variable in mn NAS.

Geen probleem.


root@RapOlogy:/volume1/@appstore/python/bin #msgwd
/volume1/@appstore/python/bin
lrwxrwxrwx    1 root     root             9 Jun  1 21:31 python2 -> python2.7
lrwxrwxrwx    1 root     root             7 Jun  1 21:31 python -> python2

Maar als ik hem zo op wil starten:
root@RapOlogy:~/cptemp/CouchPotatoServer #/volume1/@appstore/python/bin/python CouchPotato.py

Dan gaat het alsnog goed mis:

Traceback (most recent call last):
  File "CouchPotato.py", line 121, in <module>
    l.run()
  File "CouchPotato.py", line 80, in run
    runCouchPotato(self.options, base_path, sys.argv[1:], data_dir = self.data_dir, log_dir = self.log_dir, Env = Env)
  File "/root/cptemp/CouchPotatoServer/couchpotato/runner.py", line 245, in runCouchPotato
    application.listen(config['port'], config['host'], no_keep_alive = True)
  File "/root/cptemp/CouchPotatoServer/libs/tornado/web.py", line 1227, in listen
    server.listen(port, address)
  File "/root/cptemp/CouchPotatoServer/libs/tornado/netutil.py", line 100, in listen
    sockets = bind_sockets(port, address=address)
  File "/root/cptemp/CouchPotatoServer/libs/tornado/netutil.py", line 259, in bind_sockets
    sock.bind(sockaddr)
  File "/volume1/@appstore/python/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use
Exception in thread Thread-120 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/volume1/@appstore/python/lib/python2.7/threading.py", line 551, in __bootstrap_inner
  File "/volume1/@appstore/python/lib/python2.7/threading.py", line 504, in run
  File "/root/cptemp/CouchPotatoServer/libs/axl/axel.py", line 215, in _execute
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Empty'
Exception in thread Thread-119 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/volume1/@appstore/python/lib/python2.7/threading.py", line 551, in __bootstrap_inner
  File "/volume1/@appstore/python/lib/python2.7/threading.py", line 504, in run
  File "/root/cptemp/CouchPotatoServer/libs/axl/axel.py", line 215, in _execute
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Empty'
Exception in thread Thread-113 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/volume1/@appstore/python/lib/python2.7/threading.py", line 551, in __bootstrap_inner
  File "/volume1/@appstore/python/lib/python2.7/threading.py", line 504, in run
  File "/root/cptemp/CouchPotatoServer/libs/axl/axel.py", line 215, in _execute
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Empty'
Exception in thread APScheduler (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/volume1/@appstore/python/lib/python2.7/threading.py", line 551, in __bootstrap_inner
  File "/volume1/@appstore/python/lib/python2.7/threading.py", line 504, in run
  File "/root/cptemp/CouchPotatoServer/libs/apscheduler/scheduler.py", line 542, in _main_loop
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'debug'
Exception in thread Thread-116 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/volume1/@appstore/python/lib/python2.7/threading.py", line 551, in __bootstrap_inner
  File "/volume1/@appstore/python/lib/python2.7/threading.py", line 504, in run
  File "/root/cptemp/CouchPotatoServer/libs/axl/axel.py", line 215, in _execute
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Empty'




Voor mij houdt het dan gewoon op :(


In de CP package van SynoCommunity zie ik ook e.e.a. voorbij komen van Python:

/volume1/@appstore/couchpotatoserver/env/bin/python
/volume1/@appstore/couchpotatoserver/env/include/python2.7
/volume1/@appstore/couchpotatoserver/env/lib/python2.7
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/UserDict.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/UserDict.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/_abcoll.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/_abcoll.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/_weakrefset.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/_weakrefset.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/abc.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/abc.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/codecs.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/codecs.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/config
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/copy_reg.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/copy_reg.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/distutils
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/encodings
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/fnmatch.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/fnmatch.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/genericpath.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/genericpath.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/lib-dynload
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/linecache.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/linecache.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/locale.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/locale.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/ntpath.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/orig-prefix.txt
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/os.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/os.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/posixpath.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/posixpath.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/re.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/re.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/sre.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/sre_compile.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/sre_compile.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/sre_constants.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/sre_constants.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/sre_parse.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/sre_parse.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/stat.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/stat.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/types.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/types.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/warnings.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/warnings.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/distutils/__init__.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/distutils/__init__.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/distutils/distutils.cfg
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/easy-install.pth
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/setuptools.pth
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/EGG-INFO
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/EGG-INFO/PKG-INFO
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/EGG-INFO/SOURCES.txt
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/EGG-INFO/dependency_links.txt
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/EGG-INFO/entry_points.txt
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/EGG-INFO/not-zip-safe
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/EGG-INFO/top_level.txt
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/__init__.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/__init__.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/_pkgutil.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/_pkgutil.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/backwardcompat.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/backwardcompat.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/baseparser.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/baseparser.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/download.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/download.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/exceptions.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/exceptions.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/index.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/index.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/locations.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/locations.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/log.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/log.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/runner.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/runner.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/status_codes.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/status_codes.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/util.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/util.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/vcs
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/__init__.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/__init__.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/bundle.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/bundle.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/completion.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/completion.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/freeze.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/freeze.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/help.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/help.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/install.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/install.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/search.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/search.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/uninstall.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/uninstall.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/unzip.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/unzip.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/zip.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/zip.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/vcs/__init__.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/vcs/__init__.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/vcs/bazaar.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/vcs/bazaar.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/vcs/git.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/vcs/git.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/vcs/mercurial.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/vcs/mercurial.pyc
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/vcs/subversion.py
/volume1/@appstore/couchpotatoserver/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/vcs/subversion.pyc



Heeft iemand hier ervaring mee of kan iemand mij vertellen wat ik moet doen?
If UNIX isn\'t the solution, you\'ve got the wrong problem...

Is RAID hetzelfde als een backup?

Heeft het antwoord van een gebruiker je geholpen met het oplossen van je probleem?
Geef hem/haar een bedankje door op de bedankt knop te drukken!


 

NAS 1513+ Time out when installing

Gestart door geert_abscisBoard NAS hardware vragen

Reacties: 4
Gelezen: 1662
Laatste bericht 17 april 2014, 11:01:15
door geert_abscis
setup wizard installing

Gestart door cooltennisBoard Synology DSM algemeen

Reacties: 4
Gelezen: 966
Laatste bericht 11 juli 2017, 16:54:05
door Birdy
VERPLAATST: setup wizard installing

Gestart door BirdyBoard Windows

Reacties: 0
Gelezen: 732
Laatste bericht 11 juli 2017, 16:53:33
door Birdy