First time here? Checkout the FAQ!
x
+1 vote
by (160 points)
Hello,

I have an issue installing opencarp on my macOS BigSur version 11.5.2.

I installed python 3.8.0 and pip 19.2.3 which seem operational, however, when installing the Gitlab file "opencarp-8.1.pkg" it indicates at the end that the installation failed.

Could you help me with that?

Thanks,

Auriane

1 Answer

0 votes
by (3.4k points)
selected by
 
Best answer
Hello Auriane,

Could you provide more details about the error?

For example, the error should be detailed in this file: /var/log/install.log
by (160 points)
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/closest_hc -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/update-carp -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/velocity -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/txt2h5.py -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/bullseye -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/bin2h5.py -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/sv2hdf5 -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/ecgplotter -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/cusummary -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/carphelp -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/surfextract -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/tuneCV -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/meshQstats -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/restituteCV -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/svgecg2txt -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/igbPlotter -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/cuclean -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/cusettings -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/plotTrace -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/bsa -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     copying carputils/../bin/cavplot -> build/lib.macosx-10.9-x86_64-3.8/carputils/../bin
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     running build_ext
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     building 'mshread' extension
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     creating build/temp.macosx-10.9-x86_64-3.8
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     creating build/temp.macosx-10.9-x86_64-3.8/src
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -g -I/usr/local/lib/opencarp/lib/libomp -I/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/mshread.c -o build/temp.macosx-10.9-x86_64-3.8/src/mshread.o -std=c99 -Wno-unused-result -Wno-incompatible-pointer-types -Xpreprocessor -fopenmp
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     error: command 'gcc' failed with exit status 1
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     ----------------------------------------
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall: ERROR: Command errored out with exit status 1: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/PKInstallSandbox.5fAGsC/tmp/pip-req-build-b48xsg34/setup.py'"'"'; __file__='"'"'/private/tmp/PKInstallSandbox.5fAGsC/tmp/pip-req-build-b48xsg34/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/PKInstallSandbox.5fAGsC/tmp/pip-record-ttol8l60/install-record.txt --single-version-externally-managed --prefix /Library/Frameworks/Python.framework/Versions/3.8 --compile Check the logs for full command output.
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall: Traceback (most recent call last):
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:   File "./bin/cusettings", line 11, in <module>
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall:     from carputils.settings.config import new, update
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: ./postinstall: ModuleNotFoundError: No module named 'carputils'
2021-10-15 14:44:07+02 MacbookProAE package_script_service[17106]: Responsibility set back to self.
2021-10-15 14:44:07+02 MacbookProAE install_monitor[57744]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
2021-10-15 14:44:07+02 MacbookProAE installd[565]: PackageKit: releasing backupd
2021-10-15 14:44:07+02 MacbookProAE installd[565]: PackageKit: allow user idle system sleep
2021-10-15 14:44:07+02 MacbookProAE installd[565]: PackageKit: Cleared responsibility for install from 57740.
2021-10-15 14:44:07+02 MacbookProAE installd[565]: PackageKit: Cleared permissions on Installer.app
2021-10-15 14:44:07+02 MacbookProAE installd[565]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "Une erreur s’est produite pendant l’exécution des scripts du paquet « opencarp-v8.1.pkg »." UserInfo={NSFilePath=./postinstall, NSURL=file:///Users/aurianeernault/Downloads/opencarp-v8.1.pkg#opencarp-v0.1-core.pkg, PKInstallPackageIdentifier=com.opencarp.opencarp.core, NSLocalizedDescription=Une erreur s’est produite pendant l’exécution des scripts du paquet « opencarp-v8.1.pkg ».} {
        NSFilePath = "./postinstall";
        NSLocalizedDescription = "Une erreur s\U2019est produite pendant l\U2019ex\U00e9cution des scripts du paquet \U00ab\U00a0opencarp-v8.1.pkg\U00a0\U00bb.";
        NSURL = "file:///Users/aurianeernault/Downloads/opencarp-v8.1.pkg#opencarp-v0.1-core.pkg";
        PKInstallPackageIdentifier = "com.opencarp.opencarp.core";
    }
2021-10-15 14:44:07+02 MacbookProAE installd[565]: PackageKit: Running idle tasks
2021-10-15 14:44:07+02 MacbookProAE Installer[57740]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "Une erreur s’est produite pendant l’exécution des scripts du paquet « opencarp-v8.1.pkg »." UserInfo={NSFilePath=./postinstall, NSURL=file:///Users/aurianeernault/Downloads/opencarp-v8.1.pkg#opencarp-v0.1-core.pkg, PKInstallPackageIdentifier=com.opencarp.opencarp.core, NSLocalizedDescription=Une erreur s’est produite pendant l’exécution des scripts du paquet « opencarp-v8.1.pkg ».}
2021-10-15 14:44:07+02 MacbookProAE installd[565]: PackageKit: Removing client PKInstallDaemonClient pid=57740, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
2021-10-15 14:44:07+02 MacbookProAE installd[565]: PackageKit: Done with sandbox removals
2021-10-15 14:44:08+02 MacbookProAE Installer[57740]: Install failed: Le programme d’installation a rencontré une erreur qui a provoqué l’échec de l’installation. Contactez l’éditeur du logiciel pour obtenir de l’aide.
2021-10-15 14:44:08+02 MacbookProAE Installer[57740]: IFDInstallController 385E80 state = 8
2021-10-15 14:44:08+02 MacbookProAE Installer[57740]: Displaying 'Install Failed' UI.
2021-10-15 14:44:08+02 MacbookProAE Installer[57740]: 'Install Failed' UI displayed message:'Le programme d’installation a rencontré une erreur qui a provoqué l’échec de l’installation. Contactez l’éditeur du logiciel pour obtenir de l’aide.'.
by (160 points)
Hi Marie,
Thanks for helping out; I copied the end of what appeared in install.log, should I also copy what was before?
thanks!
Auriane
by (3.4k points)
Hi Auriane,

I found a similar problem to yours here: https://apple.stackexchange.com/questions/254380/why-am-i-getting-an-invalid-active-developer-path-when-attempting-to-use-git-a

Your solution could be to open a terminal and run:
xcode-select --install

And then trying to install openCARP again.
by (160 points)
Hi Marie,

Thank you for helping, I think this fixed the problem. The installation was successful after installing the command line.

Are the following buildinfo ok?

MacbookProAE:~ aurianeernault$ openCARP -buildinfo
GIT tag:              v8.1
GIT hash:             28eb2e978f276e7e998719a3f6d436fcb87e482a
GIT repo:             https://gitlab-ci-token:nNj1fNxiE3dbYyu7mb29@git.opencarp.org/openCARP/openCARP.git
dependency commits:   

MacbookProAE:~ aurianeernault$ python3 -c "import carputils; print(carputils)"
<module 'carputils' from '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/carputils/__init__.py'>
by (19.1k points)
This looks good. We've added the additional command to the installation instructions.
Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance
...