Skip to content

Ubuntu 16.04, Mono, ARM7 RPi: Backtrace stopped - previous frame identical to this frame (corrupt stack?) #327

@mdk73

Description

@mdk73

I try to install pythonnet on a raspberry pi:

Ubuntu

  • Release 16.04.1 LTS (Xenial Xerus) 32-bit
  • Kernel Linux 4.1.19-v7+ armv7l
  • MATE 1.12.1

Hardware

  • Memory: 925,8 MiB
  • Processor: ARMv7 Processor rev 4 (v7l) × 4

Mono
mono-complete is already the newest version (4.2.1.102+dfsg2-7ubuntu4).

Python

  • Python 3.5.2 (default, Nov 17 2016, 17:05:23)
  • [GCC 5.4.0 20160609] on linux
  • modules:
    apt-clone (0.2.1)
    apturl (0.5.2)
    astro-pi (1.1.5)
    Brlapi (0.6.4)
    chardet (2.3.0)
    clang (3.8)
    codebug-tether (0.7.2)
    command-not-found (0.3)
    decorator (4.0.6)
    defer (1.0.6)
    gpiozero (1.2.0)
    language-selector (0.1)
    lightdm-gtk-greeter-settings (1.2.1)
    louis (2.6.4)
    lxml (3.5.0)
    Mako (1.0.3)
    MarkupSafe (0.23)
    mate-tweak (3.5.10)
    mcpi (0.1.1)
    numpy (1.11.0)
    onboard (1.2.0)
    PAM (0.4.2)
    parse (1.6.5)
    pexpect (4.0.1)
    picamera (1.10)
    picraft (0.6)
    Pillow (3.1.2)
    pip (8.1.1)
    ply (3.9)
    polib (1.0.7)
    psutil (3.4.2)
    ptyprocess (0.5)
    pycparser (2.17)
    pycups (1.9.73)
    pycurl (7.43.0)
    pygobject (3.20.0)
    PyICU (1.9.2)
    pyparser (1.0)
    pyserial (3.0.1)
    python-apt (1.1.0b1)
    python-debian (0.1.27)
    python-systemd (231)
    pyxdg (0.25)
    reportlab (3.3.0)
    requests (2.9.1)
    RPi.GPIO (0.6.2)
    RTIMULib (7.2.1)
    scipy (0.17.0)
    sense-hat (2.1.0)
    sessioninstaller (0.0.0)
    setuptools (33.1.0)
    six (1.10.0)
    spidev (3.0)
    ssh-import-id (5.5)
    ubuntu-drivers-common (0.0.0)
    ufw (0.35)
    unattended-upgrades (0.1)
    urllib3 (1.13.1)
    wheel (0.29.0)
    xkit (0.0.0)

Running
sudo -H pip3 install pythonnet --pre -U
gives a long traceback, where I could see two errors:

  • FileNotFoundError: [Errno 2] No such file or directory: 'clang'
  • CalledProcessError(retcode, cmd, output=output)
    subprocess.CalledProcessError: Command '['/usr/bin/python3', 'tools/geninterop/geninterop.py', 'src/runtime/interop35m.cs']' returned non-zero exit status 1

Complete traceback

Collecting pythonnet
  Using cached pythonnet-2.2.0-dev1.tar.gz
