Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Libraries missing after setup.py install on OSX #392

Closed
@fractus

Description

@fractus

Environment

  • Pythonnet version: v2.2.0-dev1-26-gb1cd3d1 (git describe --tags), branchmac-osx
  • Python version: Python 3.5.2 :: Anaconda 4.3.0 (x86_64)
  • Operating System: OSX El Capitan 10.11.6

Details

  1. Checked out the branch, and runpython setup.py install. This worked, after setting
    'PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Versions/4.6.2/lib/pkgconfig`
    (see dump below)

  2. Import fails

(py35)vasilios@exumas:~/Temp/pythonnet [mac-osx|12]└─ $python-c"import clr"Theassemblymscorlib.dllwasnotfoundorcouldnotbeloaded.Itshouldhavebeeninstalledinthe `/usr/local/anaconda/envs/py35/lib/mono/4.5/mscorlib.dll'directory.
  1. Manually added a symbolic link to the respective mono folder, and trying import again
vasilios@exumas: /usr/local/anaconda/envs/py35/lib└─ $ ln -s /Library/Frameworks/Mono.framework/Versions/Current/lib/mono
(py35)vasilios@exumas:~/Temp/pythonnet [mac-osx|12]└─ $python-c"import clr"Traceback (mostrecentcalllast):File"<string>",line1,in<module>ImportError:System.TypeInitializationException:The typeinitializerfor'Mono.Unix.Native.Stdlib'threwanexception.--->System.DllNotFoundException:MonoPosixHelperat (wrappermanaged-to-native)Mono.Unix.Native.Stdlib:GetDefaultSignal ()atMono.Unix.Native.Stdlib..cctor () [0x00006]in<ebe430c916fe49219627b20fd4c89313>:0---Endofinnerexceptionstacktrace---atMono.Unix.UnixMarshal.AllocHeap (System.Int64size) [0x00018]in<ebe430c916fe49219627b20fd4c89313>:0atMono.Unix.UnixMarshal.StringToHeap (System.Strings,System.Int32index,System.Int32count,System.Text.Encodingencoding) [0x00061]in<ebe430c916fe49219627b20fd4c89313>:0atMono.Unix.UnixMarshal.StringToHeap (System.Strings,System.Text.Encodingencoding) [0x00008]in<ebe430c916fe49219627b20fd4c89313>:0atPython.Runtime.Utf32Marshaler.MarshalManagedToNative (System.Objectobj) [0x00019]in<e8f6e1fa95374383b3f862986f3e768c>:0at (wrappermanaged-to-native)Python.Runtime.Runtime:PyUnicode_FromKindAndString (int,string,int)atPython.Runtime.Runtime.PyUnicode_FromUnicode (System.Strings,System.Int32size) [0x00000]in<e8f6e1fa95374383b3f862986f3e768c>:0atPython.Runtime.Runtime.PyUnicode_FromString (System.Strings) [0x00007]in<e8f6e1fa95374383b3f862986f3e768c>:0atPython.Runtime.Runtime.Initialize () [0x0010f]in<e8f6e1fa95374383b3f862986f3e768c>:0atPython.Runtime.PythonEngine.Initialize () [0x00014]in<e8f6e1fa95374383b3f862986f3e768c>:0atPython.Runtime.PythonEngine.InitExt () [0x00000]in<e8f6e1fa95374383b3f862986f3e768c>:0

Still looking at this issue, just though this may take you a step further. Any help would appreciated.

Output of Step 1

(py35)vasilios@exumas:~/Temp/pythonnet [mac-osx| ✔]└─ $set|grepPKGPKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Versions/4.6.2/lib/pkgconfig(py35)vasilios@exumas:~/Temp/pythonnet [mac-osx| ✔]└─ $pythonsetup.pyinstall/usr/local/anaconda/envs/py35/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/setuptools/dist.py:331:UserWarning:Normalizing'2.2.0-dev1'to'2.2.0.dev1'runninginstallrunningbdist_eggrunningegg_infowritingpythonnet.egg-info/PKG-INFOwritingtop-levelnamestopythonnet.egg-info/top_level.txtwritingdependency_linkstopythonnet.egg-info/dependency_links.txtreadingmanifestfile'pythonnet.egg-info/SOURCES.txt'writingmanifestfile'pythonnet.egg-info/SOURCES.txt'installinglibrarycodetobuild/bdist.macosx-10.6-x86_64/eggrunninginstall_librunningbuild_extCheckingforupdatesfromhttps://www.nuget.org/api/v2/.CurrentlyrunningNuGet.exe3.5.0.NuGet.exeisuptodate.MSBuildauto-detection:usingmsbuildversion'14.1'from'/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/msbuild/14.1/bin/'.Allpackageslistedinpackages.configarealreadyinstalled.XBuildEngineVersion14.0Mono,Version4.6.2.0Copyright (C)2005-2013VariousMonoauthors/Users/vasilios/Temp/pythonnet/pythonnet.sln:warning :Theprojectconfigurationforproject'clrmodule'correspondingtothesolutionconfiguration'ReleaseMono|x64'wasnotfound.XBuildEngineVersion14.0Mono,Version4.6.2.0Copyright (C)2005-2013VariousMonoauthorsConfiguration:ReleaseMonoPlatform:x64assemblymanager.cs(206,37):warningCS0168:Thevariable `e'isdeclaredbutneverusedclassderived.cs(143,26):warningCS0219:Thevariable `fb'isassignedbutitsvalueisneverusedclassderived.cs(832,17):warningCS0219:Thevariable `t'isassignedbutitsvalueisneverusedmethodbinder.cs(145,36):warningCS0219:Thevariable `typeArgs'isassignedbutitsvalueisneverusedmethodbinding.cs(114,25):warningCS0219:Thevariable `len'isassignedbutitsvalueisneverusedmethodbinding.cs(153,24):warningCS0219:Thevariable `superType'isassignedbutitsvalueisneverusedruntime.cs(2063,16):warningCS0472:Theresultofcomparingvaluetype`System.IntPtr' with null is always `true'converter.cs(26,21): warning CS0414: The private field `Python.Runtime.Converter.decimalType'isassignedbutitsvalueisneverused/Users/vasilios/Temp/pythonnet/pythonnet.sln:warning :Theprojectconfigurationforproject'clrmodule'correspondingtothesolutionconfiguration'ReleaseMono|x64'wasnotfound.Configuration:ReleaseMonoPlatform:x64fieldtest.cs(21,17):warningCS0219:Thevariable `i'isassignedbutitsvalueisneverusedfieldtest.cs(22,17):warningCS0219:Thevariable `j'isassignedbutitsvalueisneverusedarraytest.cs(45,23):warningCS0414:Theprivatefield `Python.Test.PrivateArrayTest.items'isassignedbutitsvalueisneverusedConfiguration:ReleaseMonoPlatform:x64pyimport.cs(47,17):warningCS0219:Thevariable `r'isassignedbutitsvalueisneverusedConfiguration:ReleasePlatform:x64assemblyinfo.cs(13,50):warningCS0618:`System.Security.Permissions.SecurityAction.RequestMinimum' is obsolete: `Thisrequestsshouldnotbeused'pythonconsole.cs(18,28): warning CS0219: The variable `a'isassignedbutitsvalueisneverusedcreatingbuild/bdist.macosx-10.6-x86_64creatingbuild/bdist.macosx-10.6-x86_64/eggcopyingbuild/lib.macosx-10.6-x86_64-3.5/clr.cpython-35m-darwin.so->build/bdist.macosx-10.6-x86_64/eggcreatingstubloaderforclr.cpython-35m-darwin.sobyte-compilingbuild/bdist.macosx-10.6-x86_64/egg/clr.pytoclr.cpython-35.pycinstallingpackagedatatobuild/bdist.macosx-10.6-x86_64/eggrunninginstall_datacopying/Users/vasilios/Temp/pythonnet/build/lib.macosx-10.6-x86_64-3.5/Python.Runtime.dll->build/bdist.macosx-10.6-x86_64/egg/../../../../../../../usr/local/anaconda/envs/py35/lib/python3.5/site-packagescreatingbuild/bdist.macosx-10.6-x86_64/egg/EGG-INFOcopyingpythonnet.egg-info/PKG-INFO->build/bdist.macosx-10.6-x86_64/egg/EGG-INFOcopyingpythonnet.egg-info/SOURCES.txt->build/bdist.macosx-10.6-x86_64/egg/EGG-INFOcopyingpythonnet.egg-info/dependency_links.txt->build/bdist.macosx-10.6-x86_64/egg/EGG-INFOcopyingpythonnet.egg-info/not-zip-safe->build/bdist.macosx-10.6-x86_64/egg/EGG-INFOcopyingpythonnet.egg-info/top_level.txt->build/bdist.macosx-10.6-x86_64/egg/EGG-INFOwritingbuild/bdist.macosx-10.6-x86_64/egg/EGG-INFO/native_libs.txtcreating'dist/pythonnet-2.2.0.dev1-py3.5-macosx-10.6-x86_64.egg'andadding'build/bdist.macosx-10.6-x86_64/egg'toitremoving'build/bdist.macosx-10.6-x86_64/egg' (andeverythingunderit)Processingpythonnet-2.2.0.dev1-py3.5-macosx-10.6-x86_64.eggremoving'/usr/local/anaconda/envs/py35/lib/python3.5/site-packages/pythonnet-2.2.0.dev1-py3.5-macosx-10.6-x86_64.egg' (andeverythingunderit)creating/usr/local/anaconda/envs/py35/lib/python3.5/site-packages/pythonnet-2.2.0.dev1-py3.5-macosx-10.6-x86_64.eggExtractingpythonnet-2.2.0.dev1-py3.5-macosx-10.6-x86_64.eggto/usr/local/anaconda/envs/py35/lib/python3.5/site-packagespythonnet2.2.0.dev1isalreadytheactiveversionineasy-install.pthInstalled/usr/local/anaconda/envs/py35/lib/python3.5/site-packages/pythonnet-2.2.0.dev1-py3.5-macosx-10.6-x86_64.eggProcessingdependenciesforpythonnet==2.2.0.dev1Finishedprocessingdependenciesforpythonnet==2.2.0.dev1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp