macos-high-sierra

Jenkins user is gone after macOS update

自古美人都是妖i 提交于 2019-12-05 01:35:34
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: jenkins: illegal user name How do I fix this? You Jenkins configuration still exist under Library

MySQL Error: Authentication plugin 'caching_sha2_password' cannot be loaded

半腔热情 提交于 2019-12-04 17:22:42
问题 I just installed MySQL Ver 14.14 Distrib 5.7.22 with Homebrew on my macOS v10.13.4. I ran the command: brew install mysql After the installation completed, as directed by Homebrew, I ran the command: mysql_secure_installation and was returned the error: Error: Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/Cellar/mysql/5.7.22/lib/plugin/caching_sha2_password.so, 2): image not found I tried a few things like changing default_authentication_plugin to mysql

Xcode update stuck after updating macOS

无人久伴 提交于 2019-12-04 10:13:18
问题 After updating macOS, I cannot update XCode anymore: I have been waiting for 2 hours but AppStore does not update. How do I restart the Xcode update process from the beginning? Regards 回答1: A lot of the pain of updating XCode from the App Store can be avoided by downloading the latest version from the Apple Developer website directly (including beta versions if you are into them). Use this Apple Developer link. For more information see this Ask Different answer. 回答2: It is painfully slow when

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

China☆狼群 提交于 2019-12-04 09:56:01
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 the way. Firstly, I am using a MacBook pro 2015 model with High Sierra 10.13.6. I use terminal and do

Importing Bazel Project fails in CLion on macOS

ⅰ亾dé卋堺 提交于 2019-12-04 09:50:52
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/pip.bzl", line 39 _pip_import_impl(repository_ctx, "python") File "/private/var/tmp/_bazel_pmanjunath

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

谁说胖子不能爱 提交于 2019-12-04 09:36:36
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 wrong. I put together a minimal example: import Foundation import CoreSpotlight print("Start indexing.

macOS “The application Android Studio can't be opened”

北慕城南 提交于 2019-12-04 04:18:11
问题 I am getting the error "The application Android Studio can't be opened" after updating my MacBook Pro to latest version 10.13.4 I am using Android Studio 3.1 I can open all the applications on my Mac except for Android Studio. I have searched on internet and couldn't find any related answer for this problem. Please help? 回答1: I had this issue and it seemed to be caused by comments in my studio.vmoptions file ~/Library/Preferences/.AndroidStudioX.X/studio.vmoptions Once I removed the comments,

Xcode 9.0.1 Interface Builder 100% CPU opening iOS Storyboard

独自空忆成欢 提交于 2019-12-04 02:56:29
Last night Xcode automatically updated to Version 9.0.1 (9A1004). Today, I tried to open an existing project and my iOS storyboard file gets stuck with a never ending spinner and Activity Monitor reports Interface Builder using 100% CPU. I have a second MacBook Pro that still has Xcode 9.0.0 and it opens the storyboard without any issue. I'm running macOS High Sierra on both. Anyone else seen this or know of a workaround. I received a response from my bug report with a suggested workaround. The suggestion was to edit the storyboard text and change the value for the

NSCollectionView does not scroll items past initial visible rect

£可爱£侵袭症+ 提交于 2019-12-04 01:22:08
问题 I'm running into an issue with an existing app while trying to fix a few outstanding macOS 10.13 bugs. I have a small NSCollectionView that looks similar to the small monthly calendar in the Calendar app. It displays days and scrolls vertically on click. However, on macOS 10.13 the collection view only displays a few rows and does not scroll. I've verified that the data source is being called correctly and it does try to load additional items - but doesn't scroll to them. I've created a small

Install mysql-python on macOS High Sierra

不羁岁月 提交于 2019-12-03 21:33:13
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-VuUKuW/mysql-python/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n