macos-big-sur

Big Sur Update Leads to Multiple Load Error Rails Ruby

你离开我真会死。 提交于 2021-02-20 02:53:29
问题 After updating to Big Sur, my ruby (2.6.3) on rails (5.2.1) application repeatedly has LoadError when running rails s or rails db:migrate . I have tried uninstall and reinstall rails multiple time but it will only work 1 or 2 times before encountering LoadError again. Here are some samples of the errors (Note that they are different) /Library/Ruby/Gems/2.6.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require': cannot load such file -- new_relic/agent/instrumentation

Big Sur Update Leads to Multiple Load Error Rails Ruby

◇◆丶佛笑我妖孽 提交于 2021-02-20 02:52:49
问题 After updating to Big Sur, my ruby (2.6.3) on rails (5.2.1) application repeatedly has LoadError when running rails s or rails db:migrate . I have tried uninstall and reinstall rails multiple time but it will only work 1 or 2 times before encountering LoadError again. Here are some samples of the errors (Note that they are different) /Library/Ruby/Gems/2.6.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require': cannot load such file -- new_relic/agent/instrumentation

“zsh: illegal hardware instruction python” when installing Tensorflow on macbook pro M1

自闭症网瘾萝莉.ら 提交于 2021-02-16 18:06:39
问题 I'm trying to get tensorflow working on my MacBook pro M1. However, I keep getting the following error when trying to import: zsh: illegal hardware instruction python I have downloaded and installed tensorflow via this link. These were my installation steps: install a venv: python3 -m venv venv . drag the install_venv.sh (which is located within the downloaded folder) file to the terminal, add -p at the end. select the directory of the venv as the location where tensorflow should be installed

“zsh: illegal hardware instruction python” when installing Tensorflow on macbook pro M1

梦想的初衷 提交于 2021-02-16 18:06:33
问题 I'm trying to get tensorflow working on my MacBook pro M1. However, I keep getting the following error when trying to import: zsh: illegal hardware instruction python I have downloaded and installed tensorflow via this link. These were my installation steps: install a venv: python3 -m venv venv . drag the install_venv.sh (which is located within the downloaded folder) file to the terminal, add -p at the end. select the directory of the venv as the location where tensorflow should be installed

“zsh: illegal hardware instruction python” when installing Tensorflow on macbook pro M1

时光毁灭记忆、已成空白 提交于 2021-02-16 18:06:27
问题 I'm trying to get tensorflow working on my MacBook pro M1. However, I keep getting the following error when trying to import: zsh: illegal hardware instruction python I have downloaded and installed tensorflow via this link. These were my installation steps: install a venv: python3 -m venv venv . drag the install_venv.sh (which is located within the downloaded folder) file to the terminal, add -p at the end. select the directory of the venv as the location where tensorflow should be installed

Unable to import opengl.gl in python on macos

自作多情 提交于 2021-02-13 12:40:49
问题 I am using OpenGL to render a scene in python. My code works perfectly fine on windows but, for some reason, I'm having issues when importing opengl.gl on MacOS. The issue arises when calling from OpenGL.GL import ... in both python scripts and the python console. More specifically here is the exact call in my script: from OpenGL.GL import glGenBuffers, glBindBuffer, glBufferData, \ glGenVertexArrays, glBindVertexArray, glEnableVertexAttribArray, glVertexAttribPointer, \ glDrawArrays,

Unable to import opengl.gl in python on macos

耗尽温柔 提交于 2021-02-13 12:40:27
问题 I am using OpenGL to render a scene in python. My code works perfectly fine on windows but, for some reason, I'm having issues when importing opengl.gl on MacOS. The issue arises when calling from OpenGL.GL import ... in both python scripts and the python console. More specifically here is the exact call in my script: from OpenGL.GL import glGenBuffers, glBindBuffer, glBufferData, \ glGenVertexArrays, glBindVertexArray, glEnableVertexAttribArray, glVertexAttribPointer, \ glDrawArrays,

Misaligned NSAttributedString in macOS NSStatusItem's button

陌路散爱 提交于 2021-02-11 15:05:01
问题 I would like to display a two-line NSAttributedString as the button title of the NSStatusItem of my macOS app. However, it seems to move the text up a few pixels and, thus, cut it off. This problem did not occur before macOS Big Sur. Workaround With some effort I managed to generate an NSImage of the text and use it as the button's image. Question Is there any way to position the NSAttributedString correctly without using an image? 来源: https://stackoverflow.com/questions/65167179/misaligned

How are python version 2 and version 3 organized ? I have trouble after brew uninstall python@, I want to reinstate/repair

时光总嘲笑我的痴心妄想 提交于 2021-02-11 04:29:35
问题 I did on my mac big sur: brew uninstall python@2 and then, I tried to check the version of python I have % pwd /Library/Frameworks/Python.framework/Versions % ls -al total 0 drwxrwxr-x 6 root wheel 192 Jan 11 14:18 . drwxr-xr-x 6 root wheel 192 Jan 11 14:18 .. drwxrwxr-x 10 root admin 320 Nov 8 2017 3.6 drwxrwxr-x 10 root admin 320 Jan 2 18:24 3.8 drwxrwxr-x 11 root admin 352 Jan 11 14:18 3.9 lrwxr-xr-x 1 root wheel 3 Jan 11 14:18 Current -> 3.9 % python -V Python 2.7.16 % python3 -V Python 3

Cant compile c++ on OS X Big Sur, “ld: library not found for -lgcc_s.10.4”

安稳与你 提交于 2021-02-09 07:30:15
问题 After upgrading my MacBook Pro to OS X 11.1 Big Sur, I am unable to get compilation of c++ programs using gcc to work. I am using CLion with CMake, and I get the following error when reloading the CMake configuration ld: library not found for -lgcc_s.10.4 The things that I have tried are installing Xcode, it installed without error. I have tried to create a symlink as suggested here https://github.com/Paxa/fast_excel/issues/33 $ cd /usr/local/lib $ sudo ln -s ../../lib/libSystem.B.dylib