Building wheels for collected packages: pythonnet
  Running setup.py bdist_wheel for pythonnet ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-yb4zi63w/pythonnet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpbo8lhyswpip-wheel- --python-tag cp35:
  /usr/local/lib/python3.5/dist-packages/setuptools/dist.py:333: UserWarning: Normalizing '2.2.0-dev1' to '2.2.0.dev1'
    normalized_version,
  running bdist_wheel
  running build
  running build_ext
  Installing 'NUnit 2.6.2'.
  Installing 'UnmanagedExports 1.2.7'.
  Successfully installed 'NUnit 2.6.2'.
  Successfully installed 'UnmanagedExports 1.2.7'.
  Traceback (most recent call last):
    File "tools/geninterop/geninterop.py", line 282, in <module>
      sys.exit(main())
    File "tools/geninterop/geninterop.py", line 262, in main
      python_h = preprocess_python_headers()
    File "tools/geninterop/geninterop.py", line 190, in preprocess_python_headers
      for line in check_output(cmd).splitlines():
    File "tools/geninterop/geninterop.py", line 147, in check_output
      process = Popen(stdout=PIPE, *popenargs, **kwargs)
    File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
      restore_signals, start_new_session)
    File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
      raise child_exception_type(errno_num, err_msg)
  FileNotFoundError: [Errno 2] No such file or directory: 'clang'
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-yb4zi63w/pythonnet/setup.py", line 358, in <module>
      setup_requires=setup_requires
    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/wheel/bdist_wheel.py", line 179, in run
      self.run_command('build')
    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.5/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    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.5/distutils/command/build_ext.py", line 338, in run
      self.build_extensions()
    File "/usr/lib/python3.5/distutils/command/build_ext.py", line 447, in build_extensions
      self._build_extensions_serial()
    File "/usr/lib/python3.5/distutils/command/build_ext.py", line 472, in _build_extensions_serial
      self.build_extension(ext)
    File "/tmp/pip-build-yb4zi63w/pythonnet/setup.py", line 171, in build_extension
      _check_output([sys.executable, geninterop, interop_file])
    File "/tmp/pip-build-yb4zi63w/pythonnet/setup.py", line 284, in _check_output
      raise CalledProcessError(retcode, cmd, output=output)
  subprocess.CalledProcessError: Command '['/usr/bin/python3', 'tools/geninterop/geninterop.py', 'src/runtime/interop35m.cs']' returned non-zero exit status 1
  
  ----------------------------------------
  Failed building wheel for pythonnet
  Running setup.py clean for pythonnet
Failed to build pythonnet
Installing collected packages: pythonnet
  Running setup.py install for pythonnet ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-yb4zi63w/pythonnet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-06cr15lv-record/install-record.txt --single-version-externally-managed --compile:
    /usr/local/lib/python3.5/dist-packages/setuptools/dist.py:333: UserWarning: Normalizing '2.2.0-dev1' to '2.2.0.dev1'
      normalized_version,
    running install
    running build
    running build_ext
    All packages listed in packages.config are already installed.
    Traceback (most recent call last):
      File "tools/geninterop/geninterop.py", line 282, in <module>
        sys.exit(main())
      File "tools/geninterop/geninterop.py", line 262, in main
        python_h = preprocess_python_headers()
      File "tools/geninterop/geninterop.py", line 190, in preprocess_python_headers
        for line in check_output(cmd).splitlines():
      File "tools/geninterop/geninterop.py", line 147, in check_output
        process = Popen(stdout=PIPE, *popenargs, **kwargs)
      File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
        restore_signals, start_new_session)
      File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
        raise child_exception_type(errno_num, err_msg)
    FileNotFoundError: [Errno 2] No such file or directory: 'clang'
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-yb4zi63w/pythonnet/setup.py", line 358, in <module>
        setup_requires=setup_requires
      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/local/lib/python3.5/dist-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/lib/python3.5/distutils/command/install.py", line 583, in run
        self.run_command('build')
      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.5/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      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.5/distutils/command/build_ext.py", line 338, in run
        self.build_extensions()
      File "/usr/lib/python3.5/distutils/command/build_ext.py", line 447, in build_extensions
        self._build_extensions_serial()
      File "/usr/lib/python3.5/distutils/command/build_ext.py", line 472, in _build_extensions_serial
        self.build_extension(ext)
      File "/tmp/pip-build-yb4zi63w/pythonnet/setup.py", line 171, in build_extension
        _check_output([sys.executable, geninterop, interop_file])
      File "/tmp/pip-build-yb4zi63w/pythonnet/setup.py", line 284, in _check_output
        raise CalledProcessError(retcode, cmd, output=output)
    subprocess.CalledProcessError: Command '['/usr/bin/python3', 'tools/geninterop/geninterop.py', 'src/runtime/interop35m.cs']' returned non-zero exit status 1
    
    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-yb4zi63w/pythonnet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-06cr15lv-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-yb4zi63w/pythonnet/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions