problem with pkg_resources in python 3

pagani laurent laurent.pagani at laposte.net
Wed Jul 12 11:11:58 UTC 2017


Hello,

I have Macports python 3.5 and 3.6 and I have installed setuptools and pip for each version, on Mac OS 10.12.5, XCode 8.3.3
However for python3.5 it says it does not find pkg_resources and for python3.6, it is even worse, python crashes :

laurent>python3.5
Python 3.5.2 (default, Dec 17 2016, 06:22:37) 
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pkg_resources
>>> Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'pkg_resources'

laurent>python3.6
Python 3.6.1 (default, Apr 24 2017, 06:18:27) 
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pkg_resources
Python(85816,0x7fffcc2cc3c0) malloc: *** error for object 0x1091fa318: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort

Any hint ?
Thanks,
lpagani

"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème" (devise Shadok)



More information about the macports-users mailing list