Sublime Forum

Python3 -m pip install CodeIntel on MacOS require Xcode.app?

#1

Hello Fellow Sublimers,

I am trying to use the power of SublimeCodeIntel Package in my Sublime Text 3 Editor. Even though I installed SublimeCodeIntel via Anaconda:Package Control, when coding, the CodeIntel feature does not work on modules, sys. or secrets. does not show any functions within this module.

When reading this article on this, it stated that I must pip install CodeIntel before installing SublimeCodeIntel.

However, when running python3 -m pip install CodeIntel, I get the following error:

clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DPCRE_STATIC -DHAVE_STRERROR -DHAVE_MEMMOVE -DHAVE_BCOPY -DNEWLINE=’\n’ -DLINK_SIZE=2 -DMATCH_LIMIT=10000000 -DPOSIX_MALLOC_THRESHOLD=10 -DEXPORT= -Iscintilla/src -Iscintilla/lexlib -Iscintilla/lexers -Iscintilla/include -Isilvercity/PySilverCity/Src -Isilvercity/Lib/Src -Ipcre -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c pcre/pcre_compile.c -o build/temp.macosx-10.9-universal2-3.10/pcre/pcre_compile.o

xcode-select: note: no developer tools were found at ‘/Applications/Xcode.app’, requesting install. Choose an option in the dialog to download the command line developer tools.

error: command ‘/usr/bin/clang’ failed with exit code 1

[end of output]

note : This error originates from a subprocess, and is likely not a problem with pip.

error : legacy-install-failure

× Encountered error while trying to install package.

╰─> CodeIntel

note : This is an issue with the package mentioned above, not pip.

hint : See above for output from the failure.

What is the best action to take on this error?

Why is xCode app, another code editor, required in order to install the made CodeIntel package?

Please Advise,

Fellow Sublimer Skyline

0 Likes

#2

Generally speaking, on MacOS the command line development tools that are available from Apple are provided by XCode. The last time I checked (which admittedtly was a while ago) you don’t need to have the full XCode installed and you can instead install just the command line tools.

A potential alternative would be to use something like Homebrew to get the required tools, although I have no experience with that personally either.

The general gist is that MacOS doesn’t ship directly with developer tools installed, much like Windows and some Linux distributions don’t.

0 Likes

#3

I see, thanks for the clarification, I was able to install CodeIntel by clicking on Install, instead of Get xCode app.

UserName-MacBook-Pro:~ skyline_mgl$ python3 -m pip install CodeIntel

Collecting CodeIntel

Using cached CodeIntel-2.0.0.tar.gz (20.7 MB)

Preparing metadata (setup.py) … done

Requirement already satisfied: 3to2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from CodeIntel) (1.1.1)

Requirement already satisfied: applib in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from CodeIntel) (1.2)

Requirement already satisfied: chardet in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from CodeIntel) (4.0.0)

Requirement already satisfied: cmdln in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from CodeIntel) (2.0.0)

Requirement already satisfied: esprima in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from CodeIntel) (4.0.1)

Requirement already satisfied: inflector in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from CodeIntel) (3.0.1)

Requirement already satisfied: six in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from CodeIntel) (1.16.0)

Requirement already satisfied: zope.cachedescriptors in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from CodeIntel) (4.3.1)

Requirement already satisfied: libclang-py3 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from CodeIntel) (3.9.0)

Requirement already satisfied: appdirs in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from applib->CodeIntel) (1.4.4)

Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from zope.cachedescriptors->CodeIntel) (58.1.0)

Using legacy ‘setup.py install’ for CodeIntel, since package ‘wheel’ is not installed.

Installing collected packages: CodeIntel

Running setup.py install for CodeIntel … done

0 Likes