Installing pythonnet on ubuntu 16V04 64 bit fails Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!How do I install pip on Windows?Unable to Install pycryptoInstalling specific package versions with pipConfiguring so that pip install can work from githubRpy2 Installation issue, windows 7How do I install pip on macOS or OS X?POPPY module installation (onto Canopy)Python3.4 PIP install error while buildinginstall Flask-ask on Raspberry PiBuilding a Python module from C code fails

Flight departed from the gate 5 min before scheduled departure time. Refund options

What is the difference between a "ranged attack" and a "ranged weapon attack"?

How to write capital alpha?

what is the log of the PDF for a Normal Distribution?

Mounting TV on a weird wall that has some material between the drywall and stud

Where is the Next Backup Size entry on iOS 12?

A proverb that is used to imply that you have unexpectedly faced a big problem

Can two people see the same photon?

Does the Mueller report show a conspiracy between Russia and the Trump Campaign?

What would you call this weird metallic apparatus that allows you to lift people?

Should a wizard buy fine inks every time he want to copy spells into his spellbook?

Putting class ranking in CV, but against dept guidelines

Why do early math courses focus on the cross sections of a cone and not on other 3D objects?

The Nth Gryphon Number

Rationale for describing kurtosis as "peakedness"?

New Order #6: Easter Egg

How can a team of shapeshifters communicate?

How were pictures turned from film to a big picture in a picture frame before digital scanning?

Is there public access to the Meteor Crater in Arizona?

Printing attributes of selection in ArcPy?

How do living politicians protect their readily obtainable signatures from misuse?

Why complex landing gears are used instead of simple,reliability and light weight muscle wire or shape memory alloys?

In musical terms, what properties are varied by the human voice to produce different words / syllables?

Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?



Installing pythonnet on ubuntu 16V04 64 bit fails



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!How do I install pip on Windows?Unable to Install pycryptoInstalling specific package versions with pipConfiguring so that pip install can work from githubRpy2 Installation issue, windows 7How do I install pip on macOS or OS X?POPPY module installation (onto Canopy)Python3.4 PIP install error while buildinginstall Flask-ask on Raspberry PiBuilding a Python module from C code fails



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I am getting "Unhandled Exception: System.TypeLoadException: Could not load type 'System.AppContext' from assembly 'mscorlib", while installing the pythonnet in ubuntu.



Below is my configuration:



Ubuntu 64 bit 16V04



Mono 4.2.1.102



Python 2.7.12
When i ran pip install pythonnet to install pythonnet, we are getting below error:



Collecting pythonnet
Using cached https://files.pythonhosted.org/packages/89/3b/a22cd45b591d6cf490ee8b24d52b9db1f30b4b478b64a9b231c53474731e/pythonnet-2.3.0.tar.gz
Building wheels for collected packages: pythonnet
Building wheel for pythonnet (setup.py) ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-nbh58I/pythonnet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-1ZQZYo --python-tag cp27:
running bdist_wheel
running build
running build_ext
Checking for updates from https://www.nuget.org/api/v2/.
Currently running NuGet.exe 3.5.0.
Updating NuGet.exe to 4.9.4.
Update successful.

Unhandled Exception:
**System.TypeLoadException: Could not load type 'System.AppContext'** from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'System.AppContext' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e08`enter code here`9'.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-nbh58I/pythonnet/setup.py", line 405, in <module>
zip_safe=False,
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/dist-packages/wheel/bdist_wheel.py", line 179, in run
self.run_command('build')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 448, in build_extensions
self.build_extension(ext)
File "/tmp/pip-install-nbh58I/pythonnet/setup.py", line 139, in build_extension
self._install_packages()
File "/tmp/pip-install-nbh58I/pythonnet/setup.py", line 273, in _install_packages
subprocess.check_call(cmd, shell=use_shell)
File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'mono tools/nuget/nuget.exe restore pythonnet.sln -o packages' returned non-zero exit status 1


Please help regard.










