Products Resources Support About Us

Help with errors using PIP

Hi all!
I get errors when I try to use PIP. I have UV 11.3.1 on Windows 10 and if I try to run pip.exe, I get the following error:

C:\U2\UV\python\Scripts>pip.exe
Fatal error in launcher: Unable to create process using '“C:\Python34\python.exe” “C:\U2\UV\python\Scripts\pip.exe” ’

I don’t understand why it refers to C:\Python34 as that is not in the path. I tried to fix that by creating a symbolic link “C:\python34” which points to “C:\u2\uv\python”. Now when I try to run PIP, I get a different error:

Traceback (most recent call last):
File “C:\Python34\lib\runpy.p y”, line 170, in run_module_as_main
"main", mod_spec)
File “C:\Python34\lib\runpy.p y”, line 85, in run_code
exec(code, run_globals)
File "C:\U2\UV\Python\Scripts\pip.exe_main
.py", line 5, in
File "C:\Python34\lib\site-packages\pip_init
.py", line 13, in
from pip.commands import commands, get_summaries, get_similar_commands
File “C:\Python34\lib\site-packages\pip\commands_init_.py”, line 6, in
from pip.commands.bundle import BundleCommand
File “C:\Python34\lib\site-packages\pip\commands\bundle.p y”, line 6, in
from pip.commands.install import InstallCommand
File “C:\Python34\lib\site-packages\pip\commands\install.p y”, line 5, in
from pip.req import InstallRequirement, RequirementSet, parse_requirements
File “C:\Python34\lib\site-packages\pip\req_init_.py”, line 3, in
from .req_install import InstallRequirement
File “C:\Python34\lib\site-packages\pip\req\req_install.py”, line 35, in
from pip.utils import (
File “C:\Python34\lib\site-packages\pip\utils_init_.py”, line 100, in
def rmtree(dir, ignore_errors=False):
File “C:\Python34\lib\site-packages\pip_vendor\retrying.p y”, line 47, in wrap
@six.wraps(f)
AttributeError: ‘module’ object has no attribute ‘wraps’

Does anyone know what might be causing the errors and how I can fix them?

Thanks,
Ross.

Hi Ross, do you want to try posting this to the Python sub-channel? https://forum.rocketsoftware.com/c/MV/Python
In the mean time, I’ll see if I can help get this answered.

Simple thing to do to check what version of Python you are using, and where it is on the system is to start a cmd prompt and enter python.

i.e.
C:\Users\mrajkowski>python
Python 3.6.0 |Anaconda 4.3.1 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

import sys
print(sys.executable)
C:\ProgramData\Anaconda3\python.exe

Note in my example, I had Anaconda loaded on my laptop as well as the UniVerse python, which was in my PATH environment variable.

Put the following at the beginning of the PATH:
C:\U2\UV\Python;c:\U2\UV\Python\Scripts;c:\U2\UV\Python\Library\bin;

( Note if you did not install UniVerse in the default path, please modify the above as needed )

I then bring up the correct python version:
C:\Users\mrajkowski>python
Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

import sys
print(sys.executable)
C:\U2\UV\Python\python.exe

At this point pip should work, if you are still having an issue, please open a support case.

Mike

Hi all.
Pete and Michael, thanks for the replies. I got it going in the end by reinstalling Universe, simply so I could get a fresh installation of Python.

After getting it going I had a problem upgrading PIP because it was complaining about the SSL certificate:
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

I got around that with the --trusted-host option:
pip install -U pip --trusted-host pypi.python.org

I also had the same problem using PIP to install another library from PyPi and the --trusted-host option got around that too.

So, I’m up and running.

Before I go, another query. Is it possible to uninstall / reinstall just the Python feature of a Universe installation?

Thanks again.

Cheers,
Ross.

Ross,

The question about the ability to uninstall and reinstall just python is interesting.

At this time, it is not part of the install wizard.

I have asked engineering to look into this, and created an enhancement request, to allow the uninstall and reinstall just Python.

Mike

Thanks Mike,
I’m interested to hear what they have to say.

Regards,
Ross.