Error updating to v3 [OSMC / Debian]

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
pinn
Jr. Member
Jr. Member
Posts: 85
Joined: September 18th, 2011, 4:08 am

Error updating to v3 [OSMC / Debian]

Post by pinn »

I'm following the instructions here:

sudo apt install python3-pip
python3 -m pip install -r requirements.txt -U
tools/make_mo.py

And the second line throws these errors:

Code: Select all

Failed cleaning build dir for cryptography
  Running setup.py bdist_wheel for feedparser ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ook1mwbk/feedparser/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/tmp6ksh0so0pip-wheel- --python-tag cp35:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for feedparser
  Running setup.py clean for feedparser
  Running setup.py bdist_wheel for configobj ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ook1mwbk/configobj/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/tmpjyxw9gzopip-wheel- --python-tag cp35:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for configobj
  Running setup.py clean for configobj
  Running setup.py bdist_wheel for cffi ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ook1mwbk/cffi/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/tmp775s1f5zpip-wheel- --python-tag cp35:
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for cffi
  Running setup.py clean for cffi
Failed to build sabyenc3 cheetah3 cryptography feedparser configobj cffi
Installing collected packages: sabyenc3, cheetah3, pycparser, cffi, six, cryptography, feedparser, configobj, more-itertools, jaraco.functools, cheroot, pytz, tempora, portend, setuptools, zc.lockfile, zipp, importlib-metadata, importlib-resources, jaraco.text, jaraco.classes, jaraco.collections, cherrypy, chardet, notify2
  Running setup.py install for sabyenc3 ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ook1mwbk/sabyenc3/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ic71fesn-record/install-record.txt --single-version-externally-managed --compile:
    /usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    running install
    running build
    running build_ext
    building 'sabyenc3' extension
    creating build
    creating build/temp.linux-aarch64-3.5
    creating build/temp.linux-aarch64-3.5/src
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-QMv3zq/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c src/sabyenc3.c -o build/temp.linux-aarch64-3.5/src/sabyenc3.o
    In file included from src/sabyenc3.c:22:0:
    src/sabyenc3.h:22:20: fatal error: Python.h: No such file or directory
     #include <Python.h>
                        ^
    compilation terminated.
    error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ook1mwbk/sabyenc3/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ic71fesn-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ook1mwbk/sabyenc3/
pinn
Jr. Member
Jr. Member
Posts: 85
Joined: September 18th, 2011, 4:08 am

Re: Error updating to v3

Post by pinn »

Okay. So installed wheel for python 3 but now have this error

Code: Select all

