Poltergeist 1.9.0 w/Ruby 1.9.3 - poltergeist

The doc says that Poltergeist 1.9.0 should work with Ruby 1.9.3 or higher, but I'm getting an install error when I try to install Poltergeist 1.9.0 on Ubuntu with Ruby 1.9.3. Is there a workaround other than upgrading Ruby?
PS. I'm also using Cucumber 1.3.19 and Capybara 2.4.4.
# gem --version
1.8.23
# ruby --version
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
# gem install poltergeist
ERROR: Error installing poltergeist:
mime-types-data requires Ruby version >= 2.0.
# gem install poltergeist 1.9.0
Fetching: poltergeist-1.9.0.gem (100%)
Fetching: mini_portile2-2.0.0.rc2.gem (100%)
Fetching: mime-types-data-3.2016.0221.gem (100%)
ERROR: Error installing poltergeist:
mime-types-data requires Ruby version >= 2.0.
ERROR: Could not find a valid gem '1.9.0' (>= 0) in any repository

Add mime-types to your Gemfile with a < 3.0 version restriction

Related

Python / Why can't I install last version of Pyarrow?

When I try to install in my virtual env pyarrow, by default this command line installs the version 6.0.1
python -m pip install pyarrow
When I try to upgrade this command produces an error
python -m pip install pyarrow==7.0.0
ERROR: Could not find a version that satisfies the requirement
pyarrow==7.0.0 (from versions: 0.4.1, 0.5.0, 0.6.0, 0.7.0, 0.7.1,
0.8.0, 0.9.0, 0.10.0, 0.11.0, 0.11.1, 0.12.0, 0.12.1, 0.13.0, 0.14.0, 0.15.0, 0.15.1, 0.16.0, 0.17.0, 0.17.1, 1.0.0, 1.0.1, 2.0.0, 3.0.0, 4.0.0, 4.0.1, 5.0.0, 6.0.0, 6.0.1) ERROR: No matching distribution found for pyarrow==7.0.0
In the official page, last version is 9.0.0
My python version is 3.6.6
What could be the cause ?
As you can see from the line in https://github.com/apache/arrow/blob/e90472e35b40f58b17d408438bb8de1641bfe6ef/python/setup.py#L621, pyarrow>=7 requires Python>=3.7. Thus you won't be able to use it with Python 3.6.x. Thus if you want to use a newer pyarrow version, you also need to update your Python version.

Python Dependency satisfied but pip still complains for zope.interface==4.6.0

While installing all the packages, I am getting no matching version error for zope.interface package even though the version is present in the list.
ERROR: Could not find a version that satisfies the requirement zope.interface==4.6.0 (from versions: 3.3.0b1, 3.3.0b2, 3.3.0, 3.3.0.1, 3.4.0b1, 3.4.0, 3.4.1, 3.5.0, 3.5.1, 3.5.2, 3.5.3, 3.6.0, 3.6.1, 3.6.2, 3.6.3, 3.6.4, 3.6.5, 3.6.6, 3.6.7, 3.6.8, 3.7.0, 3.8.0, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.2.0, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.5.0, 4.6.0, 4.7.0, 4.7.1, 4.7.2, 5.0.0, 5.0.1, 5.0.2, 5.1.0, 5.1.1, 5.1.2, 5.2.0, 5.3.0a1, 5.3.0, 5.4.0).
ERROR: No matching distribution found for zope.interface==4.6.0
As seen above the version to-be-installed is present in the from-versions list but pip still complains and errors out.
What is going wrong here ?
I am on Python 3.9.5 with pip 21.1.1
I just resolved a similar thing. You didn't paste this as part of your error message, so we may be different, but just in case:
The causative issue for me here was related to setup tools. Specifically, in the error output, I got an error ending with ImportError: cannot import name 'Feature' from 'setuptools'.
It appears that zope.interface<5.0.0 relies on a deprecated API from setuptools, so pip throws away the matching distribution once it errors out. Pinning setuptools to version 45, or using zope.interface==5.0.0 or later, should resolve this.
See https://github.com/pypa/setuptools/issues/2017.

Install Tensorflow 2.2 on linux

I have GNU/Linux box, I am trying to install Tensorflow 2.2. Currently I have
python3.6 --version
Python 3.6.12
and when I try to run my code it says
ImportError: Keras requires TensorFlow 2.2 or higher. Install TensorFlow via `pip install tensorflow`
So when I try to install Tensorflow 2.2
sudo pip-3.6 install --upgrade tensorflow==2.2.0
Collecting tensorflow==2.2.0
Could not find a version that satisfies the requirement tensorflow==2.2.0 (from versions: 0.12.1, 1.0.0, 1.0.1, 1.1.0rc0, 1.1.0rc1, 1.1.0rc2, 1.1.0, 1.2.0rc0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.4.1, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.1, 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7.0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1.9.0rc1, 1.9.0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0, 1.10.1, 1.11.0rc0, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.12.0rc0, 1.12.0rc1, 1.12.0rc2, 1.12.0, 1.12.2, 1.12.3, 1.13.0rc0, 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 2.0.0a0, 2.0.0b0, 2.0.0b1)
No matching distribution found for tensorflow==2.2.0
I get the above error. Any idea how to fix this issue?
Update:
sudo pip-3.6 --version
pip 9.0.3 from /usr/lib/python3.6/dist-packages (python 3.6)
-Raj
Starting with Tensorflow 2.0 Google stopped providing manylinux1 wheels and switched to manylinux2010 which is probably not recognized by your pip because it's too old. Try to upgrade: sudo pip-3.6 install -U pip, then verify sudo pip-3.6 --version and retry sudo pip-3.6 install -U tensorflow==2.2.0
TensorFlow 2 packages require a pip version >19.0.
https://www.tensorflow.org/install

I am not able to install tensorflow=1.4.1

Hi when I run this commands
pip install tensorflow==1.4.1
It not run and give the following error
Could not find a version that satisfies the requirement tensorflow==1.4.1 (from versions: 0.12.0rc0, 0.12.0rc1, 0.12.0, 0.12.1, 1.0.0, 1.0.1, 1.1.0rc0, 1.1.0rc1, 1.1.0rc2, 1.1.0, 1.2.0rc0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.1, 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7.0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1.9.0rc1, 1.9.0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0)
No matching distribution found for tensorflow==1.4.1
please tell me that how I can install in cpu
This post is probably related to Tensorflow installation on Windows.
Tensorflow 1.4.1 was not built for Windows since changes introduced between 1.4.0 and 1.4.1 do not affect the behaviour of Tensorflow on Windows platform. If you want to have a compatible version of tensorflow, version 1.4.0 seems to be a logical choice.
So if running on Windows try instead
pip install tensorflow==1.4.0
This issue has been discussed on Tensorflow issue tracker as #15342.

error in installing knife-ec2 plugin

While installing knife-ec2 plugin.I am facing the following issue:
root#ip-10-ggg-ff-abc:/opt/chef/embedded/bin# gem install knife-ec2
ERROR: Error installing knife-ec2:
mime-types requires Ruby version >= 1.9.2.
I think the error is very clear...
One of the gems for knife-ec2 requires a certain Ruby version (1.9.2 or higher). You are running a version of Ruby less than 1.9.2. Upgrade the Ruby in your omnibus package or use a Ruby version manager to install a newer Ruby.

Resources