Robot Framework installation issue - python

Whenever i try to install Robot Framework. I am getting the error message below.
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
What is the issue?
I am installing robotframework-2.6.3.win32 with python2.7.2

I'm not sure what is causing your specific issue, but I find that using pip or easy_install works for installing robotframework and any plugins on windows

Do you change your installed Python folder name ? Please use internal set-up command line in Python for adding plugin.

I'm assuming from the win32 extension that this is for Windows. In which case I would suggest checking installing with pip which can be found in section 1.3.3
http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html

Check if pip is installed with your python version
pip --version
Else use below link to install
https://pip.pypa.io/en/stable/installing/
once pip is installed , you can try to install robotframework with specific version like below
pip install MySQL_python==1.2.2

I'm not sure the cause for your issue. but you are trying to install an older version of Robot framework on an Older python build. I suggest you to try a newer version such as 'Robot Framework 3.2.2 (Python 3.7.9 on win32)'. Then, it's easy since pip is installed by default if you are using Python 2 >=2.7.9 or Python 3 >=3.4. (you can check by > "py -m pip --version")
Installing Robot Framework is just a two-step process now.
install python from https://www.python.org/downloads/
install robotframework from https://pypi.org/project/robotframework/ > "pip install robotframework" (You can check the version by > "robot --version")
Read more - https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#installation-instructions

Related

How do I install python package tobii_research?

I am trying to install tobii_research for a project and I was following the instructions on http://developer.tobiipro.com/python/python-getting-started.html
I already have python 3.7.6 and pip 21.1.2 installed on my Mac.
When I run pip install tobii-research I get:
ERROR: Could not find a version that satisfies the requirement tobii_research (from versions: none)
ERROR: No matching distribution found for tobii-research
Was there something I forgot to install?
I can not for the life of me figure out how to install this manually either.
Help with pip, or installing manually would be greatly appreciated, but you might have to explain it to me like I am stupid.
Thanks in advance.
It appears that you are not running the correct python version for the versions of the package that are available. If you look at the wheel files available on the tobii-research Downloads page, the software is packaged for either python 2.7 or 3.6.
When trying to install this package myself, I get the same error message as you when trying to install it for python 3.8, but the package installs successfully with my python 2.7 installation.
I would recommend installing a compatible version of python and then running pip through that version using the following command:
[specific_python_installation] -m pip install tobii-research
Try doing it with pip again, but replace the underscore with a hyphen as shown below:
pip install tobii-research
I saw on the PyPi website that they only have it for Python 3.8, so I downloaded that Python version from their official website and installed it (do not add it to path).
Then, I created a virtual environment selecting 3.8 as the Python version (refer to this answer) and activated that virtual environment.
Finally, I run pip install tobii_research and it worked.
One thing that helped me - required Python version. For example, for the version 1.10.2 (which is current at the moment of writing this) only Python 3.10 is supported. Check the list of files distributed within this version.
I was able to install the package on Windows with Python 3.10 but on MacOS I had the same problem and wasn't able to resolve this - I assume it's a problem with the architecture, as there is no version for arm64 if you have a Mac with M1 processor.

Pip install database command is not working for Python 3.8.0

I have installed Python 3.8 and using it with Pycharm; moreover, I am working with mongodb for which i have to install "pip install database" which provides the following error:
ERROR: Could not find a version that satisfies the requirement database (from version:none)
Moreover, Pycharm proposed a solution:
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'E:\Python set up file\python.exe'.
Any suggestions how could I fix this problem and install it properly?
I think you are looking for pip install databases but not pip install database
ref: https://pypi.org/project/databases/

Installing packages in Python 3.8 - pip fatal error, seems to be stuck on 3.6 somehow

