kandi X-RAY | bash_profile Summary
kandi X-RAY | bash_profile Summary
bash_profile
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 bash_profile
bash_profile Key Features
bash_profile Examples and Code Snippets
Community Discussions
Trending Discussions on bash_profile
QUESTION
I followed a lot suggestions to add the interpreter to PyCharm, but they're simply not working. I want to figure out what the exact problem is here.
First, it said no interpreter is found, so I tried using Python 3.10 in Anaconda. But it seems "pip install packages" don't get used for Anaconda's Python. So, I used Terminal to get a different Python PATH: open -e .bash_profile
and to see which python versions
I have using python -v
, python3 -v
, which python
, which python3
. So, I wanted to input /usr/local/bin/python3
or /usr/bin/python
for the interpreter path.
The problem is that I can't add them at all... "Add Python Interpreter" doesn't let me click 'ok'.
Need to Add Python Interpreter
I watched lots of YouTube tutorials and went through relevant websites for suggestions, but nothing works. I even got rid of Python from all the folders manually (except the ones that didn't allow me to trash) and using Terminal as instructed (How to uninstall Python 2.7 on a Mac OS X 10.6.4?): sudo rm -rf Python
, sudo rm -rf "/Applications/Python 2.7"
,
ANSWER
Answered 2022-Mar-17 at 16:30The interface shown in your image is for creating a new python environment (i.e. virtual environment). It sounds like you want to use an existing environment. So click on the Existing environment
radia button in your image instead of New Environment
. Then navigate to the python
executable you want.
The prompts might make more sense to you if you click System Interpreter
on the left hand side, but that shouldn't be necessary.
QUESTION
I have been trying to install virt-manager on macOS Monterey.
I have ran these commands:
brew install libvirt
brew tap arthurk/homebrew-virt-manager
brew install virt-manager virt-viewer
during installation I received the following errors:
...ANSWER
Answered 2022-Mar-16 at 08:06There is an error as of current on macOS Monterey. There is a PR available that resolves the problem and for now I tested it on Intel mac and it works.
Here are the commands:
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 am a very new beginner in bash programming and never succeed in installing tools on my computer.
I am trying to install bedtools without any success
I typed these following commands on my terminal
...ANSWER
Answered 2022-Mar-05 at 17:07It looks like you accidentally downloaded and compiled the program under your my_bin
directory. That creates some potential for confusion, so I would recommend running the wget
and make
commands from a temporary directory, such as /tmp
or a tmp
directory under your home directory. As a result, the compiled binaries are now under /Users/avitrac/my_bin/bedtools2/bin
. I would recommend moving that directory outside of your my_bin
directory, perhaps to a ~/tmp
directory; you could then skip directly to step 5 below.
(You could leave it there and simply cp /Users/avitrac/my_bin/bedtools2/bin/bedtools ~/my_bin
, but that would leave the source code and compilation artifacts under your bin directory for no good reason).
mkdir ~/tmp
## if neededcd ~/tmp
wget https://github.com/arq5x/bedtools2/releases/download/v2.29.1/bedtools-2.29.1.tar.gz
make
cp bin/bedtools ~/my_bin/
The bedtools-2.29.1.tar.gz
file and bedtools2
directory can both be removed now. The "Compiling from source via Github" instructions gloss over this (fairly typical) use-case and omitted the explicit instructions to build the program in a temporary location.
QUESTION
after the upgrade to Monterey virtualenvwrapper doesn't behave. I've tried uninstalling it and re-installing it, deleting the old workspaces.
when I launch the mkvirtualenv this happens:
...ANSWER
Answered 2022-Feb-23 at 19:28I edited my file ~/.zprofile and changed the export:
QUESTION
Just got a new M1 Mac Mini and I have been having trouble running my Android projects.
I'm using Android Studio (Bumblebee), JDK 11 (tried 17 as well), and Gradle 7.3.
When I try to run the project from AS, it builds fine and then gets stuck on "Waiting for target device to come online" and eventually times out.
If I try to run the emulator again I get a message that the device is already running, including a path to a lock file.
However, I've found that if I run the emulator manually from the CLI, the emulator does open, at which point I can get AS to run the app on said emulator. So the problem is apparently just that AS can't open the AVD.
Command line output when running emulator via adelphia$ emulator -avd Pixel_3a_API_32_arm64-v8a
:
ANSWER
Answered 2022-Feb-02 at 15:36QUESTION
I have 7 different Android phones which all have different Android OS. All of them are facing the same disconnection problem. Devices are being disconnected approx after an hour later. When it's disconnected, Allow USB debugging?
pop-up appears twice and wants me to Allow the computer's RSA key fingerprint which was already approved. Also, under Connection Assistant
, the connected device turns into disconnected
state by Android Studio but adb reports it's in device
state.
Sometimes I can re-connect the device only if I click different USB Preferences. But it disconnects after some time later again.
I tried so many solutions to fix the device connection problem. I used to fix it usually with one of the solutions below. Unfortunately, the problem keeps persisting. I've never faced something like this before.
What I tried:
- Unplug and replug the USB cable. (tried different cables)
- Disable then enable USB debugging in the device settings.
- Tried different USB type-C ports
- Rebooting Devices
- Rebooting Android Studio and MacBook
- open
.android
and delete file named asadbkey
andadbkey.pub
adb kill-server
thenadb start-server
- Revoking USB debugging authorizations
- Removed
Android/sdk/build-tools
andAndroid/sdk/platform-tools
and reinstalled again. - Updated
bash_profile
like in below:
ANSWER
Answered 2021-Nov-25 at 15:22It's fixed after I updated my macBook to macOS Monterey.
EDIT:
I found the real reason why devices are being disconnected. If you try to inspect a webView in Chrome (chrome://inspect/#devices), Studio disconnects the connection of your devices after sometime
QUESTION
I am trying to execute a workflow mapping from within Informatica Workflow. The source being MSSQL Server
and target Oracle DB
. The mapping alike every other mapping seems to be referring to the system's /etc/odbc.ini
file rather than the one sitting in $INFA_HOME/ODBC7.1/odbc.ini
.
I've tried checking everything but can't seem to understand how this linking is getting established. I did many hit & trials to confirm which odbc.ini
was getting referred and it was always the one sitting under /etc/
. The bash_profile's
variable ODBCINI
is also pointing towards the INFA_HOME
location.
Can someone shed some light on how or why the system's odbc.ini
is getting referred. Any idea on how is it linked?
ANSWER
Answered 2022-Jan-12 at 08:28We need to set two odbc related parameters in unix/linux users bash profile.
QUESTION
ANSWER
Answered 2022-Jan-03 at 14:00After a couple of hours digging, there's a better way to do this:
Install the android-sdk library:
brew install --cask android-sdk
This then allows you to use the sdkmanager
to add any platform:
sdkmanager "platforms;android-30"
QUESTION
My objective is to write a CLI in Typescript/node.js, that uses --experimental-specifier-resolution=node
, written in yargs with support for autocompletion.
To make this work, I use this entry.sh
file, thanks to this helpful SO anwswer (and the bin: {eddy: "./entry.sh"}
options in package.json points to this file)
ANSWER
Answered 2021-Dec-30 at 11:05You can try specifying the scriptName in your entry.js
file to the name of your wrapper script. This may force generation of completion name using it. I haven't tried it but looking at the source code of yargs, it looks like the $0
parameter can be altered using scriptName
, which in turn will affect how the completion-generation function generate the completion code:
In yargs-factor.ts
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bash_profile
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