Failed building wheel for sabyenc3
  Running setup.py clean for sabyenc3
  Running setup.py bdist_wheel for cheetah3 ... done
  Stored in directory: /root/.cache/pip/wheels/2b/df/ea/5b7654e1ac81299f3a656220a5c974c046523ec1722c50dc4c
  Running setup.py bdist_wheel for cryptography ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8fzgm355/cryptography/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/tmpnx7hvbthpip-wheel- --python-tag cp35:
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
   #include <Python.h>
                      ^
  compilation terminated.
  Traceback (most recent call last):
    File "/usr/lib/python3.5/distutils/unixccompiler.py", line 118, in _compile
      extra_postargs)
    File "/usr/lib/python3.5/distutils/ccompiler.py", line 909, in spawn
      spawn(cmd, dry_run=self.dry_run)
    File "/usr/lib/python3.5/distutils/spawn.py", line 36, in spawn
      _spawn_posix(cmd, search_path, dry_run=dry_run)
    File "/usr/lib/python3.5/distutils/spawn.py", line 159, in _spawn_posix
      % (cmd, exit_status))
  distutils.errors.DistutilsExecError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 161, in run
      cmd = self.call_command('install_lib', warn_dir=0)
    File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 147, in call_command
      self.run_command(cmdname)
    File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/usr/lib/python3/dist-packages/setuptools/command/install_lib.py", line 24, in run
      self.build()
    File "/usr/lib/python3.5/distutils/command/install_lib.py", line 109, in build
      self.run_command('build_ext')
    File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 75, in run
      _build_ext.run(self)
    File "/usr/lib/python3.5/distutils/command/build_ext.py", line 339, in run
      self.build_extensions()
    File "/usr/lib/python3.5/distutils/command/build_ext.py", line 448, in build_extensions
      self._build_extensions_serial()
    File "/usr/lib/python3.5/distutils/command/build_ext.py", line 473, in _build_extensions_serial
      self.build_extension(ext)
    File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 196, in build_extension
      _build_ext.build_extension(self, ext)
    File "/usr/lib/python3.5/distutils/command/build_ext.py", line 533, in build_extension
      depends=ext.depends)
    File "/usr/lib/python3.5/distutils/ccompiler.py", line 574, in compile
      self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
    File "/usr/lib/python3.5/distutils/unixccompiler.py", line 120, in _compile
      raise CompileError(msg)
  distutils.errors.CompileError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 157, in save_modules
      yield saved
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 198, in setup_context
      yield
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 255, in run_setup
      DirectorySandbox(setup_dir).run(runner)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 285, in run
      return func()
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 253, in runner
      _execfile(setup_script, ns)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 47, in _execfile
      exec(code, globals, locals)
    File "/tmp/easy_install-tn8ens12/cffi-1.14.0/setup.py", line 249, in <module>
      "sphinx >= 1.6.5,!=1.8.0",
    File "/usr/lib/python3.5/distutils/core.py", line 163, in setup
      raise SystemExit("error: " + str(msg))
  SystemExit: error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1131, in run_setup
      run_setup(setup_script, args)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 258, in run_setup
      raise
    File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
      self.gen.throw(type, value, traceback)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 198, in setup_context
      yield
    File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
      self.gen.throw(type, value, traceback)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 169, in save_modules
      saved_exc.resume()
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 144, in resume
      six.reraise(type, exc, self._tb)
    File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/six.py", line 685, in reraise
      raise value.with_traceback(tb)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 157, in save_modules
      yield saved
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 198, in setup_context
      yield
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 255, in run_setup
      DirectorySandbox(setup_dir).run(runner)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 285, in run
      return func()
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 253, in runner
      _execfile(setup_script, ns)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 47, in _execfile
      exec(code, globals, locals)
    File "/tmp/easy_install-tn8ens12/cffi-1.14.0/setup.py", line 249, in <module>
      "sphinx >= 1.6.5,!=1.8.0",
    File "/usr/lib/python3.5/distutils/core.py", line 163, in setup
      raise SystemExit("error: " + str(msg))
  SystemExit: error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-8fzgm355/cryptography/setup.py", line 274, in <module>
      **keywords_with_side_effects(sys.argv)
    File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
      _setup_distribution = dist = klass(attrs)
    File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 317, in __init__
      self.fetch_build_eggs(attrs['setup_requires'])
    File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 372, in fetch_build_eggs
      replace_conflicting=True,
    File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 846, in resolve
      dist = best[req.key] = env.best_match(req, ws, installer)
    File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1118, in best_match
      return self.obtain(req, installer)
    File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1130, in obtain
      return installer(requirement)
    File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 440, in fetch_build_egg
      return cmd.easy_install(req)
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 699, in easy_install
      return self.install_item(spec, dist.location, tmpdir, deps)
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 725, in install_item
      dists = self.install_eggs(spec, download, tmpdir)
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 906, in install_eggs
      return self.build_and_install(setup_script, setup_base)
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1145, in build_and_install
      self.run_setup(setup_script, setup_base, args)
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1133, in run_setup
      raise DistutilsError("Setup script exited with %s" % (v.args[0],))
  distutils.errors.DistutilsError: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for cryptography
  Running setup.py clean for cryptography
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8fzgm355/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all:
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
   #include <Python.h>
                      ^
  compilation terminated.
  Traceback (most recent call last):
    File "/usr/lib/python3.5/distutils/unixccompiler.py", line 118, in _compile
      extra_postargs)
    File "/usr/lib/python3.5/distutils/ccompiler.py", line 909, in spawn
      spawn(cmd, dry_run=self.dry_run)
    File "/usr/lib/python3.5/distutils/spawn.py", line 36, in spawn
      _spawn_posix(cmd, search_path, dry_run=dry_run)
    File "/usr/lib/python3.5/distutils/spawn.py", line 159, in _spawn_posix
      % (cmd, exit_status))
  distutils.errors.DistutilsExecError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 161, in run
      cmd = self.call_command('install_lib', warn_dir=0)
    File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 147, in call_command
      self.run_command(cmdname)
    File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/usr/lib/python3/dist-packages/setuptools/command/install_lib.py", line 24, in run
      self.build()
    File "/usr/lib/python3.5/distutils/command/install_lib.py", line 109, in build
      self.run_command('build_ext')
    File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 75, in run
      _build_ext.run(self)
    File "/usr/lib/python3.5/distutils/command/build_ext.py", line 339, in run
      self.build_extensions()
    File "/usr/lib/python3.5/distutils/command/build_ext.py", line 448, in build_extensions
      self._build_extensions_serial()
    File "/usr/lib/python3.5/distutils/command/build_ext.py", line 473, in _build_extensions_serial
      self.build_extension(ext)
    File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 196, in build_extension
      _build_ext.build_extension(self, ext)
    File "/usr/lib/python3.5/distutils/command/build_ext.py", line 533, in build_extension
      depends=ext.depends)
    File "/usr/lib/python3.5/distutils/ccompiler.py", line 574, in compile
      self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
    File "/usr/lib/python3.5/distutils/unixccompiler.py", line 120, in _compile
      raise CompileError(msg)
  distutils.errors.CompileError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 157, in save_modules
      yield saved
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 198, in setup_context
      yield
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 255, in run_setup
      DirectorySandbox(setup_dir).run(runner)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 285, in run
      return func()
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 253, in runner
      _execfile(setup_script, ns)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 47, in _execfile
      exec(code, globals, locals)
    File "/tmp/easy_install-fthexsxl/cffi-1.14.0/setup.py", line 249, in <module>
      "sphinx >= 1.6.5,!=1.8.0",
    File "/usr/lib/python3.5/distutils/core.py", line 163, in setup
      raise SystemExit("error: " + str(msg))
  SystemExit: error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1


