Can't install mongoctl - pip

I'm working on a 13" MacBook Pro running OS X 10.8.5. I'm trying to install mongoctl with the following command:
sudo pip install mongoctl
But I keep getting an error when downloading and unpacking argparse1.2.1. I've tried installing mongoctl with and without sudo but the result has been the same. Here's the error I'm getting:
Downloading/unpacking argparse==1.2.1 (from dargparse->mongoctl)
Could not find a version that satisfies the requirement argparse==1.2.1 (from dargparse- >mongoctl) (from versions: 0.1.0, 0.9.0, 0.8.0, 0.7.0, 0.6.0, 0.9.1, 0.5.0, 0.4.0, 0.2.0, 1.0, 1.0.1, 1.1, 0.3.0)
Some externally hosted files were ignored (use --allow-external to allow).
Cleaning up...
No distributions matching the version for argparse==1.2.1 (from dargparse->mongoctl)
I installed arparse1.1 manually but don't know how to use it for this installation. Any help is much appreciated.
-Mike

I ran into a similar issue on 10.7.5 OS X. Instead of the --allow-external, I tried --allow-all-external and it seems to have worked. Or if you did --allow-external, I think you need to include which of the packages to allow.

Related

Ruby Install failed on MacBook Pro M1

Am trying to install Ruby on MacBook M1 but it failed every time,
Command used: rvm install ruby 2.7.2 (none of the version worked)
Error running '__rvm_make install',
please read /Users/myName/.rvm/log/1641910054_ruby-2.7.2/install.log
There has been an error while running make install. Halting the installation.
And after checking logs, I found
*** Following extensions are not compiled:
gdbm:
Could not be configured. It will not be installed.
Check ext/gdbm/mkmf.log for more details.
openssl:
Could not be configured. It will not be installed.
Check ext/openssl/mkmf.log for more details.
*** Fix the problems, then remove these directories and try again if you want.
I have also tried other version managers like asdf but no luck.
Background: HomeBrew installed successfully, paths also set, rvm also installed. Command line tools for Xcode also installed, using latest version of Xcode 13.2.1 and latest macOS Monterey 12.1.
I think maybe rvm just doesnt work properly on m1 yet? Try just using brew install ruby for now. It should work the same.

Getting the error "No matching distribution found for httpstan"

When I try to install auto-ts package(pip install auto-ts) in Anaconda prompt, i am getting the following error message.
ERROR: Could not find a version that satisfies the requirement httpstan<4.5,>=4.4 (from pystan>=2.14->fbprophet->auto-ts) (from versions: 0.2.5, 0.3.0, 0.3.1, 0.4.0, 0.5.0, 0.6.0, 0.7.2, 0.7.3, 0.7.5, 0.7.6, 0.8.0, 0.9.0, 0.10.1, 1.0.0)
ERROR: No matching distribution found for httpstan<4.5,>=4.4 (from pystan>=2.14->fbprophet->auto-ts)
I have also tried with the following command and upgraded the pip but faced same problem.
Note: I also got No matching distribution error for the below commands. Anybody faced the same issue?
pip install fbprophet
pip install pystan==2.17.1.0
The problem arises from missing wheel formats in older versions of pip. A simple pip update should solve the issue.
pip install -U pip

Unable to install tensorflow==2.0.0beta1: wrapt conflict

I want to install tensorflow2.0.0 but I can't even install tensroflow1.14.0.
I am using macbook pro. I kept running into problems that some packets version are not compatible. I then tried to uninstall certain packets then reinstall them but it didn't work.
Error message:
ERROR: thinc 6.12.1 has requirement msgpack<0.6.0,>=0.5.6, but you'll have msgpack 0.6.1 which is incompatible.
ERROR: thinc 6.12.1 has requirement wrapt<1.11.0,>=1.10.0, but you'll have wrapt 1.11.2 which is incompatible.
Installing collected packages: wrapt, tensorflow
Found existing installation: wrapt 1.10.10
ERROR: Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Execute the below command:
pip install wrapt==1.10.0 --ignore-installed

Updating Ruby Mac OS 10.6.8 Snow Leopard

I'm trying to install a more recent version of Ruby on Snow Leopard so I can install Jekyll. When trying to install any version of Jekyll I get an error saying that it requires liquid, which requires ruby v2+.
If I try upgrade via rbenv I get the following when trying all versions:
error: failed to download ruby-2.1.1.tar.bz2
BUILD FAILED (OS X 10.6.8 using ruby-build 20181019)
I've also installed Ruby manually from source but this isn't recognised by the system and I can't switch versions.
If i run rbenv global it only recognises the System version of Ruby.
When I try brew upgrade ruby I get the following error:
ruby 2.5.3_1 already installed
If I try link to the new version with brew I get the following error:
brew link --force --overwrite ruby#2.5.3_1
Error: No such keg: /usr/local/Cellar/ruby#2.5.3_1
RVM doesn't install so I'm not sure what to do next. Below are the details of the packages I have installed.
Xcode 3.2.2 (I cant get an installer working for any higher versions of Xcode). The more recent versions hosted by Apple for Snow Leopard are corrupt when downloaded.
rbenv 1.1.1
brew 1.8.4
ruby 1.8.7 (System)
You have (or had) a path issue. Before you did your follow up steps, if you had run which ruby you'd probably see it pointing to /usr/bin/ruby which is system ruby, not your homebrew ruby in /usr/local/bin/ruby.
You still need to, if you haven't already, add your export command to your ~/.bash_profile file to ensure your PATH gets updated for every terminal window you open.
I'm not sure what actually fixed this but I ran the following commands after reading other posts and now have Jekyll 3.8.3 installed and ruby 2.5.3p105.
sudo chown -R "$USER":admin /usr/local
export PATH=/usr/local/bin:$PATH
brew link --overwrite ruby --force
gem install jekyll

how to uninstall geos in macosx

How do I uninstall geos in mac osx
When i do
sudo uninstall geos
I get this error
Uninstall Began...
Uninstall Failed...
Reason: ErrorMissingBundle
I have to uninstall it propely because I need to install a newer version . When I installed a newer version even the it shows
geos-config --version
3.1.1
It was present somewhere in my system. Installation for a new one was successful for some features of postgis is not working and and they are picking up 3.1.1 geos.
I will thankful if someone helps me out here.

Resources