MacGPG2 | GnuPG 2 for macOS
kandi X-RAY | MacGPG2 Summary
kandi X-RAY | MacGPG2 Summary
GnuPG 2 for macOS
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of MacGPG2
MacGPG2 Key Features
MacGPG2 Examples and Code Snippets
Community Discussions
Trending Discussions on MacGPG2
QUESTION
I'm freshly using rvm for running a legacy project.
I installed rvm fine. Running which ruby
gives the correct rvm version:
ANSWER
Answered 2022-Mar-15 at 20:26I'll bet your RVM isn't set up correctly and /usr/bin/
appears in your PATH
before RVM's bin directory. Run echo $PATH
to confirm.
If so, back up your dotfiles for safety and run rvm get head --auto
and it should put your PATH right. Logout and log back in or source your dotfiles (source ~/.bash_profile
or whatever) and try again.
QUESTION
When I try to run the (simplified/illustrative) Spark/Python script shown below in the Mac Terminal (Bash), errors occur if imports are used for numpy
, pandas
, or pyspark.ml
. The sample Python code shown here runs well when using the 'Section 1' imports listed below (when they include from pyspark.sql import SparkSession
), but fails when any of the 'Section 2' imports are used. The full error message is shown below; part of it reads: '..._multiarray_umath.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')
. Apparently, there was a problem importing NumPy 'c-extensions' to some of the computing nodes. Is there a way to resolve the error so a variety of pyspark.ml
and other imports will function normally? [Spoiler alert: It turns out there is! See the solution below!]
The problem could stem from one or more potential causes, I believe: (1) improper setting of the environment variables (e.g., PATH
), (2) an incorrect SparkSession
setting in the code, (3) an omitted but necessary Python module import, (4) improper integration of related downloads (in this case, Spark 3.2.1 (spark-3.2.1-bin-hadoop2.7), Scala (2.12.15), Java (1.8.0_321), sbt (1.6.2), Python 3.10.1, and NumPy 1.22.2) in the local development environment (a 2021 MacBook Pro (Apple M1 Max) running macOS Monterey version 12.2.1), or (5) perhaps a hardware/software incompatibility.
Please note that the existing combination of code (in more complex forms), plus software and hardware runs fine to import and process data and display Spark dataframes, etc., using Terminal--as long as the imports are restricted to basic versions of pyspark.sql
. Other imports seem to cause problems, and probably shouldn't.
The sample code (a simple but working program only intended to illustrate the problem):
...ANSWER
Answered 2022-Mar-12 at 22:10Solved it. The errors experienced while trying to import numpy c-extensions involved the challenge of ensuring each computing node had the environment it needed to execute the target script (test.py
). It turns out this can be accomplished by zipping the necessary modules (in this case, only numpy
) into a tarball (.tar.gz) for use in a 'spark-submit' command to execute the Python script. The approach I used involved leveraging conda-forge/miniforge to 'pack' the required dependencies into a file. (It felt like a hack, but it worked.)
The following websites were helpful for developing a solution:
- Hyukjin Kwon's blog, "How to Manage Python Dependencies in PySpark" https://databricks.com/blog/2020/12/22/how-to-manage-python-dependencies-in-pyspark.html
- "Python Package Management: Using Conda": https://spark.apache.org/docs/latest/api/python/user_guide/python_packaging.html
- Alex Ziskind's video "python environment setup on Apple Silicon | M1, M1 Pro/Max with Conda-forge": https://www.youtube.com/watch?v=2Acht_5_HTo
- conda-forge/miniforge on GitHub: https://github.com/conda-forge/miniforge (for Apple chips, use the
Miniforge3-MacOSX-arm64
download for OS X (arm64, Apple Silicon).
Steps for implementing a solution:
- Install conda-forge/miniforge on your computer (in my case, a MacBook Pro with Apple silicon), following Alex's recommendations. You do not yet need to activate any conda environment on your computer. During installation, I recommend these settings:
QUESTION
I install postgres version 14 using homebrew.
...ANSWER
Answered 2021-Dec-20 at 21:34You must be using the 'dev' name in your connection string? Can you show us that? The default db in postgres is called postgres there is no dev database.
When connecting to a fresh install of Postgres entering psql
into the command line actually executes something like
QUESTION
I want to install pygame on my MacBook. I installed it with the command
...ANSWER
Answered 2021-Nov-03 at 15:52The answer turned out that I had to use python -m pip install -U pygame
instead of pip install pygame
so that Jupyter can find the module. I honestly do not know what is the difference, so maybe somebody can elaborate, but that's the solution for my problem.
QUESTION
Have been googling for days now.. Updated Xcode including command line tools as well, I've tried various SDKs, but unsuccessfully. Anyone out there who has found a solution yet? Any chance that the error is due to the fact that apple does't support 32bit programs anymore which results in various R packages not working..?
Thanks in advance!
My log from rstudio:
...ANSWER
Answered 2020-Jan-07 at 16:54> mkdir -p ~/opt/src
> cd ~/opt/src
> curl -O http://mirror.us-midwest-1.nexcess.net/gnu/gsl/gsl-2.6.tar.gz
> tar zxf gsl-2.6.tar.gz
> cd gsl-2.6
> ./configure --prefix=$HOME/opt/usr/local
> make
> make install
> export CFLAGS="-I$HOME/opt/usr/local/include"
> export LDFLAGS="-L$HOME/opt/usr/local/lib -lgsl -lgslcblas"
> R
R version 3.6.1 (2019-07-05) -- "Action of the Toes"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (64-bit)
...
...
> install.packages("gsl")
...
...
...
There is a binary version available but the source version is later:
binary source needs_compilation
gsl 1.9-10.3 2.1-6 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) yes
...
...
> install.packages("copula")
> library(copula)
>
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install MacGPG2
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page