share|improve this question






























    0















    I am getting "Unhandled Exception: System.TypeLoadException: Could not load type 'System.AppContext' from assembly 'mscorlib", while installing the pythonnet in ubuntu.



    Below is my configuration:



    Ubuntu 64 bit 16V04



    Mono 4.2.1.102



    Python 2.7.12
    When i ran pip install pythonnet to install pythonnet, we are getting below error:



    Collecting pythonnet
    Using cached https://files.pythonhosted.org/packages/89/3b/a22cd45b591d6cf490ee8b24d52b9db1f30b4b478b64a9b231c53474731e/pythonnet-2.3.0.tar.gz
    Building wheels for collected packages: pythonnet
    Building wheel for pythonnet (setup.py) ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-nbh58I/pythonnet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-1ZQZYo --python-tag cp27:
    running bdist_wheel
    running build
    running build_ext
    Checking for updates from https://www.nuget.org/api/v2/.
    Currently running NuGet.exe 3.5.0.
    Updating NuGet.exe to 4.9.4.
    Update successful.

    Unhandled Exception:
    **System.TypeLoadException: Could not load type 'System.AppContext'** from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
    [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'System.AppContext' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e08`enter code here`9'.
    Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-nbh58I/pythonnet/setup.py", line 405, in <module>
    zip_safe=False,
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
    File "/usr/lib/python2.7/dist-packages/wheel/bdist_wheel.py", line 179, in run
    self.run_command('build')
    File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
    File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
    self.run_command(cmd_name)
    File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
    File "/usr/lib/python2.7/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
    File "/usr/lib/python2.7/distutils/command/build_ext.py", line 448, in build_extensions
    self.build_extension(ext)
    File "/tmp/pip-install-nbh58I/pythonnet/setup.py", line 139, in build_extension
    self._install_packages()
    File "/tmp/pip-install-nbh58I/pythonnet/setup.py", line 273, in _install_packages
    subprocess.check_call(cmd, shell=use_shell)
    File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command 'mono tools/nuget/nuget.exe restore pythonnet.sln -o packages' returned non-zero exit status 1


    Please help regard.










    share|improve this question


























      0












      0








      0








      I am getting "Unhandled Exception: System.TypeLoadException: Could not load type 'System.AppContext' from assembly 'mscorlib", while installing the pythonnet in ubuntu.



      Below is my configuration:



      Ubuntu 64 bit 16V04



      Mono 4.2.1.102



      Python 2.7.12
      When i ran pip install pythonnet to install pythonnet, we are getting below error:



      Collecting pythonnet
      Using cached https://files.pythonhosted.org/packages/89/3b/a22cd45b591d6cf490ee8b24d52b9db1f30b4b478b64a9b231c53474731e/pythonnet-2.3.0.tar.gz
      Building wheels for collected packages: pythonnet
      Building wheel for pythonnet (setup.py) ... error
      Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-nbh58I/pythonnet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-1ZQZYo --python-tag cp27:
      running bdist_wheel
      running build
      running build_ext
      Checking for updates from https://www.nuget.org/api/v2/.
      Currently running NuGet.exe 3.5.0.
      Updating NuGet.exe to 4.9.4.
      Update successful.

      Unhandled Exception:
      **System.TypeLoadException: Could not load type 'System.AppContext'** from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
      [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'System.AppContext' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e08`enter code here`9'.
      Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-nbh58I/pythonnet/setup.py", line 405, in <module>
      zip_safe=False,
      File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
      File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
      File "/usr/lib/python2.7/dist-packages/wheel/bdist_wheel.py", line 179, in run
      self.run_command('build')
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
      self.distribution.run_command(command)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
      File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
      self.run_command(cmd_name)
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
      self.distribution.run_command(command)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
      File "/usr/lib/python2.7/distutils/command/build_ext.py", line 339, in run
      self.build_extensions()
      File "/usr/lib/python2.7/distutils/command/build_ext.py", line 448, in build_extensions
      self.build_extension(ext)
      File "/tmp/pip-install-nbh58I/pythonnet/setup.py", line 139, in build_extension
      self._install_packages()
      File "/tmp/pip-install-nbh58I/pythonnet/setup.py", line 273, in _install_packages
      subprocess.check_call(cmd, shell=use_shell)
      File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
      raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command 'mono tools/nuget/nuget.exe restore pythonnet.sln -o packages' returned non-zero exit status 1


      Please help regard.










      share|improve this question
















      I am getting "Unhandled Exception: System.TypeLoadException: Could not load type 'System.AppContext' from assembly 'mscorlib", while installing the pythonnet in ubuntu.



      Below is my configuration:



      Ubuntu 64 bit 16V04



      Mono 4.2.1.102



      Python 2.7.12
      When i ran pip install pythonnet to install pythonnet, we are getting below error:



      Collecting pythonnet
      Using cached https://files.pythonhosted.org/packages/89/3b/a22cd45b591d6cf490ee8b24d52b9db1f30b4b478b64a9b231c53474731e/pythonnet-2.3.0.tar.gz
      Building wheels for collected packages: pythonnet
      Building wheel for pythonnet (setup.py) ... error
      Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-nbh58I/pythonnet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-1ZQZYo --python-tag cp27:
      running bdist_wheel
      running build
      running build_ext
      Checking for updates from https://www.nuget.org/api/v2/.
      Currently running NuGet.exe 3.5.0.
      Updating NuGet.exe to 4.9.4.
      Update successful.

      Unhandled Exception:
      **System.TypeLoadException: Could not load type 'System.AppContext'** from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
      [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'System.AppContext' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e08`enter code here`9'.
      Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-nbh58I/pythonnet/setup.py", line 405, in <module>
      zip_safe=False,
      File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
      File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
      File "/usr/lib/python2.7/dist-packages/wheel/bdist_wheel.py", line 179, in run
      self.run_command('build')
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
      self.distribution.run_command(command)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
      File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
      self.run_command(cmd_name)
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
      self.distribution.run_command(command)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
      File "/usr/lib/python2.7/distutils/command/build_ext.py", line 339, in run
      self.build_extensions()
      File "/usr/lib/python2.7/distutils/command/build_ext.py", line 448, in build_extensions
      self.build_extension(ext)
      File "/tmp/pip-install-nbh58I/pythonnet/setup.py", line 139, in build_extension
      self._install_packages()
      File "/tmp/pip-install-nbh58I/pythonnet/setup.py", line 273, in _install_packages
      subprocess.check_call(cmd, shell=use_shell)
      File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
      raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command 'mono tools/nuget/nuget.exe restore pythonnet.sln -o packages' returned non-zero exit status 1


      Please help regard.







      python linux pip nuget python.net






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 22 at 11:45









      jww

      54.5k42240521




      54.5k42240521










      asked Mar 22 at 11:22









      VijendraVijendra

      12




      12






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55298544%2finstalling-pythonnet-on-ubuntu-16v04-64-bit-fails%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55298544%2finstalling-pythonnet-on-ubuntu-16v04-64-bit-fails%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript