noots | A command line note taking tool | Command Line Interface library
kandi X-RAY | noots Summary
kandi X-RAY | noots Summary
A command line note tool that doesn't involve terminal based editors, and does involve python and YAML.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Display a note
- Return a YAML file
- Write data to YAML file
- Clear all the notes
- Show the saved notes
- Remove a single note
- Show a specific note
- Show notes
noots Key Features
noots Examples and Code Snippets
Community Discussions
Trending Discussions on noots
QUESTION
I had a problem where python
was not finding modules installed by pip while in the virtualenv.
I have narrowed it down, and found that when I call python
when my virtualenv in activated, it still reaches out to /usr/bin/python
instead of /home/liam/dev/.virtualenvs/noots/bin/python
.
When I use which python
in the virtualenv I get:
/home/liam/dev/.virtualenvs/noots/bin/python
When I look up my $PATH
variable in the virtualenv I get:
bash: /home/liam/dev/.virtualenvs/noots/bin:/home/liam/bin:/home/liam/.local/bin:/home/liam/bin:/home/liam/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin: No such file or directory
and yet when I actually run python
it goes to /usr/bin/python
To make things more confusing to me, if I run python3.5
it grabs python3.5 from the correct directory (i.e. /home/liam/dev/.virtualenvs/noots/bin/python3.5
)
I have not touched /home/liam/dev/.virtualenvs/noots/bin/
in anyway. python
and python3.5
are still both linked to python3
in that directory. Traversing to /home/liam/dev/.virtualenvs/noots/bin/
and running ./python
, ./python3
or ./python3.5
all work normally.
I am using virtualenvwrapper
if that makes a difference, however the problem seemed to occur recently, long after install virtualenv
and virtualenvwrapper
ANSWER
Answered 2017-Jan-07 at 17:47As tdelaney suggested in the comments, I ran alias
and found that I had previously aliased python
to /usr/bin/python3.5
in my .bashrc
.
I removed that alias from my .bashrc
, ran unalias python
, and source ~/.bashrc
and the problem was solved.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install noots
Grab noots.py
Place it somewhere that's in your bash's $PATH. Either /bin, /usr/bin or ~/bin
Add this line to your .bashrc alias section (which is probably in ~/) -> alias noots='noots.py'
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