Cant use browser.send_keys("{tab}") in Watir- Load Error - watir

I am not able to identify Rich TextBox using Watir. So I tried to use browser.send_keys(“{tab}”) to press tab. But that produces an error. I tried uninstalling ffi-1.0.10-x86-mingw32.gem and installing ffi –v 1.0.9 but that doesn’t work. I am getting an error like this:
irb(main):013:0> browser.send_keys("{tab}")
LoadError: cannot load such file -- ffi_c
from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.10-x86-mingw32/lib/ffi.rb:11:in `rescue in <top (required)>'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.10-x86-mingw32/lib/ffi.rb:2:in `<top (required)>'
from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.7.2/lib/rautomation/adapter/win_32.rb:6:in `<top (required)>'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.7.2/lib/rautomation/window.rb:67:in `const_get'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.7.2/lib/rautomation/window.rb:67:in `initialize'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/ie-class.rb:456:in `new'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/ie-class.rb:456:in `rautomation'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/ie-class.rb:475:in `send_keys'
from (irb):13
from C:/Ruby193/bin/irb:12:in `<main>'
irb(main):014:0>
I use Watir 3.0.0,
Ruby 1.9.3.
Gems:
bigdecimal (1.1.0)
builder (3.0.0)
commonwatir (3.0.0)
ffi (1.0.10 x86-mingw32)
hoe (3.0.6)
io-console (0.3)
json (1.5.4)
minitest (2.5.1)
nokogiri (1.5.3 x86-mingw32)
rake (0.9.2.2)
rautomation (0.7.2)
rdoc (3.9.4)
rubygems-update (1.8.24)
s4t-utils (1.0.4)
user-choices (1.1.6.1)
watir (3.0.0, 1.5.3)
watir-classic (3.0.0)
win32-api (1.4.8)
win32-process (0.6.5)
windows-api (0.4.1)
windows-pr (1.2.1)
xml-simple (1.1.1)

Try:
browser.send_keys :tab
I believe Watir 3.0 changed the send_keys method to be like that in Watir-Webdriver - see http://watirmelon.com/tag/send_keys/

Related

unable to install robotframework-ride on win10

i'm trying to install robotframework-ride pkg on a Virtual Machine (oracle virtual box) of my PC (win10).
I have just installed the following software on VM.
I'm just preparing development environemnt for testing automation with robotframework but there is a problem installing RIDE IDE.
OS: win10
Python version: 3.10.7
packages installed:
numpy==1.23.3
Pillow==9.2.0
Pygments==2.13.0
Pypubsub==4.0.3
pywin32==304
robotframework==5.0.1
six==1.16.0
there conversion problem between '-' and '_', canyou help me please?
log trace:
E:\Python3>pip install robotframework-ride
Collecting robotframework-ride
Using cached robotframework_ride-1.7.4.2-py3-none-any.whl
Collecting wxPython<=4.0.7.post2
Using cached wxPython-4.0.7.post2.tar.gz (68.9 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: Pygments in e:\python3\lib\site-packages (from robotframework-ride) (2.13.0)
Requirement already satisfied: PyPubSub in e:\python3\lib\site-packages (from robotframework-ride) (4.0.3)
Requirement already satisfied: Pywin32 in e:\python3\lib\site-packages (from robotframework-ride) (304)
Requirement already satisfied: pillow in e:\python3\lib\site-packages (from wxPython<=4.0.7.post2->robotframework-ride) (9.2.0)
Requirement already satisfied: six in e:\python3\lib\site-packages (from wxPython<=4.0.7.post2->robotframework-ride) (1.16.0)
Requirement already satisfied: numpy in e:\python3\lib\site-packages (from wxPython<=4.0.7.post2->robotframework-ride) (1.23.3)
Building wheels for collected packages: wxPython
Building wheel for wxPython (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [51 lines of output]
E:\Python3\lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'license-file' will not be supported in future versions. Please use the underscore name 'license_file' instead
warnings.warn(
E:\Python3\lib\site-packages\setuptools\config\setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
E:\Python3\lib\site-packages\setuptools\dist.py:317: DistDeprecationWarning: use_2to3 is ignored.
warnings.warn(f"{attr} is ignored.", DistDeprecationWarning)
running bdist_wheel
running build
Will build using: "E:\Python3\python.exe"
3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Python's architecture is 64bit
cfg.VERSION: 4.0.7.post2
Running command: build
Running command: build_wx
Command '"E:\Python3\python.exe" -c "import distutils.msvc9compiler as msvc; mc = msvc.MSVCCompiler(); mc.initialize(); print(mc.cc)"' failed with exit code 1.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "E:\Python3\lib\site-packages\setuptools\_distutils\msvc9compiler.py", line 393, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "E:\Python3\lib\site-packages\setuptools\msvc.py", line 140, in msvc9_query_vcvarsall
return EnvironmentInfo(arch, ver).return_env()
File "E:\Python3\lib\site-packages\setuptools\msvc.py", line 1740, in return_env
[self.VCIncludes,
File "E:\Python3\lib\site-packages\setuptools\msvc.py", line 1282, in VCIncludes
return [join(self.si.VCInstallDir, 'Include'),
File "E:\Python3\lib\site-packages\setuptools\msvc.py", line 840, in VCInstallDir
raise distutils.errors.DistutilsPlatformError(msg)
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.3 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
Finished command: build_wx (0.448s)
Finished command: build (0.448s)
WARNING: Building this way assumes that all generated files have been
generated already. If that is not the case then use build.py directly
to generate the source and perform the build stage. You can use
--skip-build with the bdist_* or install commands to avoid this
message and the wxWidgets and Phoenix build steps in the future.
"E:\Python3\python.exe" -u build.py build
Command '"E:\Python3\python.exe" -u build.py build' failed with exit code 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for wxPython
Running setup.py clean for wxPython
Failed to build wxPython
Installing collected packages: wxPython, robotframework-ride
Attempting uninstall: wxPython
Found existing installation: wxPython 4.2.0
Uninstalling wxPython-4.2.0:
Successfully uninstalled wxPython-4.2.0
Running setup.py install for wxPython ... error
error: subprocess-exited-with-error
× Running setup.py install for wxPython did not run successfully.
│ exit code: 1
╰─> [53 lines of output]
E:\Python3\lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'license-file' will not be supported in future versions. Please use the underscore name 'license_file' instead
warnings.warn(
E:\Python3\lib\site-packages\setuptools\config\setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
E:\Python3\lib\site-packages\setuptools\dist.py:317: DistDeprecationWarning: use_2to3 is ignored.
warnings.warn(f"{attr} is ignored.", DistDeprecationWarning)
running install
E:\Python3\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
Will build using: "E:\Python3\python.exe"
3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Python's architecture is 64bit
cfg.VERSION: 4.0.7.post2
Running command: build
Running command: build_wx
Command '"E:\Python3\python.exe" -c "import distutils.msvc9compiler as msvc; mc = msvc.MSVCCompiler(); mc.initialize(); print(mc.cc)"' failed with exit code 1.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "E:\Python3\lib\site-packages\setuptools\_distutils\msvc9compiler.py", line 393, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "E:\Python3\lib\site-packages\setuptools\msvc.py", line 140, in msvc9_query_vcvarsall
return EnvironmentInfo(arch, ver).return_env()
File "E:\Python3\lib\site-packages\setuptools\msvc.py", line 1740, in return_env
[self.VCIncludes,
File "E:\Python3\lib\site-packages\setuptools\msvc.py", line 1282, in VCIncludes
return [join(self.si.VCInstallDir, 'Include'),
File "E:\Python3\lib\site-packages\setuptools\msvc.py", line 840, in VCInstallDir
raise distutils.errors.DistutilsPlatformError(msg)
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.3 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
Finished command: build_wx (0.392s)
Finished command: build (0.392s)
WARNING: Building this way assumes that all generated files have been
generated already. If that is not the case then use build.py directly
to generate the source and perform the build stage. You can use
--skip-build with the bdist_* or install commands to avoid this
message and the wxWidgets and Phoenix build steps in the future.
"E:\Python3\python.exe" -u build.py build
Command '"E:\Python3\python.exe" -u build.py build' failed with exit code 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
Rolling back uninstall of wxPython
Moving to e:\python3\lib\site-packages\wx\
from E:\Python3\Lib\site-packages\~x
Moving to e:\python3\lib\site-packages\wxpython-4.2.0.dist-info\
from E:\Python3\Lib\site-packages\~xpython-4.2.0.dist-info
Moving to e:\python3\scripts\helpviewer.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\helpviewer.exe
Moving to e:\python3\scripts\img2png.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\img2png.exe
Moving to e:\python3\scripts\img2py.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\img2py.exe
Moving to e:\python3\scripts\img2xpm.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\img2xpm.exe
Moving to e:\python3\scripts\pycrust.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\pycrust.exe
Moving to e:\python3\scripts\pyshell.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\pyshell.exe
Moving to e:\python3\scripts\pyslices.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\pyslices.exe
Moving to e:\python3\scripts\pyslicesshell.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\pyslicesshell.exe
Moving to e:\python3\scripts\pywxrc.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\pywxrc.exe
Moving to e:\python3\scripts\wxdemo.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\wxdemo.exe
Moving to e:\python3\scripts\wxdocs.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\wxdocs.exe
Moving to e:\python3\scripts\wxget.exe
from C:\Users\Richard\AppData\Local\Temp\pip-uninstall-nyfplg56\wxget.exe
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> wxPython
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Im trying to build mediapipe on my jetson nano

So Im trying to build a mediapipe whl file for my jetson nano by following this guide
https://github.com/jiuqiant/mediapipe_python_aarch64
I am successful on building it with my raspberry pi 4.
By the way this github repo also provides a whl file for mediapipe I can install it but the module for face detection is disabled (the one thing I need)
So after running
python3 setup.py gen_protos && python3 setup.py bdist_wheel
This is the error that I get
Here is my pip freeze result:
python 3.6.9
absl-py==0.10.0
apt-clone==0.2.1
apturl==0.5.2
asn1crypto==0.24.0
astunparse==1.6.3
attrs==20.3.0
beautifulsoup4==4.6.0
blinker==1.4
Brlapi==0.6.6
cachetools==4.2.1
certifi==2018.1.18
chardet==3.0.4
cryptography==2.1.4
cupshelpers==1.0
cycler==0.10.0
Cython==0.29.23
dataclasses==0.8
decorator==4.1.2
defer==1.0.6
distro-info===0.18ubuntu0.18.04.1
feedparser==5.2.1
future==0.18.2
futures==3.1.1
gast==0.3.3
google-auth==1.29.0
google-auth-oauthlib==0.4.4
google-pasta==0.2.0
graphsurgeon==0.4.5
grpcio==1.37.0
h5py==2.10.0
html5lib==0.999999999
httplib2==0.9.2
idna==2.6
importlib-metadata==4.0.0
Jetson.GPIO==2.0.16
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.1
keyring==10.6.0
keyrings.alt==3.0
kiwisolver==1.3.1
language-selector==0.1
launchpadlib==1.10.6
lazr.restfulclient==0.13.5
lazr.uri==1.0.3
louis==3.5.0
lxml==4.2.1
macaroonbakery==1.1.3
Mako==1.0.7
Markdown==3.3.4
MarkupSafe==1.0
matplotlib==3.2.2
mock==3.0.5
numpy==1.16.1
oauth==1.0.1
oauthlib==3.1.0
onboard==1.4.1
opt-einsum==3.3.0
PAM==0.4.2
pandas==0.22.0
pbr==5.5.1
protobuf==3.16.0rc1
pyasn1==0.4.8
pyasn1-modules==0.2.8
pybind11==2.6.2
pycairo==1.16.2
pycrypto==2.6.1
pycups==1.9.73
pygobject==3.26.1
PyICU==1.9.8
PyJWT==1.5.3
pymacaroons==0.13.0
PyNaCl==1.1.2
pyparsing==2.4.7
pyRFC3339==1.0
python-apt==1.6.5+ubuntu0.3
python-dateutil==2.6.1
python-debian==0.1.32
pytz==2018.3
pyxattr==0.6.0
pyxdg==0.25
PyYAML==3.12
requests==2.25.1
requests-oauthlib==1.3.0
requests-unixsocket==0.1.5
rsa==4.7.2
scipy==0.19.1
SecretStorage==2.3.1
simplejson==3.13.2
six==1.15.0
ssh-import-id==5.7
system-service==0.3
systemd-python==234
tensorboard==2.5.0
tensorboard-data-server==0.6.0
tensorboard-plugin-wit==1.8.0
tensorflow==2.3.1+nv20.12
tensorflow-estimator==2.3.0
tensorrt==7.1.3.0
termcolor==1.1.0
testresources==2.0.1
typing-extensions==3.7.4.3
ubuntu-drivers-common==0.0.0
uff==0.6.9
unity-scope-calculator==0.1
unity-scope-chromiumbookmarks==0.1
unity-scope-colourlovers==0.1
unity-scope-devhelp==0.1
unity-scope-firefoxbookmarks==0.1
unity-scope-manpages==0.1
unity-scope-openclipart==0.1
unity-scope-texdoc==0.1
unity-scope-tomboy==0.1
unity-scope-virtualbox==0.1
unity-scope-yelp==0.1
unity-scope-zotero==0.1
urllib3==1.22
urwid==2.0.1
wadllib==1.3.2
webencodings==0.5
Werkzeug==2.0.0rc4
wrapt==1.12.1
xkit==0.0.0
youtube-dl==2018.3.14
zipp==3.4.1
zope.interface==4.3.2
This problem solved by upgrading gcc compiler.
adding gcc-8 g++-8 to the apt-get install
Building MediaPipe for Jetson Nano is not the easiest task ever, especially if you have decided to go for CUDA-enabled compilation. I have built MediaPipe 0.8.9 Python Wheel with CUDA 10.2 for Jetson Nano (Currently hand landmarks detection and selfie segmentation only!): https://github.com/anion0278/mediapipe-jetson
I hope it will be useful for someone.

How do i pip install pyinstaller in pydroid 3 [duplicate]

This question already has answers here:
PyInstaller, spec file, ImportError: No module named 'blah'
(3 answers)
Pyinstaller Unable to access Data Folder
(1 answer)
Python - pygame error when executing exe file
(3 answers)
Closed 2 years ago.
I have recently been making a game on pydroid 3 with pygame and I am trying to turn it into a game you can download and play as an apk or exe file
A YouTube video told me that I had to use pyinstaller to turn it into an a game that people can download so I tried pip installing it but it said
Failed to build wheel for pyinstaller
After that I tried pip3 installing pyinstaller but it said the same thing after that I tried using the pip function that comes with the app but it said
Looking in indexes:http://repo.local
Error:PyInstaller does not support Android yet
And the only device I have to program is an android tablet and all the other Ide's i've tried don't support pygame so I don't really know what to do

virtualenv cannot create environment

I'm running on an iMac runing the latest version of catalina. I have python 3.7.5 installed via homebrew. Up to now, I've just been installing packages using sudo -H pip3 install ...
I would like to use virtualenv. I have virtualenv version 16.7.8 installed. However, when I try to create a new virtualenv in my file system, after a lot of stuff about finding files on pythonhosted, I get the trace back below. Apparently it's trying to create a subdirectory to /lib! This looks like some sort of bug. Any suggestions about tracking it down? It has created bin, lib and include subdirectories, but only lib has any files in it.
Using base prefix '/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7'
New python executable in /Users/victorsmiller/Programming/Python/tst/bin/python3.7
Also creating executable in /Users/victorsmiller/Programming/Python/tst/bin/python
Please make sure you remove any previous custom paths from your /Users/victorsmiller/.pydistutils.cfg file.
Installing setuptools, pip, wheel...
Complete output from command /Users/victorsmiller...on/tst/bin/python3.7 - setuptools pip wheel:
Created temporary directory: /private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-ephem-wheel-cache-2_g3dz1c
Created temporary directory: /private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-req-tracker-bxfcy5h6
Created requirements tracker '/private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-req-tracker-bxfcy5h6'
Created temporary directory: /private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-install-oboxx8ib
Looking in links: /usr/local/lib/python3.7/site-packages/virtualenv_support
1 location(s) to search for versions of setuptools:
* https://pypi.org/simple/setuptools/
Getting page https://pypi.org/simple/setuptools/
Found index url https://pypi.org/simple
Looking up "https://pypi.org/simple/setuptools/" in the cache
Request header has "max_age" as 0, cache bypassed
Starting new HTTPS connection (1): pypi.org:443
https://pypi.org:443 "GET /simple/setuptools/ HTTP/1.1" 304 0
Skipping link: not a file: /usr/local/lib/python3.7/site-packages/virtualenv_support (from -f)
Analyzing links from page https://pypi.org/simple/setuptools/
Skipping link: unsupported archive format: .egg: https://files.pythonhosted.org/packages/77/38/90cae8fd99c5dc402d25930e1c91f5fcf6de5c8e982fd152a5a061e3df56/setuptools-0.6b1-py2.3.egg#sha256=ae0a6ec6090a92d08fe7f3dbf9f1b2ce889bce2a3d7724b62322a29b92cf93f0 (from https://pypi.org/simple/setuptools/)
and then a lot of similar lines to the last one. Then followed by:
Local files found: /usr/local/lib/python3.7/site-packages/virtualenv_support/setuptools-41.6.0-py2.py3-none-any.whl
Given no hashes to check 305 links for project 'setuptools': discarding no candidates
Using version 42.0.0 (newest of versions: 0.9.8, 1.1.6, 1.2, 1.3, 1.3.1, 1.3.2, 1.4, 1.4.1, 1.4.2, 2.0, 2.0.1, 2.0.2, 2.1, 2.1.2, 2.2, 3.1, 3.2, 3.3, 3.4, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.5, 3.5.1, 3.5.2, 3.6, 3.7, 3.7.1, 3.8, 3.8.1, 5.0, 5.0.1, 5.0.2, 5.1, 5.2, 5.3, 5.4, 5.4.1, 5.4.2, 5.5, 5.5.1, 5.6, 5.7, 5.8, 6.0.1, 6.0.2, 6.1, 7.0, 8.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.1, 8.2, 8.2.1, 8.3, 9.0, 9.0.1, 9.1, 10.0, 10.0.1, 10.1, 10.2, 10.2.1, 11.0, 11.1, 11.2, 11.3, 11.3.1, 12.0, 12.0.1, 12.0.2, 12.0.3, 12.0.4, 12.0.5, 12.1, 12.2, 12.3, 12.4, 13.0.1, 13.0.2, 14.0, 14.1, 14.1.1, 14.2, 14.3, 14.3.1, 15.0, 15.1, 15.2, 16.0, 17.0, 17.1, 17.1.1, 18.0, 18.0.1, 18.1, 18.2, 18.3, 18.3.1, 18.3.2, 18.4, 18.5, 18.6, 18.6.1, 18.7, 18.7.1, 18.8, 18.8.1, 19.0, 19.1, 19.1.1, 19.2, 19.3, 19.4, 19.4.1, 19.5, 19.6, 19.6.1, 19.6.2, 19.7, 20.0, 20.1, 20.1.1, 20.2.2, 20.3, 20.3.1, 20.4, 20.6.6, 20.6.7, 20.6.8, 20.7.0, 20.8.0, 20.8.1, 20.9.0, 20.10.1, 21.0.0, 21.1.0, 21.2.0, 21.2.1, 21.2.2, 22.0.0, 22.0.1, 22.0.2, 22.0.4, 22.0.5, 23.0.0, 23.1.0, 23.2.0, 23.2.1, 24.0.0, 24.0.1, 24.0.2, 24.0.3, 24.1.0, 24.1.1, 24.2.0, 24.2.1, 24.3.0, 24.3.1, 25.0.0, 25.0.1, 25.0.2, 25.1.0, 25.1.1, 25.1.2, 25.1.3, 25.1.4, 25.1.5, 25.1.6, 25.2.0, 25.3.0, 25.4.0, 26.0.0, 26.1.0, 26.1.1, 27.0.0, 27.1.0, 27.1.2, 27.2.0, 27.3.0, 27.3.1, 28.0.0, 28.1.0, 28.2.0, 28.3.0, 28.4.0, 28.5.0, 28.6.0, 28.6.1, 28.7.0, 28.7.1, 28.8.0, 28.8.1, 29.0.0, 29.0.1, 30.0.0, 30.1.0, 30.2.0, 30.2.1, 30.3.0, 30.4.0, 31.0.0, 31.0.1, 32.0.0, 32.1.0, 32.1.1, 32.1.2, 32.1.3, 32.2.0, 32.3.0, 32.3.1, 33.1.0, 33.1.1, 34.0.0, 34.0.1, 34.0.2, 34.0.3, 34.1.0, 34.1.1, 34.2.0, 34.3.0, 34.3.1, 34.3.2, 34.3.3, 34.4.0, 34.4.1, 35.0.0, 35.0.1, 35.0.2, 36.0.1, 36.1.0, 36.1.1, 36.2.0, 36.2.1, 36.2.2, 36.2.3, 36.2.4, 36.2.5, 36.2.6, 36.2.7, 36.3.0, 36.4.0, 36.5.0, 36.6.0, 36.6.1, 36.7.0, 36.7.1, 36.7.2, 36.8.0, 37.0.0, 38.0.0, 38.1.0, 38.2.0, 38.2.1, 38.2.3, 38.2.4, 38.2.5, 38.3.0, 38.4.0, 38.4.1, 38.5.0, 38.5.1, 38.5.2, 38.6.0, 38.6.1, 38.7.0, 39.0.0, 39.0.1, 39.1.0, 39.2.0, 40.0.0, 40.1.0, 40.1.1, 40.2.0, 40.3.0, 40.4.0, 40.4.1, 40.4.2, 40.4.3, 40.5.0, 40.6.0, 40.6.1, 40.6.2, 40.6.3, 40.7.0, 40.7.1, 40.7.2, 40.7.3, 40.8.0, 40.9.0, 41.0.0, 41.0.1, 41.1.0, 41.2.0, 41.3.0, 41.4.0, 41.5.0, 41.5.1, 41.6.0, 42.0.0)
Collecting setuptools
Created temporary directory: /private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-unpack-qj_9img3
Looking up "https://files.pythonhosted.org/packages/61/a2/82b506a6cdb42cc79a65d5a9e790112cf6b98ee7aba4a53a2b9c9c8047d0/setuptools-42.0.0-py2.py3-none-any.whl" in the cache
Current age based on date: 3817
Ignoring unknown cache-control directive: immutable
Freshness lifetime from max-age: 365000000
The response is "fresh", returning cached response
365000000 > 3817
Using cached https://files.pythonhosted.org/packages/61/a2/82b506a6cdb42cc79a65d5a9e790112cf6b98ee7aba4a53a2b9c9c8047d0/setuptools-42.0.0-py2.py3-none-any.whl
Added setuptools from https://files.pythonhosted.org/packages/61/a2/82b506a6cdb42cc79a65d5a9e790112cf6b98ee7aba4a53a2b9c9c8047d0/setuptools-42.0.0-py2.py3-none-any.whl#sha256=4248cb506794bececcddeddb1678bc722f9cfcacf02f98f7c0af6b9ed893caf2 to build tracker '/private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-req-tracker-bxfcy5h6'
Removed setuptools from https://files.pythonhosted.org/packages/61/a2/82b506a6cdb42cc79a65d5a9e790112cf6b98ee7aba4a53a2b9c9c8047d0/setuptools-42.0.0-py2.py3-none-any.whl#sha256=4248cb506794bececcddeddb1678bc722f9cfcacf02f98f7c0af6b9ed893caf2 from build tracker '/private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-req-tracker-bxfcy5h6'
1 location(s) to search for versions of pip:
* https://pypi.org/simple/pip/
Getting page https://pypi.org/simple/pip/
Found index url https://pypi.org/simple
Looking up "https://pypi.org/simple/pip/" in the cache
Request header has "max_age" as 0, cache bypassed
https://pypi.org:443 "GET /simple/pip/ HTTP/1.1" 304 0
Analyzing links from page https://pypi.org/simple/pip/
Skipping link: No sources permitted for pip: https://files.pythonhosted.org/packages/3d/9d/1e313763bdfb6a48977b65829c6ce2a43eaae29ea2f907c8bbef024a7219/pip-0.2.tar.gz#sha256=88bb8d029e1bf4acd0e04d300104b7440086f94cc1ce1c5c3c31e3293aee1f81 (from https://pypi.org/simple/pip/)
and a lot more lines similar to the last, followed by
Found link file:///usr/local/lib/python3.7/site-packages/virtualenv_support/wheel-0.33.6-py2.py3-none-any.whl, version: 0.33.6
Local files found: /usr/local/lib/python3.7/site-packages/virtualenv_support/wheel-0.33.6-py2.py3-none-any.whl
Given no hashes to check 37 links for project 'wheel': discarding no candidates
Using version 0.33.6 (newest of versions: 0.9, 0.9.5, 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.11.0, 0.12.0, 0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.17.0, 0.18.0, 0.19.0, 0.21.0, 0.22.0, 0.23.0, 0.24.0, 0.25.0, 0.26.0, 0.27.0, 0.28.0, 0.29.0, 0.30.0, 0.31.0, 0.31.1, 0.32.0, 0.32.1, 0.32.2, 0.32.3, 0.33.0, 0.33.1, 0.33.4, 0.33.5, 0.33.6)
Processing /usr/local/lib/python3.7/site-packages/virtualenv_support/wheel-0.33.6-py2.py3-none-any.whl
Added wheel from file:///usr/local/lib/python3.7/site-packages/virtualenv_support/wheel-0.33.6-py2.py3-none-any.whl to build tracker '/private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-req-tracker-bxfcy5h6'
Removed wheel from file:///usr/local/lib/python3.7/site-packages/virtualenv_support/wheel-0.33.6-py2.py3-none-any.whl from build tracker '/private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-req-tracker-bxfcy5h6'
Installing collected packages: setuptools, pip, wheel
ERROR: Could not install packages due to an EnvironmentError.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/virtualenv_support/pip-19.3.1-py2.py3-none-any.whl/pip/_internal/commands/install.py", line 455, in run
use_user_site=options.use_user_site,
File "/usr/local/lib/python3.7/site-packages/virtualenv_support/pip-19.3.1-py2.py3-none-any.whl/pip/_internal/req/__init__.py", line 62, in install_given_reqs
**kwargs
File "/usr/local/lib/python3.7/site-packages/virtualenv_support/pip-19.3.1-py2.py3-none-any.whl/pip/_internal/req/req_install.py", line 861, in install
use_user_site=use_user_site, pycompile=pycompile,
File "/usr/local/lib/python3.7/site-packages/virtualenv_support/pip-19.3.1-py2.py3-none-any.whl/pip/_internal/req/req_install.py", line 495, in move_wheel_files
warn_script_location=warn_script_location,
File "/usr/local/lib/python3.7/site-packages/virtualenv_support/pip-19.3.1-py2.py3-none-any.whl/pip/_internal/wheel.py", line 461, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/local/lib/python3.7/site-packages/virtualenv_support/pip-19.3.1-py2.py3-none-any.whl/pip/_internal/wheel.py", line 392, in clobber
ensure_dir(dest) # common for the 'include' path
File "/usr/local/lib/python3.7/site-packages/virtualenv_support/pip-19.3.1-py2.py3-none-any.whl/pip/_internal/utils/misc.py", line 116, in ensure_dir
os.makedirs(path)
File "/Users/victorsmiller/Programming/Python/tst/bin/../lib/python3.7/os.py", line 211, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/Users/victorsmiller/Programming/Python/tst/bin/../lib/python3.7/os.py", line 211, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/Users/victorsmiller/Programming/Python/tst/bin/../lib/python3.7/os.py", line 221, in makedirs
mkdir(name, mode)
OSError: [Errno 30] Read-only file system: '/lib'
Cleaning up...
Removed build tracker '/private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/pip-req-tracker-bxfcy5h6'
I just ran into this problem, and it appears to be specific to versions >= 16.7.0. Downgrading to version 16.6.2 fixed it for me: pip install virtualenv==16.6.2
Check and uncomment out the contents of /Users/<USER_NAME>/.pydistutils.cfg
Found what was failing in my case - an earlier dist command created setup.cfg file containing:
[install]
prefix=
Removing or commenting out these lines fixed the problem.

Python pip install local on cluster openssl issues

I am trying to get python3 and pip installed as my own user on a cluster.
The make test fails with:
FAILED (failures=1)
test test_dbm_dumb failed
7 tests failed again:
test_dbm_dumb test_import test_mailbox test_os test_pathlib
test_stat test_tarfile
Total duration: 9 min 21 sec
Tests result: FAILURE
make: *** [test] Error 1
THis is some other info that may pertain to the error
INFO: Can't locate Tcl/Tk libs and/or headers
warning: building with the bundled copy of libffi is deprecated on this platform. It will not be distributed with Python 3.7
Python build finished successfully!
The necessary bits to build these optional modules were not found:
_bz2 _curses _curses_panel
_dbm _gdbm _lzma
_sqlite3 _ssl _tkinter
readline
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
atexit pwd time
but I continued on anyways with make install.
It appears there are openSSL issues. Please see below:
-bash-4.2$ python3 get-pip.py --user
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Requirement already up-to-date: pip in ./tools/python/lib/python3.6/site-packages
Collecting wheel
Could not fetch URL https://pypi.python.org/simple/wheel/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement wheel (from versions: )
No matching distribution found for wheel
-bash-4.2$ python3 pip
python3: can't open file 'pip': [Errno 2] No such file or directory
-bash-4.2$ ldd /home/CAM/anesta/tools/openssl/lib/libssl.so.1.1
linux-vdso.so.1 => (0x00007ffe1796d000)
libcrypto.so.1.1 => /home/CAM/anesta/tools/openssl/lib/libcrypto.so.1.1 (0x00007fc88093b000)
libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007fc88072b000)
libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007fc88050f000)
libc.so.6 => /usr/lib64/libc.so.6 (0x00007fc88014e000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc88102f000)
So it appears openssl is installed. Why does the make test say that is doesn't have ssl? Additionally I have bzip2 installed and python says that is not found too.
There must be something I'm missing here.
Thanks,
Alex
EDIT: no SSL module installed in python
-bash-4.2$ python3 -c "import ssl"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/CAM/anesta/tools/python/lib/python3.6/ssl.py", line 101, in <module>
import _ssl # if we can't import it, let the error propagate
ModuleNotFoundError: No module named '_ssl'

Resources