macos-high-sierra

Jenkins user is gone after macOS update

廉价感情. 提交于 2019-12-06 20:21:00
问题 I'm running Jenkins as a CI server on a Mac. It was running fine on macOS 10.12 with the typical setup with user jenkins. Today I upgraded macOS to 10.13 (High Sierra). Jenkins could not start after the upgrade process completed. Furthermore, there was no user jenkins on the system. All Jenkins files are there, but there is no jenkins user in Settings -> Users & Groups. If I try to use jenkins user in Terminal, for instance if I try to change file ownership to jenkins with chown, I get: chown

f2py: using openMP parallel in fortran fails

故事扮演 提交于 2019-12-06 16:08:32
I am trying to compile a fortran routine that uses openMP for python using f2py . This is the file bsp.f90 : module OTmod !$ use omp_lib implicit none public :: get_threads contains function get_threads() result(nt) integer :: nt nt = 0 !$ nt = omp_get_max_threads() !$omp parallel num_threads(nt) write( *, * ) 'hello world!' !$omp end parallel end function get_threads end module OTmod If I compile it with f2py -m testmod --fcompiler=gfortran --f90flags='-fopenmp' -lgomp -c bsp.f90 compilation works, but importing it to python fails with the error ImportError: dlopen(/Users/USER/omp_py/testmod

CERTIFICATE_VERIFY_FAILED Python 3.6 mac osx can't fix with 'Install Certificates.command'

余生长醉 提交于 2019-12-06 11:10:59
I am aware of the update in Python 3.6 where you need to run the 'Install Certificates.command' in order to get SSL working again, however it doesn't seem to work for me. Running the file results in: -- pip install --upgrade certifi Requirement already up-to-date: certifi in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (2018.4.16) -- removing any existing file or link -- creating symlink to certifi certificate bundle -- setting permissions -- update complete And I've also explicitly run pip3 install certifi Requirement already satisfied: certifi in /Library

Cocoa app not loading views or running code on High Sierra

可紊 提交于 2019-12-06 06:31:51
问题 I have an app on the Mac AppStore and many users have recently written to say it doesn't work on High Sierra (possibly 10.13.6, its hard to extract specific information from them). I managed to reproduce the issue on a friend's device, however I won't be able to use the device to build with Xcode etc. The issue seems to be the NSViewController doesn't load it's subviews at all! The grey view controller shown below should have dropdowns and buttons in it. I also noticed that closing the grey

Unknown Error when adding an CSSearchableItem to Core Spotlight (MacOS)

◇◆丶佛笑我妖孽 提交于 2019-12-06 06:12:31
问题 I recently wanted to power the search in one of my projects with Core Spotlight. However, whenever I add an CSSearchableItem to the SearchIndex, I get an error in the completion handler with the description: The operation couldn’t be completed. (CSIndexErrorDomain error -1.) According to Apple's reference, the error code -1 refers to Unknown Error , which isn't exactly helpful. I added both CoreSpotlight and CoreServices frameworks to my app and I really have no idea of what I might have done

How to get the user set computer name using python in MacOS Sierra/High Sierra

人盡茶涼 提交于 2019-12-06 06:04:50
问题 The question below has partly been answered, see the Solution section below. So I'm posting this partly to help others and also since the solution I have hasn't really solved the problem yet. Question So, the question is why the hostname as given by the following techniques (using python's platform and socket libs) gives different host names depending on which router you are attached to and why its also different to the computer name and also local host name. This is very mac specific too by

Importing Bazel Project fails in CLion on macOS

时光总嘲笑我的痴心妄想 提交于 2019-12-06 04:03:28
问题 I installed Bazel plugin on my CLion and am trying to import a new Bazel C++ project and I keep hitting into these errors- tensorflow_gpu-1.8.0lft1-cp27-cp27mu-linux_x86_64.whl is not a supported wheel on this platform. ERROR: error loading package '': Encountered error while reading extension file 'requirements.bzl': no such package '@my_deps//': Traceback (most recent call last): File "/private/var/tmp/_bazel_pmanjunath/0f9184e7a61c3740275307da0cc42014/external/io_bazel_rules_python/python

Safari Extension app is not shown in Safari preferences Extensions tab

杀马特。学长 韩版系。学妹 提交于 2019-12-05 18:31:37
I have followed all the instruction mentioned at Creating Your First Safari Extension App . After running FirstSafariExtensionApp target, I have opened Safari preferences Extensions tab but I couldn't find My Extension in the left pane. I have Apple Developer membership and installed Mac Developer and Safari Extension Developer certificates in the KeyChain. How to get my first safari extension app working? I had the same problem, the Extension didn't show when running the app even though I made sure to allow unsigned extensions . I could run the extension target by choosing Safari as app to

High Sierra update causes NSTableView to flip and scramble

∥☆過路亽.° 提交于 2019-12-05 17:50:32
I'm updating an existing project which has worked fine for years to High Sierra. The view loads correctly and looks as it always has: Then, after I open a popup and close it again, the view moves things around, flips things, and generally looks very crazy: Notice the Info title drops to the bottom, the left side text items reverse order, and the date and dropdown text flip. Mouse interaction seems very scrambled as well when this happens. I'm not sure where to even start with solving this one, anyone have any ideas? This is using xcode 9 beta 5 and High Sierra Beta 6. Update: This is also in

Install mysql-python on macOS High Sierra

青春壹個敷衍的年華 提交于 2019-12-05 02:24:36
问题 I am trying to install the mysql-python library in Python 2.7.10 using the command pip install mysql-python . This results in the following error: Collecting mysql-python Using cached MySQL-python-1.2.5.zip Building wheels for collected packages: mysql-python Running setup.py bdist_wheel for mysql-python ... error Complete output from command /Users/matt/env/identity/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/jd/57tcbb295t13k0t10kvrqrxh0000gn/T/pip-build