Title: Error building in Linux · Issue #571 · pythonnet/pythonnet · GitHub
Open Graph Title: Error building in Linux · Issue #571 · pythonnet/pythonnet
X Title: Error building in Linux · Issue #571 · pythonnet/pythonnet
Description: Environment Pythonnet version: 2.4.0 Python version: 2.7.5 Operating System: Red Hat Enterprise Linux Server release 7.3 (Maipo) DotNet version: 2.0.0 Details Error restoring packages while trying to build from the command line in Linux ...
Open Graph Description: Environment Pythonnet version: 2.4.0 Python version: 2.7.5 Operating System: Red Hat Enterprise Linux Server release 7.3 (Maipo) DotNet version: 2.0.0 Details Error restoring packages while trying ...
X Description: Environment Pythonnet version: 2.4.0 Python version: 2.7.5 Operating System: Red Hat Enterprise Linux Server release 7.3 (Maipo) DotNet version: 2.0.0 Details Error restoring packages while trying ...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/571
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error building in Linux","articleBody":"### Environment\r\n\r\n- Pythonnet version: 2.4.0\r\n- Python version: 2.7.5\r\n- Operating System: Red Hat Enterprise Linux Server release 7.3 (Maipo)\r\n- DotNet version: 2.0.0\r\n### Details\r\n\r\n- Error restoring packages while trying to build from the command line in Linux\r\n\r\n- I used the following commands to create the issue:\r\n\r\n```python\r\n pip install wheel\r\n pip install pytest\r\n git clone https://github.com/pythonnet/pythonnet.git\r\n cd pythonnet\r\n python setup.py bdist_wheel --xplat\r\n```\r\n\r\n- Details of the error below:\r\n```python\r\nrunning bdist_wheel\r\nrunning build\r\nrunning build_ext\r\nMicrosoft (R) Build Engine version 15.3.409.57025 for .NET Core\r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\n Restore completed in 24.15 ms for /users/isys/icronyn/git/pythonnet/src/testing/Python.Test.15.csproj.\r\n Restore completed in 24.16 ms for /users/isys/icronyn/git/pythonnet/src/console/Console.15.csproj.\r\n Restore completed in 26.29 ms for /users/isys/icronyn/git/pythonnet/src/runtime/Python.Runtime.15.csproj.\r\n Restore completed in 86.12 ms for /users/isys/icronyn/git/pythonnet/src/embed_tests/Python.EmbeddingTest.15.csproj.\r\nMicrosoft (R) Build Engine version 15.3.409.57025 for .NET Core\r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\nMicrosoft (R) Build Engine version 15.3.409.57025 for .NET Core\r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\npyobject.cs(50,13): warning CS0162: Unreachable code detected [/users/isys/icronyn/git/pythonnet/src/runtime/Python.Runtime.15.csproj]\r\npythonexception.cs(64,13): warning CS0162: Unreachable code detected [/users/isys/icronyn/git/pythonnet/src/runtime/Python.Runtime.15.csproj]\r\ndelegatemanager.cs(204,13): warning CS0162: Unreachable code detected [/users/isys/icronyn/git/pythonnet/src/runtime/Python.Runtime.15.csproj]\r\npyscope.cs(534,13): warning CS0162: Unreachable code detected [/users/isys/icronyn/git/pythonnet/src/runtime/Python.Runtime.15.csproj]\r\n Python.Runtime.15 -\u003e /users/isys/icronyn/git/pythonnet/src/runtime/bin/Python.Runtime.dll\r\npyobject.cs(50,13): warning CS0162: Unreachable code detected [/users/isys/icronyn/git/pythonnet/src/runtime/Python.Runtime.15.csproj]\r\ndelegatemanager.cs(204,13): warning CS0162: Unreachable code detected [/users/isys/icronyn/git/pythonnet/src/runtime/Python.Runtime.15.csproj]\r\npythonexception.cs(64,13): warning CS0162: Unreachable code detected [/users/isys/icronyn/git/pythonnet/src/runtime/Python.Runtime.15.csproj]\r\npyscope.cs(534,13): warning CS0162: Unreachable code detected [/users/isys/icronyn/git/pythonnet/src/runtime/Python.Runtime.15.csproj]\r\n Python.Runtime.15 -\u003e /users/isys/icronyn/git/pythonnet/src/runtime/bin/netstandard2.0/Python.Runtime.dll\r\n Console.15 -\u003e /users/isys/icronyn/git/pythonnet/src/console/bin/nPython.exe\r\n Python.Test.15 -\u003e /users/isys/icronyn/git/pythonnet/src/testing/bin/Python.Test.dll\r\ndynamic.cs(121,28): warning CS0618: 'PythonEngine.RunString(string, IntPtr?, IntPtr?)' is obsolete: 'RunString is deprecated and will be removed. Use Exec/Eval/RunSimpleString instead.' [/users/isys/icronyn/git/pythonnet/src/embed_tests/Python.EmbeddingTest.15.csproj]\r\n Python.EmbeddingTest.15 -\u003e /users/isys/icronyn/git/pythonnet/src/embed_tests/bin/Python.EmbeddingTest.dll\r\n Python.Test.15 -\u003e /users/isys/icronyn/git/pythonnet/src/testing/bin/netstandard2.0/Python.Test.dll\r\n Console.15 -\u003e /users/isys/icronyn/git/pythonnet/src/console/bin/netcoreapp2.0/nPython.dll\r\ndynamic.cs(121,28): warning CS0618: 'PythonEngine.RunString(string, IntPtr?, IntPtr?)' is obsolete: 'RunString is deprecated and will be removed. Use Exec/Eval/RunSimpleString instead.' [/users/isys/icronyn/git/pythonnet/src/embed_tests/Python.EmbeddingTest.15.csproj]\r\n Python.EmbeddingTest.15 -\u003e /users/isys/icronyn/git/pythonnet/src/embed_tests/bin/netcoreapp2.0/Python.EmbeddingTest.dll\r\nMicrosoft (R) Build Engine version 15.3.409.57025 for .NET Core\r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\n Python.Runtime.15 -\u003e /users/isys/icronyn/git/pythonnet/src/runtime/bin/netstandard2.0/Python.Runtime.dll\r\n Console.15 -\u003e /users/isys/icronyn/git/pythonnet/src/console/bin/netcoreapp2.0/nPython.dll\r\n Console.15 -\u003e /users/isys/icronyn/git/pythonnet/build/lib.linux-x86_64-2.7/netcoreapp2.0/\r\n Python.EmbeddingTest.15 -\u003e /users/isys/icronyn/git/pythonnet/src/embed_tests/bin/netcoreapp2.0/Python.EmbeddingTest.dll\r\n Python.EmbeddingTest.15 -\u003e /users/isys/icronyn/git/pythonnet/src/embed_tests/bin/netcoreapp2.0_publish/\r\nPackage mono-2 was not found in the pkg-config search path.\r\nPerhaps you should add the directory containing `mono-2.pc'\r\nto the PKG_CONFIG_PATH environment variable\r\nNo package 'mono-2' found\r\nTraceback (most recent call last):\r\n File \"setup.py\", line 522, in \u003cmodule\u003e\r\n zip_safe=False,\r\n File \"/opt/man/releases/python-medusa/27-1/lib/python2.7/distutils/core.py\", line 151, in setup\r\n dist.run_commands()\r\n File \"/opt/man/releases/python-medusa/27-1/lib/python2.7/distutils/dist.py\", line 953, in run_commands\r\n self.run_command(cmd)\r\n File \"/opt/man/releases/python-medusa/27-1/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n cmd_obj.run()\r\n File \"setup.py\", line 470, in run\r\n return bdist_wheel.bdist_wheel.run(self)\r\n File \"/users/isys/icronyn/pyenvs/pythonnet/lib/python2.7/site-packages/wheel-0.30.0-py2.7.egg/wheel/bdist_wheel.py\", line 204, in run\r\n self.run_command('build')\r\n File \"/opt/man/releases/python-medusa/27-1/lib/python2.7/distutils/cmd.py\", line 326, in run_command\r\n self.distribution.run_command(command)\r\n File \"/opt/man/releases/python-medusa/27-1/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n cmd_obj.run()\r\n File \"/opt/man/releases/python-medusa/27-1/lib/python2.7/distutils/command/build.py\", line 127, in run\r\n self.run_command(cmd_name)\r\n File \"/opt/man/releases/python-medusa/27-1/lib/python2.7/distutils/cmd.py\", line 326, in run_command\r\n self.distribution.run_command(command)\r\n File \"/opt/man/releases/python-medusa/27-1/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n cmd_obj.run()\r\n File \"/opt/man/releases/python-medusa/27-1/lib/python2.7/distutils/command/build_ext.py\", line 339, in run\r\n self.build_extensions()\r\n File \"/opt/man/releases/python-medusa/27-1/lib/python2.7/distutils/command/build_ext.py\", line 448, in build_extensions\r\n self.build_extension(ext)\r\n File \"setup.py\", line 270, in build_extension\r\n self._build_monoclr()\r\n File \"setup.py\", line 284, in _build_monoclr\r\n mono_libs = _check_output(\"pkg-config --libs mono-2\", shell=True)\r\n File \"setup.py\", line 98, in _check_output\r\n output = subprocess.check_output(*args, **kwargs)\r\n File \"/opt/man/releases/python-medusa/27-1/lib/python2.7/subprocess.py\", line 573, in check_output\r\n raise CalledProcessError(retcode, cmd, output=output)\r\nsubprocess.CalledProcessError: Command 'pkg-config --libs mono-2' returned non-zero exit status 1\r\n```\r\n","author":{"url":"https://github.com/Cronan","@type":"Person","name":"Cronan"},"datePublished":"2017-11-14T09:53:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":20},"url":"https://github.com/571/pythonnet/issues/571"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:09533886-52d1-fb49-9836-dc3f17236b58 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8ACC:351792:C317FD:11328E1:69725A8E |
| html-safe-nonce | cd6e19dab11e87a2b45b3f31a39568b35e56edac1a6a3c140653857bdd015d69 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUNDOjM1MTc5MjpDMzE3RkQ6MTEzMjhFMTo2OTcyNUE4RSIsInZpc2l0b3JfaWQiOiI1MzM3NzIxOTM2NDkyODU3NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cfda4217964ed967520a30640d420ec7694ece248c935ebb0714c7b2e39032e1 |
| hovercard-subject-tag | issue:273729059 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pythonnet/pythonnet/571/issue_layout |
| twitter:image | https://opengraph.githubassets.com/448e2104e92341d3c5d41a85f6f53cf26ac23d76851e2ffb8b18ac1f3689b713/pythonnet/pythonnet/issues/571 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/448e2104e92341d3c5d41a85f6f53cf26ac23d76851e2ffb8b18ac1f3689b713/pythonnet/pythonnet/issues/571 |
| og:image:alt | Environment Pythonnet version: 2.4.0 Python version: 2.7.5 Operating System: Red Hat Enterprise Linux Server release 7.3 (Maipo) DotNet version: 2.0.0 Details Error restoring packages while trying ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Cronan |
| hostname | github.com |
| expected-hostname | github.com |
| None | f5a890431069e39e7eb98c8c81da83629b10b51afe674db42bf829dbc0abba43 |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 26c781f26acd529068611189d77d95c57099561a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width