pinn
Jr. Member
Jr. Member
Posts: 85
Joined: September 18th, 2011, 4:08 am

Re: Error updating to v3

Post by pinn »

continued

Code: Select all

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1131, in run_setup
      run_setup(setup_script, args)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 258, in run_setup
      raise
    File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
      self.gen.throw(type, value, traceback)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 198, in setup_context
      yield
    File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
      self.gen.throw(type, value, traceback)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 169, in save_modules
      saved_exc.resume()
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 144, in resume
      six.reraise(type, exc, self._tb)
    File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/six.py", line 685, in reraise
      raise value.with_traceback(tb)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 157, in save_modules
      yield saved
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 198, in setup_context
      yield
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 255, in run_setup
      DirectorySandbox(setup_dir).run(runner)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 285, in run
      return func()
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 253, in runner
      _execfile(setup_script, ns)
    File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 47, in _execfile
      exec(code, globals, locals)
    File "/tmp/easy_install-fthexsxl/cffi-1.14.0/setup.py", line 249, in <module>
      "sphinx >= 1.6.5,!=1.8.0",
    File "/usr/lib/python3.5/distutils/core.py", line 163, in setup
      raise SystemExit("error: " + str(msg))
  SystemExit: error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-8fzgm355/cryptography/setup.py", line 274, in <module>
      **keywords_with_side_effects(sys.argv)
    File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
      _setup_distribution = dist = klass(attrs)
    File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 317, in __init__
      self.fetch_build_eggs(attrs['setup_requires'])
    File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 372, in fetch_build_eggs
      replace_conflicting=True,
    File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 846, in resolve
      dist = best[req.key] = env.best_match(req, ws, installer)
    File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1118, in best_match
      return self.obtain(req, installer)
    File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1130, in obtain
      return installer(requirement)
    File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 440, in fetch_build_egg
      return cmd.easy_install(req)
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 699, in easy_install
      return self.install_item(spec, dist.location, tmpdir, deps)
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 725, in install_item
      dists = self.install_eggs(spec, download, tmpdir)
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 906, in install_eggs
      return self.build_and_install(setup_script, setup_base)
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1145, in build_and_install
      self.run_setup(setup_script, setup_base, args)
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1133, in run_setup
      raise DistutilsError("Setup script exited with %s" % (v.args[0],))
  distutils.errors.DistutilsError: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  ----------------------------------------
  Failed cleaning build dir for cryptography
  Running setup.py bdist_wheel for feedparser ... done
  Stored in directory: /root/.cache/pip/wheels/8c/69/b7/f52763c41c5471df57703a0ef718a32a5e81ee35dcf6d4f97f
  Running setup.py bdist_wheel for configobj ... done
  Stored in directory: /root/.cache/pip/wheels/f1/e4/16/4981ca97c2d65106b49861e0b35e2660695be7219a2d351ee0
  Running setup.py bdist_wheel for cffi ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8fzgm355/cffi/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/tmpmgtxhbn_pip-wheel- --python-tag cp35:
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.5
  creating build/lib.linux-aarch64-3.5/cffi
  copying cffi/setuptools_ext.py -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/commontypes.py -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/cffi_opcode.py -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/lock.py -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/error.py -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/pkgconfig.py -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/backend_ctypes.py -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/model.py -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/vengine_gen.py -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/verifier.py -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/vengine_cpy.py -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/recompiler.py -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/__init__.py -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/cparser.py -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/api.py -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/ffiplatform.py -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/_cffi_include.h -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/parse_c_type.h -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/_embedding.h -> build/lib.linux-aarch64-3.5/cffi
  copying cffi/_cffi_errors.h -> build/lib.linux-aarch64-3.5/cffi
  running build_ext
  building '_cffi_backend' extension
  creating build/temp.linux-aarch64-3.5
  creating build/temp.linux-aarch64-3.5/c
  arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-QMv3zq/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.5m -c c/_cffi_backend.c -o build/temp.linux-aarch64-3.5/c/_cffi_backend.o
  c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
   #include <Python.h>
                      ^
  compilation terminated.
  error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for cffi
  Running setup.py clean for cffi
Successfully built cheetah3 feedparser configobj
Failed to build sabyenc3 cryptography cffi
Installing collected packages: sabyenc3, cheetah3, pycparser, cffi, six, cryptography, feedparser, configobj, more-itertools, jaraco.classes, jaraco.functools, zipp, importlib-metadata, importlib-resources, jaraco.text, jaraco.collections, pytz, tempora, portend, setuptools, zc.lockfile, cheroot, cherrypy, chardet, notify2
  Running setup.py install for sabyenc3 ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8fzgm355/sabyenc3/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-tlttrbrf-record/install-record.txt --single-version-externally-managed --compile:
    /usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    running install
    running build
    running build_ext
    building 'sabyenc3' extension
    creating build
    creating build/temp.linux-aarch64-3.5
    creating build/temp.linux-aarch64-3.5/src
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-QMv3zq/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c src/sabyenc3.c -o build/temp.linux-aarch64-3.5/src/sabyenc3.o
    In file included from src/sabyenc3.c:22:0:
    src/sabyenc3.h:22:20: fatal error: Python.h: No such file or directory
     #include <Python.h>
                        ^
    compilation terminated.
    error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8fzgm355/sabyenc3/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-tlttrbrf-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-8fzgm355/sabyenc3/
pinn
Jr. Member
Jr. Member
Posts: 85
Joined: September 18th, 2011, 4:08 am

Re: Error updating to v3

Post by pinn »

Right. Progress. Also needed to install:

sudo apt-get install build-essential libssl-dev libffi-dev python3-dev

I guess many won't have these packages so could the install instructions be more explicit in the requirements needed for install?
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Error updating to v3

Post by sander »

I would say that info is on https://sabnzbd.org/wiki/extra/python3.html -> Ubuntu (Debian) part. Quote:

Code: Select all

apt-get install git par2 unrar python3-setuptools python3-pip
apt-get install libffi-dev libssl-dev
Agree?

If so: you did not know or find or use that page https://sabnzbd.org/wiki/extra/python3.html ? Was there another guide you followed? (I'm trying to figure it which path you followed)

BTW: if on Raspbian, which is a kind of Debian, you could also use the SABnzbd PPA for Ubuntu ... that will take care of dependencies automatically.
pinn
Jr. Member
Jr. Member
Posts: 85
Joined: September 18th, 2011, 4:08 am

Re: Error updating to v3

Post by pinn »

Hi Sander,

I used the Debian instructions only. Then I just googled those errors messages. I guess as this is beta still, it's more for advanced users, unlike myself, who could navigate the instructions better.

It's all installed now but when I reboot, v2.39 auto runs. I guess I have to edit my script but unsure what to change.

Thanks for your continued patience! :)

Code: Select all

# This file is sourced by /etc/init.d/sabnzbdplus
#
# When SABnzbd+ is started using the init script, the
# --daemon option is always used, and the program is
# started under the account of $USER, as set below.
#
# Each setting is marked either "required" or "optional";
# leaving any required setting unconfigured will cause
# the service to not start.

# [required] user or uid of account to run the program as:
USER=osmc

# [optional] full path to the configuration file of your choice;
#            otherwise, the default location (in $USER's home
#            directory) is used:
CONFIG=

# [optional] hostname/ip and port number to listen on:
HOST=
PORT=

# [optional] extra command line options, if any:
EXTRAOPTS=
sander wrote: May 27th, 2020, 2:51 am I would say that info is on https://sabnzbd.org/wiki/extra/python3.html -> Ubuntu part. Quote:

apt-get install git par2 unrar python3-setuptools python3-pip
apt-get install libffi-dev libssl-dev

Agree?

If so: you did not know or find or use that page https://sabnzbd.org/wiki/extra/python3.html ? Was there another guide you followed? (I'm trying to figure it which path you followed)

BTW: if on Raspbian, which is a kind of Debian, you could also use the SABnzbd PPA for Ubuntu ... that will take of dependencies automatically.
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Error updating to v3

Post by sander »

I wanted to say: on your Raspbian / Debian use the PPA for Ubuntu (which will take of dependencies and auto-start), but viewtopic.php?t=9844 says "Edit: with version 3.0.0, direct use of the PPA on Debian is no longer an option."

Pity.

I know little about auto-starting stuff, but a grep revealed this:

/etc/init.d/sabnzbdplus contains a line

DAEMON="/usr/bin/sabnzbdplus"


My guess is changing this line to your the full path to SABNzbd.py in your SAB3 source directy would take care of it

@jcfp is the guru on this system part
pinn
Jr. Member
Jr. Member
Posts: 85
Joined: September 18th, 2011, 4:08 am

Re: Error updating to v3 [OSMC / Debian]

Post by pinn »

thanks for all your help Sander. I'll message jcfp.

Found the answer here: https://github.com/sabnzbd/sabnzbd/blob ... 40.service
Last edited by pinn on May 27th, 2020, 8:32 am, edited 1 time in total.
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: Error updating to v3 [OSMC / Debian]