I am running Python 3.8.3. Previously I had Python 3.6 installed.
When I try to install by pip e.g.
pip install requests
I get the error
Fatal error in launcher: Unable to create process using '"c:\users\myname\appdata\local\programs\python\python36\python.exe" "C:\Users\MyName\AppData\Local\Programs\Python\Python36\Scripts\pip.exe" install requests'
Uninstalling Python 3.6 did not resolve this. I also tried reinstalling pip from https://pypi.org/project/pip/#files.
How can I get pip working again so I can install packages again?
On a side note, the reason I installed 3.8.3 in the first place instead of continuing with 3.6 was that Windows opened its app store any time the python command was used in PowerShell. I figured I might as well download the new version, since at the time I saw no reason to fight it. Still, it would be nice to know how to stop Windows from commandeering this.
If typing python in your command prompt opens python 3.6 then try py -3 or another possible PATH variable you have set for python 3.8
then to use pip for just that python version do the following command
[PATH VARIABLE] -m pip install [py-package]
e.g.
python -m pip install requests
When you are runing pip install requests, it runs the first pip it finds on th path. You can see from the error message, that it is using c:\users\myname\appdata\local\programs\python\python36\python.exe, so you are not really installing anything for Python 3.8.
If running python on your computer runs Python 3.8, then I suggest using this option to run pip:
python -m pip install requests
And if you have to enter full path to start python3.8, than do that:
/full/path/to/python.exe -m pip install requests

Installation: Reportlab: "ImportError: No module named reportlab.lib"

I've installed reportlab, via
pip install reportlab
(also tried via
easy_install reportlab
)
..but I get the above error. There are other RL imports before that - it's the .lib that it's objecting to. I've had RL working great in the past, but IT reimaged my computer, and I'm trying to rebuild it. The script works fine, but there's something funky with the RL install, I think.
Reportlab: 3.3.0
Most of the times errors like this are caused by an broken package, either in the package it self or in one of it's dependencies.
The best way to resolve such a issue is to force-reinstall the package, it will reinstall the package and its dependencies potentially repairing the package.
To force-reinstall reportlab use:
pip install --upgrade --force-reinstall reportlab
If the above solution doesn't work for you then make sure you dont have any other module named reportlab.py in your current directory.
Another alternative you can do this in windows commandline
pip uninstall reportlab
then create an account for reportlab here is the link https://www.reportlab.com/accounts/register/
then copy paste this in the windows commandline
pip install -ihttps://www.reportlab.com/pypi -U reportlab
when it prompts you for a user and password use the one you just registered
Download the latest version of python, ensure it's a 64-bit python package, and change the python interpreter in VSC.
View - Command Pallette - Type "Select Interpreter" - Click it and choose for example "Python 3.8.0 64-bit"
It's also a good idea to install the latest version:
pip install reportlab==3.6.11
Check if you have 2 versions of Python - That is 2.7 and 3 - in which case you would need to run pip3 instead of pip to run Python3 code
The best way to install ReportLab is use their .exe installer. They have installers for 32bit and 64bit.
https://pypi.org/project/reportlab/2.7/
may be you are missing the module try below command for the same:
pip install --upgrade --force-reinstall reportlab

How to upgrade easy_install to easy_install-3.4?

I just upgraded python to version 3.4. However, the pip wasn't installed by default for some reason. So I'm trying to install pip using the command "sudo easy_install pip." But when I typed the command, it gives me an error:
python version 3.4.0 can't run /usr/bin/easy_install. Try the alternative(s):
/usr/bin/easy_install-2.5 (uses python 2.5)
/usr/bin/easy_install-2.6 (uses python 2.6)
/usr/bin/easy_install-2.7 (uses python 2.7)
Run "man python" for more information about multiple version support in
Mac OS X.
So, I looked through online to find out how to update easy_install to version 3.4, but I could not find any source. Does anyone know how to update the version of easy_install?
To cut to the problem of pip, you can just use the get-pip.py script from the pip site.
Download the file: https://raw.github.com/pypa/pip/master/contrib/get-pip.py
And then run python get-pip.py, provided your account has administrator access.
Source: http://pip.readthedocs.org/en/latest/installing.html#install-or-upgrade-pip
I know this question is a bit old, but I just upgraded to python 3.4.2 on my Mac and running 'pip install ' wasn't working for me either.
I found this link: https://www.python.org/dev/peps/pep-0439/
which says to use 'pip3' instead of 'pip' and this worked perfectly for me.

Categories

Resources