cellar | experiment to do a pkg manager for salt formulas | DevOps library
kandi X-RAY | cellar Summary
kandi X-RAY | cellar Summary
Cellar is an experiment to see if I can make the pip of [salt] formulas which absence if for me the biggest weakness of salt. Cellar is at its very early stage of development. You need git to be installed for this to run.
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 cellar
cellar Key Features
cellar Examples and Code Snippets
Community Discussions
Trending Discussions on cellar
QUESTION
I'm trying to get a project I have up and running on a Linux Ubuntu machine on a new MacBook Pro but I'm getting the following error when running pip install mysqlclient
within a virtual environment. Please not, it install within issue in the main environment. I'm new to iOS so not sure where to go
ANSWER
Answered 2021-Jun-09 at 15:37this worked for me
QUESTION
I read data from a file that I want to fit into a structure. This structure contains an array of variable size. So I am using realloc to fill it on the fly. Unfortunately my program fails. Valgrind reports a pb with realloc:
...ANSWER
Answered 2021-Jun-08 at 19:41You initialize count_ligne
to 0
QUESTION
I'm trying to install an older version of CMake to compile a software that requires it (https://github.com/horosproject/horos)
If you use brew install cmake
it will install 3.20 versions, but I need to install 3.19.2 to get the compilation to work.
You would think this would be easy but I have been struggling. Here are some things I have tried:
...ANSWER
Answered 2021-Jun-07 at 01:27brew install ./cmake.rb
will try to install a bottle, which obviously doesn't exist anymore. Try installing from source with brew install -s ./cmake.rb
.
QUESTION
Simply put: I want to list the last N packages I've installed with Homebrew.
What is the best (and possibly fastest) way to accomplish this?
Note that I'm not fluent in Ruby, so any suggestions to 'hack the Homebrew code to do what you want' would get me nervous...
What I tried so far- Read man pages, documentation, the Homebrew website, StackOverflow, googled with all sorts of variant questions, etc. No luck so far.
brew info [formula|cask]
will actually tell the date when a formula/cask has been poured (which I assume means 'installed' outside the Homebrewosphere). So that value must be written somewhere — a database? a log?- Maybe there is an option to extract the poured date information via the JSON API? But the truth is that with Homebrew 3.1.9-121-g654c78c, I couldn't get any
poured-date
or similar element on the JSON output... the only dates that I get are related togit
(presumably because they're more useful for Homebrew's internal workings). This would, in theory, be able to tell me what are the 'newest' versions of the formulae I have installed, but not the order I have installed them — in other words, I could have installed a year-old version yesterday, and I don't need to know that it's one year old, I only want to know I've installed it yesterday!
Although I couldn't figure out how to retrieve that information, I'm sure it is there, since brew info ...
will give the correct day a particular formula was poured. Thus, one possible solution would be to capture all the information from brew info
and then do a grep
on it; thus, something like brew info | grep Poured
should give me what I want. Needless to say, this takes eternities to run (in fact, I never managed to complete it — I gave up after several minutes).
Of course, I found out that there is a brew info --installed
option — but currently, it only works with JSON output. And since JSON output will not tell the poured date, this isn't useful.
A possibility would be to do it in the following way:
- Extract all installed package names with
brew info --installed --json=v1 | jq "map(.name)" > inst.json
- Parse the result so that it becomes a single line, e.g.
cat inst.json | tr -d '\n\r\[\]\"\,'
- Now run
brew info --formula
(treat everything as a formula to avoid warnings) with that single line, pipe the result in another file (e.g.all-installed.txt
) - Go through that file, extract the line with the formula name and the date, and format it using something like
cat all-installed.txt | sed -E 's/([[:alnum:]]+):? stable.*\n(.*\n){3,7}^ Poured from bottle on (.*)$/\1 -- \3\\n/g' | sort | tail -40
— the idea is to have lines just with the date and the formula name, so that it can get easily sorted [note: I'm aware that the regex shown doesn't work, it was just part of a failed attempt before I gave up this approach]
Messy. It also takes a lot of time to process everything. You can put it all in a single line and avoid the intermediary files, if you're prepared to stare at a blank screen and wait for several minutes.
The quick and dirty approachI was trying to look for a) installation logs; b) some sort of database where brew
would store the information I was trying to extract (and that brew info
has access to). Most of the 'logs' I found were actually related to patching individual packages (so that if something goes wrong, you can presumably email the maintainer). However, by sheer chance, I also noticed that every package has an INSTALL_RECEIPT.json
inside /usr/local/Cellar/
, which seems to have the output of brew info --json=v1 package-name
. Whatever the purpose of this file, it has a precious bit of information: it has been created on the date that this package was installed!
That was quite a bit of luck for me, because now I could simply stat
this file and get its creation timestamp. Because the formula directories are quite well-formed and easy to parse, I could do something very simple, just using stat
and some formatting things which took me an eternity to figure out (mostly because stat
under BSD-inspired Unixes has different options than those popular with the SysV-inspired Linux).
For example, to get the last 40 installed formulae:
...ANSWER
Answered 2021-Jun-06 at 05:31The "brew list" command has a -t option:
Sort formulae and/or casks by time modified, listing most recently modified first.
Thus to get the most recent 40, you could write:
QUESTION
I'm attempting to get qmk working. After installing via brew install qmk/qmk/qmk/
, I run qmk setup
I get this error.
...ANSWER
Answered 2021-Jun-03 at 03:03Try updating qmk - had the same issue with 0.0.45 but worked with 0.0.51.
try brew upgrade qmk/qmk/qmk
QUESTION
I have be trying to install azure cli in new mac m1. But it fails. I get the following error
...ANSWER
Answered 2021-Jun-03 at 01:41As mentioned in the comments: My python3 wasn't installed via brew. So first uninstalled brew and python3. Then installed brew again(before that made sure Rosetta 2 is working). Then tried brew doctor. There was error saying /usr/... then, I deleted those files. Once successfully removed/deleted brew doctor will run fine.
QUESTION
I'm unable to install matplotlib through pip on my M1 Mac. I have Python 3.9.1 installed through Homebrew. I've tried the solution here: Pip install matplotlib fails on M1 Mac but it does not work for me.
I get this long error:
...ANSWER
Answered 2021-Feb-17 at 03:11I solved this by just uninstalling homebrew first and downloaded matplotlib with python3. After that i reinstalled homebrew using non-rosetta terminal. Idk how it works cause im very new to these stuff but what works works i guess.
QUESTION
When install it by pip(pip install pipenv
), on zsh shell can't find the command pipenv
.
If install it by brew
: brew install pipenv
, then run pipenv shell
, got error
ANSWER
Answered 2021-May-28 at 12:43You're asking two questions, really. I'll answer each in a separate section below:
How to fix that errorQUESTION
I have a Django 2.2.23 app, running on Python 3.9.4. I have django-extensions 2.2.9.
I have a model that has a django_extensions.db.fields.json.JSONField
attribute (which, AFAIK, is just a text field auto-serialized). I mention this because when the JSON is deserialized, the django-extensions library does it like this:
ANSWER
Answered 2021-May-27 at 14:26You are seeing this error because the argument encoding
was removed from json.loads
in Python 3.9 (it was deprecated since Python 3.1).
django-extensions 2.2.9, the version you are using, was released in March 2020, Python 3.9 was released in October 2020.
This particular issue should be fixed in django-extensions 3.0, but Python 3.9 was only added to the test suite in django-extensions 3.1.1, so I'd suggest updating to the latest version.
QUESTION
I got my new Macbook Pro which has M1 chip.
I tried to run my react native project but stucked on pod install.
After that, I created an empty project and tried on that still getting the same error.
...ANSWER
Answered 2021-Jan-31 at 18:25I realized that homebrew installation messed up cocoapods.
Simply, I uninstalled homebrew and start from beginning. Then it worked.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cellar
You can use cellar like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
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