Post by jcfp »

The line sander mentioned is the correct one. That said: ymmv when trying to start a program in the clean environment system service use, when that program needs a bunch of modules installed with pip in a user context.
pinn
Jr. Member
Jr. Member
Posts: 85
Joined: September 18th, 2011, 4:08 am

Re: Error updating to v3 [OSMC / Debian]

Post by pinn »

Hi,

Had to reinstall my OS and doing sab now. I am trying to install the requirements using the guide here https://sabnzbd.org/wiki/extra/python3.html but am running into these errors. I have python 3.8 installed and the latest stable release of sab.

Terminal output here https://pastebin.com/PScnhFmB

Cheers
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Error updating to v3 [OSMC / Debian]

Post by safihre »

Seems you are missing the Python-header files. They are probably part of python3-dev package.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
pinn
Jr. Member
Jr. Member
Posts: 85
Joined: September 18th, 2011, 4:08 am

Re: Error updating to v3 [OSMC / Debian]

Post by pinn »

cheers safihre. I hadn't seen this and just ended up installing via your git instructions. Seems to run fine but I can't access the webui at all at http://127.0.0.1:8080/sabnzbd. ANy ideas?

Code: Select all

^Cosmc@HTPC:~/sabnzbd$ ./SABnzbd.py
./SABnzbd.py:44: CryptographyDeprecationWarning: Python 3.5 support will be dropped in the next release ofcryptography. Please upgrade your Python.
  import cryptography
2020-09-04 18:01:25,834::INFO::[SABnzbd:1131] --------------------------------
2020-09-04 18:01:25,834::INFO::[SABnzbd:1132] SABnzbd.py-3.0.2 (rev=51cc7659493b8f98b5da7537831d1a56f2777775)
2020-09-04 18:01:25,835::INFO::[SABnzbd:1133] Full executable path = /home/osmc/sabnzbd/SABnzbd.py
2020-09-04 18:01:25,839::INFO::[SABnzbd:1143] Platform = posix
2020-09-04 18:01:25,839::INFO::[SABnzbd:1144] Python-version = 3.5.3 (default, Jul  9 2020, 13:00:10)
[GCC 6.3.0 20170516]
2020-09-04 18:01:25,840::INFO::[SABnzbd:1145] Arguments = "./SABnzbd.py"
2020-09-04 18:01:25,841::INFO::[SABnzbd:1149] Not inside a docker container
2020-09-04 18:01:25,842::INFO::[SABnzbd:1152] Preferred encoding = ANSI_X3.4-1968
2020-09-04 18:01:25,843::WARNING::[SABnzbd:1160] SABnzbd was started with encoding ANSI_X3.4-1968, this should be UTF-8. Expect problems with Unicoded file and directory names in downloads.
2020-09-04 18:01:25,844::INFO::[SABnzbd:1164] SSL version = OpenSSL 1.1.0l  10 Sep 2019
2020-09-04 18:01:25,846::INFO::[SABnzbd:1219] Using INI file /home/osmc/.sabnzbd/sabnzbd.ini
2020-09-04 18:01:25,855::INFO::[postproc:138] Loading postproc queue
2020-09-04 18:01:25,860::INFO::[__init__:955] [N/A] /home/osmc/.sabnzbd/admin/Rating.sab missing
2020-09-04 18:01:25,863::INFO::[scheduler:216] Setting schedule for midnight BPS reset
2020-09-04 18:01:25,876::INFO::[config:857] Writing settings to INI file /home/osmc/.sabnzbd/sabnzbd.ini
2020-09-04 18:01:25,894::INFO::[__init__:350] All processes started
2020-09-04 18:01:25,896::INFO::[SABnzbd:287] Template location for Glitter is /home/osmc/sabnzbd/interfaces/Glitter
2020-09-04 18:01:25,898::INFO::[SABnzbd:287] Template location for Config is /home/osmc/sabnzbd/interfaces/Config
2020-09-04 18:01:25,950::INFO::[SABnzbd:388] SABYenc module (v4.0.2)... found!
2020-09-04 18:01:25,951::INFO::[SABnzbd:407] Cryptography module (v3.1)... found!
2020-09-04 18:01:25,952::INFO::[SABnzbd:412] par2 binary... found (/usr/bin/par2)
2020-09-04 18:01:25,953::INFO::[SABnzbd:419] UNRAR binary... found (/usr/bin/unrar)
2020-09-04 18:01:25,954::INFO::[SABnzbd:427] UNRAR binary version 5.30
2020-09-04 18:01:25,958::INFO::[SABnzbd:437] 7za binary... NOT found!
2020-09-04 18:01:25,959::INFO::[SABnzbd:440] unzip binary... found (/bin/unzip)
2020-09-04 18:01:25,960::INFO::[SABnzbd:446] nice binary... found (/usr/bin/nice)
2020-09-04 18:01:25,961::INFO::[SABnzbd:450] ionice binary... found (/usr/bin/ionice)
2020-09-04 18:01:25,967::INFO::[SABnzbd:1405] Starting web-interface on 127.0.0.1:8080
2020-09-04 18:01:25,968::INFO::[_cplogging:216] [04/Sep/2020:18:01:25] ENGINE Bus STARTING
2020-09-04 18:01:26,097::INFO::[_cplogging:216] [04/Sep/2020:18:01:26] ENGINE Serving on http://127.0.0.1:8080
2020-09-04 18:01:26,102::INFO::[_cplogging:216] [04/Sep/2020:18:01:26] ENGINE Bus STARTED
2020-09-04 18:01:26,104::INFO::[SABnzbd:1442] Starting SABnzbd.py-3.0.2
2020-09-04 18:01:26,107::INFO::[postproc:228] Completed Download Folder /home/osmc/Downloads/complete is not on FAT
2020-09-04 18:01:26,117::INFO::[dirscanner:117] Dirscanner starting up
2020-09-04 18:01:26,120::INFO::[urlgrabber:96] URLGrabber starting up
2020-09-04 18:01:26,121::INFO::[panic:239] Launching browser with http://127.0.0.1:8080/sabnzbd
User avatar
OneCD
Hero Member
Hero Member
Posts: 557
Joined: March 4th, 2017, 3:47 pm

Re: Error updating to v3 [OSMC / Debian]

Post by OneCD »

pinn wrote: September 4th, 2020, 12:08 pm cheers safihre. I hadn't seen this and just ended up installing via your git instructions. Seems to run fine but I can't access the webui at all at http://127.0.0.1:8080/sabnzbd. ANy ideas?
Set your listening address to 0.0.0.0 (not 127.0.0.1).

Edit the SABnzbd config file directly to do this. ;)
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
pinn
Jr. Member
Jr. Member
Posts: 85
Joined: September 18th, 2011, 4:08 am

Re: Error updating to v3 [OSMC / Debian]

Post by pinn »

OneCD wrote: September 4th, 2020, 1:43 pm
pinn wrote: September 4th, 2020, 12:08 pm cheers safihre. I hadn't seen this and just ended up installing via your git instructions. Seems to run fine but I can't access the webui at all at http://127.0.0.1:8080/sabnzbd. ANy ideas?
Set your listening address to 0.0.0.0 (not 127.0.0.1).

Edit the SABnzbd config file directly to do this. ;)
So I copied my old ini file into .sabnzbd and overwrite the file. It was set to 0.0.0.0 as you said. However, I still can't open on that or on http://localhost:8080/sabnzbd :(
User avatar
OneCD
Hero Member
Hero Member
Posts: 557
Joined: March 4th, 2017, 3:47 pm

Re: Error updating to v3 [OSMC / Debian]

Post by OneCD »

Just to confirm: are you attempting UI access with a browser running on the same device running SABnzbd?
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
Post Reply