What are the available libraries within Google Colaboratory? - jupyter
TensorFlow is surely supported, and PyTorch isn't.
I found a non-comprehensive list here.
https://dbsnail.com/2017/10/26/quick-check-of-google-colaboratory
Is there an official list of supported libraries somewhere?
!pip freeze shows:
absl-py==0.7.1
alabaster==0.7.12
albumentations==0.1.12
altair==2.4.1
astor==0.7.1
astropy==3.0.5
atari-py==0.1.7
atomicwrites==1.3.0
attrs==19.1.0
audioread==2.1.6
autograd==1.2
Babel==2.6.0
backcall==0.1.0
backports.tempfile==1.0
backports.weakref==1.0.post1
beautifulsoup4==4.6.3
bleach==3.1.0
bokeh==1.0.4
boto==2.49.0
boto3==1.9.115
botocore==1.12.115
Bottleneck==1.2.1
branca==0.3.1
bs4==0.0.1
bz2file==0.98
cachetools==3.1.0
certifi==2019.3.9
cffi==1.12.2
chainer==5.0.0
chardet==3.0.4
Click==7.0
cloudpickle==0.6.1
cmake==3.12.0
colorlover==0.3.0
community==1.0.0b1
contextlib2==0.5.5
convertdate==2.1.3
coverage==3.7.1
coveralls==0.5
crcmod==1.7
cufflinks==0.14.6
cvxopt==1.2.3
cvxpy==1.0.15
cycler==0.10.0
cymem==2.0.2
Cython==0.29.6
cytoolz==0.9.0.1
daft==0.0.4
dask==0.20.2
dataclasses==0.6
datascience==0.10.6
decorator==4.4.0
defusedxml==0.5.0
dill==0.2.9
distributed==1.25.3
Django==2.1.7
dlib==19.16.0
dm-sonnet==1.23
docopt==0.6.2
docutils==0.14
dopamine-rl==1.0.5
easydict==1.9
ecos==2.0.7.post1
editdistance==0.5.3
en-core-web-sm==2.0.0
entrypoints==0.3
enum34==1.1.6
ephem==3.7.6.0
et-xmlfile==1.0.1
fa2==0.3.5
fancyimpute==0.4.2
fastai==1.0.49
fastcache==1.0.2
fastdtw==0.3.2
fastprogress==0.1.20
fastrlock==0.4
fbprophet==0.4.post2
featuretools==0.4.1
filelock==3.0.10
fix-yahoo-finance==0.0.22
Flask==1.0.2
folium==0.8.3
future==0.16.0
gast==0.2.2
GDAL==2.2.2
gdown==3.6.4
gensim==3.6.0
geographiclib==1.49
geopy==1.17.0
gevent==1.4.0
gin-config==0.1.4
glob2==0.6
google==2.0.2
google-api-core==1.8.1
google-api-python-client==1.6.7
google-auth==1.4.2
google-auth-httplib2==0.0.3
google-auth-oauthlib==0.2.0
google-cloud-bigquery==1.8.1
google-cloud-core==0.29.1
google-cloud-language==1.0.2
google-cloud-storage==1.13.2
google-cloud-translate==1.3.3
google-colab==1.0.0
google-resumable-media==0.3.2
googleapis-common-protos==1.5.8
googledrivedownloader==0.3
graph-nets==1.0.3
graphviz==0.10.1
greenlet==0.4.15
grpcio==1.15.0
gspread==3.0.1
gspread-dataframe==3.0.2
gunicorn==19.9.0
gym==0.10.11
h5py==2.8.0
HeapDict==1.0.0
holidays==0.9.10
html5lib==1.0.1
httpimport==0.5.16
httplib2==0.11.3
humanize==0.5.1
hyperopt==0.1.2
ideep4py==2.0.0.post3
idna==2.6
image==1.5.27
imageio==2.4.1
imagesize==1.1.0
imbalanced-learn==0.4.3
imblearn==0.0
imgaug==0.2.8
imutils==0.5.2
inflect==2.1.0
intel-openmp==2019.0
intervaltree==2.1.0
ipykernel==4.6.1
ipython==5.5.0
ipython-genutils==0.2.0
ipython-sql==0.3.9
ipywidgets==7.4.2
itsdangerous==1.1.0
jdcal==1.4
jedi==0.13.3
jieba==0.39
Jinja2==2.10
jmespath==0.9.4
joblib==0.12.5
jpeg4py==0.1.4
jsonschema==2.6.0
jupyter==1.0.0
jupyter-client==5.2.4
jupyter-console==6.0.0
jupyter-core==4.4.0
kaggle==1.5.3
kapre==0.1.3.1
Keras==2.2.4
Keras-Applications==1.0.7
Keras-Preprocessing==1.0.9
keras-vis==0.4.1
kiwisolver==1.0.1
knnimpute==0.1.0
librosa==0.6.3
lightgbm==2.2.3
llvmlite==0.28.0
lmdb==0.94
lucid==0.3.8
lunardate==0.2.0
lxml==4.2.6
magenta==0.3.19
Markdown==3.0.1
MarkupSafe==1.1.1
matplotlib==3.0.3
matplotlib-venn==0.11.5
mesh-tensorflow==0.0.5
mido==1.2.6
mir-eval==0.5
missingno==0.4.1
mistune==0.8.4
mkl==2019.0
mlxtend==0.14.0
mock==2.0.0
more-itertools==6.0.0
moviepy==0.2.3.5
mpi4py==3.0.1
mpmath==1.1.0
msgpack==0.5.6
msgpack-numpy==0.4.3.2
multiprocess==0.70.7
multitasking==0.0.7
murmurhash==1.0.2
music21==5.5.0
natsort==5.5.0
nbconvert==5.4.1
nbformat==4.4.0
networkx==2.2
nibabel==2.3.3
nltk==3.2.5
nose==1.3.7
notebook==5.2.2
np-utils==0.5.10.0
numba==0.40.1
numexpr==2.6.9
numpy==1.14.6
nvidia-ml-py3==7.352.0
oauth2client==4.1.3
oauthlib==3.0.1
okgrade==0.4.3
olefile==0.46
opencv-contrib-python==3.4.3.18
opencv-python==3.4.5.20
openpyxl==2.5.9
osqp==0.5.0
packaging==19.0
pandas==0.22.0
pandas-datareader==0.7.0
pandas-gbq==0.4.1
pandas-profiling==1.4.1
pandocfilters==1.4.2
parso==0.3.4
pathlib==1.0.1
patsy==0.5.1
pbr==5.1.3
pexpect==4.6.0
pickleshare==0.7.5
Pillow==4.1.1
pip-tools==3.4.0
plac==0.9.6
plotly==3.6.1
pluggy==0.7.1
portpicker==1.2.0
prefetch-generator==1.0.1
preshed==2.0.1
pretty-midi==0.2.8
prettytable==0.7.2
progressbar2==3.38.0
prometheus-client==0.6.0
promise==2.2.1
prompt-toolkit==1.0.15
protobuf==3.7.0
psutil==5.4.8
psycopg2==2.7.6.1
ptyprocess==0.6.0
py==1.8.0
pyasn1==0.4.5
pyasn1-modules==0.2.4
pycocotools==2.0.0
pycparser==2.19
pydot==1.3.0
pydot-ng==2.0.0
pydotplus==2.0.2
pyemd==0.5.1
pyglet==1.3.2
Pygments==2.1.3
pygobject==3.26.1
pymc3==3.6
pymongo==3.7.2
pymystem3==0.2.0
PyOpenGL==3.1.0
pyparsing==2.3.1
pyrsistent==0.14.11
pysndfile==1.3.2
PySocks==1.6.8
pystache==0.5.4
pystan==2.18.1.0
pytest==3.6.4
python-apt==1.6.3+ubuntu1
python-chess==0.23.11
python-dateutil==2.5.3
python-louvain==0.13
python-rtmidi==1.2.1
python-slugify==3.0.0
python-utils==2.3.0
pytz==2018.9
PyWavelets==1.0.2
PyYAML==3.13
pyzmq==17.0.0
qtconsole==4.4.3
regex==2018.1.10
requests==2.18.4
requests-oauthlib==1.2.0
resampy==0.2.1
retrying==1.3.3
rpy2==2.9.5
rsa==4.0
s3fs==0.2.0
s3transfer==0.2.0
scikit-image==0.13.1
scikit-learn==0.20.3
scipy==1.1.0
screen-resolution-extra==0.0.0
scs==2.1.0
seaborn==0.7.1
Send2Trash==1.5.0
setuptools-git==1.2
Shapely==1.6.4.post2
simplegeneric==0.8.1
six==1.11.0
sklearn==0.0
smart-open==1.8.0
snowballstemmer==1.2.1
sortedcontainers==2.1.0
spacy==2.0.18
Sphinx==1.8.5
sphinxcontrib-websupport==1.1.0
SQLAlchemy==1.3.1
sqlparse==0.3.0
stable-baselines==2.2.1
statsmodels==0.8.0
sympy==1.1.1
tables==3.4.4
tabulate==0.8.3
tblib==1.3.2
tensor2tensor==1.11.0
tensorboard==1.13.1
tensorboardcolab==0.0.22
tensorflow==1.13.1
tensorflow-estimator==1.13.0
tensorflow-hub==0.3.0
tensorflow-metadata==0.13.0
tensorflow-probability==0.6.0
termcolor==1.1.0
terminado==0.8.1
testpath==0.4.2
text-unidecode==1.2
textblob==0.15.3
textgenrnn==1.4.1
tfds-nightly==1.0.1.dev201903180105
tflearn==0.3.2
Theano==1.0.4
thinc==6.12.1
toolz==0.9.0
torch==1.0.1.post2
torchsummary==1.5.1
torchtext==0.3.1
torchvision==0.2.2.post3
tornado==4.5.3
tqdm==4.28.1
traitlets==4.3.2
tweepy==3.6.0
typing==3.6.6
tzlocal==1.5.1
ujson==1.35
umap-learn==0.3.7
uritemplate==3.0.0
urllib3==1.22
vega-datasets==0.7.0
wcwidth==0.1.7
webencodings==0.5.1
Werkzeug==0.14.1
widgetsnbextension==3.4.2
wordcloud==1.5.0
wrapt==1.10.11
xarray==0.11.3
You can also use pkg_resources to get the list
from pkg_resources import working_set
libs = [x.project_name+' '+x.version for x in working_set]
For now (Mar 2022), the libs are:
['absl-py 1.0.0',
'alabaster 0.7.12',
'albumentations 0.1.12',
'altair 4.2.0',
'appdirs 1.4.4',
'argon2-cffi 21.3.0',
'argon2-cffi-bindings 21.2.0',
'arviz 0.11.4',
'astor 0.8.1',
'astropy 4.3.1',
'astunparse 1.6.3',
'atari-py 0.2.9',
'atomicwrites 1.4.0',
'attrs 21.4.0',
'audioread 2.1.9',
'autograd 1.3',
'Babel 2.9.1',
'backcall 0.2.0',
'beautifulsoup4 4.6.3',
'bleach 4.1.0',
'blis 0.4.1',
'bokeh 2.3.3',
'Bottleneck 1.3.4',
'branca 0.4.2',
'bs4 0.0.1',
'CacheControl 0.12.10',
'cached-property 1.5.2',
'cachetools 4.2.4',
'catalogue 1.0.0',
'certifi 2021.10.8',
'cffi 1.15.0',
'cftime 1.6.0',
'chardet 3.0.4',
'charset-normalizer 2.0.12',
'click 7.1.2',
'cloudpickle 1.3.0',
'cmake 3.12.0',
'cmdstanpy 0.9.5',
'colorcet 3.0.0',
'colorlover 0.3.0',
'community 1.0.0b1',
'contextlib2 0.5.5',
'convertdate 2.4.0',
'coverage 3.7.1',
'coveralls 0.5',
'crcmod 1.7',
'cufflinks 0.17.3',
'cvxopt 1.2.7',
'cvxpy 1.0.31',
'cycler 0.11.0',
'cymem 2.0.6',
'Cython 0.29.28',
'daft 0.0.4',
'dask 2.12.0',
'datascience 0.10.6',
'debugpy 1.0.0',
'decorator 4.4.2',
'defusedxml 0.7.1',
'descartes 1.1.0',
'dill 0.3.4',
'distributed 1.25.3',
'dlib 19.18.0',
'dm-tree 0.1.6',
'docopt 0.6.2',
'docutils 0.17.1',
'dopamine-rl 1.0.5',
'earthengine-api 0.1.301',
'easydict 1.9',
'ecos 2.0.10',
'editdistance 0.5.3',
'en-core-web-sm 2.2.5',
'entrypoints 0.4',
'ephem 4.1.3',
'et-xmlfile 1.1.0',
'fa2 0.3.5',
'fastai 1.0.61',
'fastdtw 0.3.4',
'fastprogress 1.0.2',
'fastrlock 0.8',
'fbprophet 0.7.1',
'feather-format 0.4.1',
'filelock 3.6.0',
'firebase-admin 4.4.0',
'fix-yahoo-finance 0.0.22',
'Flask 1.1.4',
'flatbuffers 2.0',
'folium 0.8.3',
'future 0.16.0',
'gast 0.5.3',
'GDAL 2.2.2',
'gdown 4.2.2',
'gensim 3.6.0',
'geographiclib 1.52',
'geopy 1.17.0',
'gin-config 0.5.0',
'glob2 0.7',
'google 2.0.3',
'google-api-core 1.26.3',
'google-api-python-client 1.12.10',
'google-auth 1.35.0',
'google-auth-httplib2 0.0.4',
'google-auth-oauthlib 0.4.6',
'google-cloud-bigquery 1.21.0',
'google-cloud-bigquery-storage 1.1.0',
'google-cloud-core 1.0.3',
'google-cloud-datastore 1.8.0',
'google-cloud-firestore 1.7.0',
'google-cloud-language 1.2.0',
'google-cloud-storage 1.18.1',
'google-cloud-translate 1.5.0',
'google-colab 1.0.0',
'google-pasta 0.2.0',
'google-resumable-media 0.4.1',
'googleapis-common-protos 1.55.0',
'googledrivedownloader 0.4',
'graphviz 0.10.1',
'greenlet 1.1.2',
'grpcio 1.44.0',
'gspread 3.4.2',
'gspread-dataframe 3.0.8',
'gym 0.17.3',
'h5py 3.1.0',
'HeapDict 1.0.1',
'hijri-converter 2.2.3',
'holidays 0.10.5.2',
'holoviews 1.14.8',
'html5lib 1.0.1',
'httpimport 0.5.18',
'httplib2 0.17.4',
'httplib2shim 0.0.3',
'humanize 0.5.1',
'hyperopt 0.1.2',
'ideep4py 2.0.0.post3',
'idna 2.10',
'imageio 2.4.1',
'imagesize 1.3.0',
'imbalanced-learn 0.8.1',
'imblearn 0.0',
'imgaug 0.2.9',
'importlib-metadata 4.11.2',
'importlib-resources 5.4.0',
'imutils 0.5.4',
'inflect 2.1.0',
'iniconfig 1.1.1',
'intel-openmp 2022.0.2',
'intervaltree 2.1.0',
'ipykernel 4.10.1',
'ipython 5.5.0',
'ipython-genutils 0.2.0',
'ipython-sql 0.3.9',
'ipywidgets 7.6.5',
'itsdangerous 1.1.0',
'jax 0.3.1',
'jaxlib 0.3.0+cuda11.cudnn805',
'jedi 0.18.1',
'jieba 0.42.1',
'Jinja2 2.11.3',
'joblib 1.1.0',
'jpeg4py 0.1.4',
'jsonschema 4.3.3',
'jupyter 1.0.0',
'jupyter-client 5.3.5',
'jupyter-console 5.2.0',
'jupyter-core 4.9.2',
'jupyterlab-pygments 0.1.2',
'jupyterlab-widgets 1.0.2',
'kaggle 1.5.12',
'kapre 0.3.7',
'keras 2.8.0',
'Keras-Preprocessing 1.1.2',
'keras-vis 0.4.1',
'kiwisolver 1.3.2',
'korean-lunar-calendar 0.2.1',
'libclang 13.0.0',
'librosa 0.8.1',
'lightgbm 2.2.3',
'llvmlite 0.34.0',
'lmdb 0.99',
'LunarCalendar 0.0.9',
'lxml 4.2.6',
'Markdown 3.3.6',
'MarkupSafe 2.0.1',
'matplotlib 3.2.2',
'matplotlib-inline 0.1.3',
'matplotlib-venn 0.11.6',
'missingno 0.5.1',
'mistune 0.8.4',
'mizani 0.6.0',
'mkl 2019.0',
'mlxtend 0.14.0',
'more-itertools 8.12.0',
'moviepy 0.2.3.5',
'mpmath 1.2.1',
'msgpack 1.0.3',
'multiprocess 0.70.12.2',
'multitasking 0.0.10',
'murmurhash 1.0.6',
'music21 5.5.0',
'natsort 5.5.0',
'nbclient 0.5.12',
'nbconvert 5.6.1',
'nbformat 5.1.3',
'nest-asyncio 1.5.4',
'netCDF4 1.5.8',
'networkx 2.6.3',
'nibabel 3.0.2',
'nltk 3.2.5',
'notebook 5.3.1',
'numba 0.51.2',
'numexpr 2.8.1',
'numpy 1.21.5',
'nvidia-ml-py3 7.352.0',
'oauth2client 4.1.3',
'oauthlib 3.2.0',
'okgrade 0.4.3',
'opencv-contrib-python 4.1.2.30',
'opencv-python 4.1.2.30',
'openpyxl 3.0.9',
'opt-einsum 3.3.0',
'osqp 0.6.2.post0',
'packaging 21.3',
'palettable 3.3.0',
'pandas 1.3.5',
'pandas-datareader 0.9.0',
'pandas-gbq 0.13.3',
'pandas-profiling 1.4.1',
'pandocfilters 1.5.0',
'panel 0.12.1',
'param 1.12.0',
'parso 0.8.3',
'pathlib 1.0.1',
'patsy 0.5.2',
'pep517 0.12.0',
'pexpect 4.8.0',
'pickleshare 0.7.5',
'Pillow 7.1.2',
'pip 21.1.3',
'pip-tools 6.2.0',
'plac 1.1.3',
'plotly 5.5.0',
'plotnine 0.6.0',
'pluggy 0.7.1',
'pooch 1.6.0',
'portpicker 1.3.9',
'prefetch-generator 1.0.1',
'preshed 3.0.6',
'prettytable 3.2.0',
'progressbar2 3.38.0',
'prometheus-client 0.13.1',
'promise 2.3',
'prompt-toolkit 1.0.18',
'protobuf 3.17.3',
'psutil 5.4.8',
'psycopg2 2.7.6.1',
'ptyprocess 0.7.0',
'py 1.11.0',
'pyarrow 6.0.1',
'pyasn1 0.4.8',
'pyasn1-modules 0.2.8',
'pycocotools 2.0.4',
'pycparser 2.21',
'pyct 0.4.8',
'pydata-google-auth 1.3.0',
'pydot 1.3.0',
'pydot-ng 2.0.0',
'pydotplus 2.0.2',
'PyDrive 1.3.1',
'pyemd 0.5.1',
'pyerfa 2.0.0.1',
'pyglet 1.5.0',
'Pygments 2.6.1',
'pygobject 3.26.1',
'pymc3 3.11.4',
'PyMeeus 0.5.11',
'pymongo 4.0.2',
'pymystem3 0.2.0',
'PyOpenGL 3.1.6',
'pyparsing 3.0.7',
'pyrsistent 0.18.1',
'pysndfile 1.3.8',
'PySocks 1.7.1',
'pystan 2.19.1.1',
'pytest 3.6.4',
'python-apt 0.0.0',
'python-chess 0.23.11',
'python-dateutil 2.8.2',
'python-louvain 0.16',
'python-slugify 6.1.1',
'python-utils 3.1.0',
'pytz 2018.9',
'pyviz-comms 2.1.0',
'PyWavelets 1.2.0',
'PyYAML 3.13',
'pyzmq 22.3.0',
'qdldl 0.1.5.post0',
'qtconsole 5.2.2',
'QtPy 2.0.1',
'regex 2019.12.20',
'requests 2.23.0',
'requests-oauthlib 1.3.1',
'resampy 0.2.2',
'rpy2 3.4.5',
'rsa 4.8',
'scikit-image 0.18.3',
'scikit-learn 1.0.2',
'scipy 1.4.1',
'screen-resolution-extra 0.0.0',
'scs 3.2.0',
'seaborn 0.11.2',
'semver 2.13.0',
'Send2Trash 1.8.0',
'setuptools 57.4.0',
'setuptools-git 1.2',
'Shapely 1.8.1.post1',
'simplegeneric 0.8.1',
'six 1.15.0',
'sklearn 0.0',
'sklearn-pandas 1.8.0',
'smart-open 5.2.1',
'snowballstemmer 2.2.0',
'sortedcontainers 2.4.0',
'SoundFile 0.10.3.post1',
'spacy 2.2.4',
'Sphinx 1.8.6',
'sphinxcontrib-serializinghtml 1.1.5',
'sphinxcontrib-websupport 1.2.4',
'SQLAlchemy 1.4.32',
'sqlparse 0.4.2',
'srsly 1.0.5',
'statsmodels 0.10.2',
'sympy 1.7.1',
'tables 3.7.0',
'tabulate 0.8.9',
'tblib 1.7.0',
'tenacity 8.0.1',
'tensorboard 2.8.0',
'tensorboard-data-server 0.6.1',
'tensorboard-plugin-wit 1.8.1',
'tensorflow 2.8.0',
'tensorflow-datasets 4.0.1',
'tensorflow-estimator 2.8.0',
'tensorflow-gcs-config 2.8.0',
'tensorflow-hub 0.12.0',
'tensorflow-io-gcs-filesystem 0.24.0',
'tensorflow-metadata 1.7.0',
'tensorflow-probability 0.16.0',
'termcolor 1.1.0',
'terminado 0.13.3',
'testpath 0.6.0',
'text-unidecode 1.3',
'textblob 0.15.3',
'Theano-PyMC 1.1.2',
'thinc 7.4.0',
'threadpoolctl 3.1.0',
'tifffile 2021.11.2',
'tomli 2.0.1',
'toolz 0.11.2',
'torch 1.10.0+cu111',
'torchaudio 0.10.0+cu111',
'torchsummary 1.5.1',
'torchtext 0.11.0',
'torchvision 0.11.1+cu111',
'tornado 5.1.1',
'tqdm 4.63.0',
'traitlets 5.1.1',
'tweepy 3.10.0',
'typeguard 2.7.1',
'typing-extensions 3.10.0.2',
'tzlocal 1.5.1',
'uritemplate 3.0.1',
'urllib3 1.24.3',
'vega-datasets 0.9.0',
'wasabi 0.9.0',
'wcwidth 0.2.5',
'webencodings 0.5.1',
'Werkzeug 1.0.1',
'wheel 0.37.1',
'widgetsnbextension 3.5.2',
'wordcloud 1.5.0',
'wrapt 1.13.3',
'xarray 0.18.2',
'xgboost 0.90',
'xkit 0.0.0',
'xlrd 1.1.0',
'xlwt 1.3.0',
'yellowbrick 1.4',
'zict 2.1.0',
'zipp 3.7.0']
Most libraries can be installed quickly with a pip or apt.
Python 3
To install pytorch, add a cell with:
!pip3 install -q http://download.pytorch.org/whl/cu80/torch-0.3.0.post4-cp36-cp36m-linux_x86_64.whl && pip3 install -q torchvision
Here's an example notebook
Python 2
For example, to install pytorch, add a cell with the following command:
!pip install -q http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl && pip install -q torchvision
(Installation should take ~25 seconds.)
To install opencv, add a cell with:
!pip install -q opencv-python && apt -qq update && apt -qq install -y libsm6 libxext6
Here's an example notebook
Related
How to link the bitcodes of PostgreSQL
I want to run llvm-slicer (source) for PostgreSQL main executable file (i.e., PG_ROOT/src/backend/postgres) to carry backward slicing on PostgreSQL. llvm-slicer runs on top of bitcode (.bc file). I have compiled PostgreSQL via ./configure CC=clang-6.0 && make CC=clang-6.0, duiring which, the final compile command that link many .o files together is (very long): clang-6.0 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2 access/brin/brin.o access/brin/brin_pageops.o access/brin/brin_revmap.o access/brin/brin_tuple.o access/brin/brin_xlog.o access/brin/brin_minmax.o access/brin/brin_inclusion.o access/brin/brin_validate.o access/common/bufmask.o access/common/heaptuple.o access/common/indextuple.o access/common/printsimple.o access/common/printtup.o access/common/relation.o access/common/reloptions.o access/common/scankey.o access/common/session.o access/common/tupconvert.o access/common/tupdesc.o access/gin/ginutil.o access/gin/gininsert.o access/gin/ginxlog.o access/gin/ginentrypage.o access/gin/gindatapage.o access/gin/ginbtree.o access/gin/ginscan.o access/gin/ginget.o access/gin/ginvacuum.o access/gin/ginarrayproc.o access/gin/ginbulk.o access/gin/ginfast.o access/gin/ginpostinglist.o access/gin/ginlogic.o access/gin/ginvalidate.o access/gist/gist.o access/gist/gistutil.o access/gist/gistxlog.o access/gist/gistvacuum.o access/gist/gistget.o access/gist/gistscan.o access/gist/gistproc.o access/gist/gistsplit.o access/gist/gistbuild.o access/gist/gistbuildbuffers.o access/gist/gistvalidate.o access/hash/hash.o access/hash/hashfunc.o access/hash/hashinsert.o access/hash/hashovfl.o access/hash/hashpage.o access/hash/hashsearch.o access/hash/hashsort.o access/hash/hashutil.o access/hash/hashvalidate.o access/hash/hash_xlog.o access/heap/heapam.o access/heap/heapam_handler.o access/heap/heapam_visibility.o access/heap/hio.o access/heap/pruneheap.o access/heap/rewriteheap.o access/heap/syncscan.o access/heap/tuptoaster.o access/heap/vacuumlazy.o access/heap/visibilitymap.o access/index/amapi.o access/index/amvalidate.o access/index/genam.o access/index/indexam.o access/nbtree/nbtcompare.o access/nbtree/nbtinsert.o access/nbtree/nbtpage.o access/nbtree/nbtree.o access/nbtree/nbtsearch.o access/nbtree/nbtsplitloc.o access/nbtree/nbtutils.o access/nbtree/nbtsort.o access/nbtree/nbtvalidate.o access/nbtree/nbtxlog.o access/rmgrdesc/brindesc.o access/rmgrdesc/clogdesc.o access/rmgrdesc/committsdesc.o access/rmgrdesc/dbasedesc.o access/rmgrdesc/genericdesc.o access/rmgrdesc/gindesc.o access/rmgrdesc/gistdesc.o access/rmgrdesc/hashdesc.o access/rmgrdesc/heapdesc.o access/rmgrdesc/logicalmsgdesc.o access/rmgrdesc/mxactdesc.o access/rmgrdesc/nbtdesc.o access/rmgrdesc/relmapdesc.o access/rmgrdesc/replorigindesc.o access/rmgrdesc/seqdesc.o access/rmgrdesc/smgrdesc.o access/rmgrdesc/spgdesc.o access/rmgrdesc/standbydesc.o access/rmgrdesc/tblspcdesc.o access/rmgrdesc/xactdesc.o access/rmgrdesc/xlogdesc.o access/spgist/spgutils.o access/spgist/spginsert.o access/spgist/spgscan.o access/spgist/spgvacuum.o access/spgist/spgvalidate.o access/spgist/spgdoinsert.o access/spgist/spgxlog.o access/spgist/spgtextproc.o access/spgist/spgquadtreeproc.o access/spgist/spgkdtreeproc.o access/spgist/spgproc.o access/table/table.o access/table/tableam.o access/table/tableamapi.o access/tablesample/bernoulli.o access/tablesample/system.o access/tablesample/tablesample.o access/transam/clog.o access/transam/commit_ts.o access/transam/generic_xlog.o access/transam/multixact.o access/transam/parallel.o access/transam/rmgr.o access/transam/slru.o access/transam/subtrans.o access/transam/timeline.o access/transam/transam.o access/transam/twophase.o access/transam/twophase_rmgr.o access/transam/varsup.o access/transam/xact.o access/transam/xlog.o access/transam/xlogarchive.o access/transam/xlogfuncs.o access/transam/xloginsert.o access/transam/xlogreader.o access/transam/xlogutils.o bootstrap/bootparse.o bootstrap/bootstrap.o catalog/catalog.o catalog/dependency.o catalog/heap.o catalog/index.o catalog/indexing.o catalog/namespace.o catalog/aclchk.o catalog/objectaccess.o catalog/objectaddress.o catalog/partition.o catalog/pg_aggregate.o catalog/pg_collation.o catalog/pg_constraint.o catalog/pg_conversion.o catalog/pg_depend.o catalog/pg_enum.o catalog/pg_inherits.o catalog/pg_largeobject.o catalog/pg_namespace.o catalog/pg_operator.o catalog/pg_proc.o catalog/pg_publication.o catalog/pg_range.o catalog/pg_db_role_setting.o catalog/pg_shdepend.o catalog/pg_subscription.o catalog/pg_type.o catalog/storage.o catalog/toasting.o parser/analyze.o parser/gram.o parser/scan.o parser/parser.o parser/parse_agg.o parser/parse_clause.o parser/parse_coerce.o parser/parse_collate.o parser/parse_cte.o parser/parse_enr.o parser/parse_expr.o parser/parse_func.o parser/parse_node.o parser/parse_oper.o parser/parse_param.o parser/parse_relation.o parser/parse_target.o parser/parse_type.o parser/parse_utilcmd.o parser/scansup.o commands/amcmds.o commands/aggregatecmds.o commands/alter.o commands/analyze.o commands/async.o commands/cluster.o commands/comment.o commands/collationcmds.o commands/constraint.o commands/conversioncmds.o commands/copy.o commands/createas.o commands/dbcommands.o commands/define.o commands/discard.o commands/dropcmds.o commands/event_trigger.o commands/explain.o commands/extension.o commands/foreigncmds.o commands/functioncmds.o commands/indexcmds.o commands/lockcmds.o commands/matview.o commands/operatorcmds.o commands/opclasscmds.o commands/policy.o commands/portalcmds.o commands/prepare.o commands/proclang.o commands/publicationcmds.o commands/schemacmds.o commands/seclabel.o commands/sequence.o commands/statscmds.o commands/subscriptioncmds.o commands/tablecmds.o commands/tablespace.o commands/trigger.o commands/tsearchcmds.o commands/typecmds.o commands/user.o commands/vacuum.o commands/variable.o commands/view.o executor/execAmi.o executor/execCurrent.o executor/execExpr.o executor/execExprInterp.o executor/execGrouping.o executor/execIndexing.o executor/execJunk.o executor/execMain.o executor/execParallel.o executor/execPartition.o executor/execProcnode.o executor/execReplication.o executor/execScan.o executor/execSRF.o executor/execTuples.o executor/execUtils.o executor/functions.o executor/instrument.o executor/nodeAppend.o executor/nodeAgg.o executor/nodeBitmapAnd.o executor/nodeBitmapOr.o executor/nodeBitmapHeapscan.o executor/nodeBitmapIndexscan.o executor/nodeCustom.o executor/nodeFunctionscan.o executor/nodeGather.o executor/nodeHash.o executor/nodeHashjoin.o executor/nodeIndexscan.o executor/nodeIndexonlyscan.o executor/nodeLimit.o executor/nodeLockRows.o executor/nodeGatherMerge.o executor/nodeMaterial.o executor/nodeMergeAppend.o executor/nodeMergejoin.o executor/nodeModifyTable.o executor/nodeNestloop.o executor/nodeProjectSet.o executor/nodeRecursiveunion.o executor/nodeResult.o executor/nodeSamplescan.o executor/nodeSeqscan.o executor/nodeSetOp.o executor/nodeSort.o executor/nodeUnique.o executor/nodeValuesscan.o executor/nodeCtescan.o executor/nodeNamedtuplestorescan.o executor/nodeWorktablescan.o executor/nodeGroup.o executor/nodeSubplan.o executor/nodeSubqueryscan.o executor/nodeTidscan.o executor/nodeForeignscan.o executor/nodeWindowAgg.o executor/tstoreReceiver.o executor/tqueue.o executor/spi.o executor/nodeTableFuncscan.o foreign/foreign.o lib/binaryheap.o lib/bipartite_match.o lib/bloomfilter.o lib/dshash.o lib/hyperloglog.o lib/ilist.o lib/integerset.o lib/knapsack.o lib/pairingheap.o lib/rbtree.o lib/stringinfo.o libpq/be-fsstubs.o libpq/be-secure.o libpq/be-secure-common.o libpq/auth.o libpq/crypt.o libpq/hba.o libpq/ifaddr.o libpq/pqcomm.o libpq/pqformat.o libpq/pqmq.o libpq/pqsignal.o libpq/auth-scram.o main/main.o nodes/nodeFuncs.o nodes/nodes.o nodes/list.o nodes/bitmapset.o nodes/tidbitmap.o nodes/copyfuncs.o nodes/equalfuncs.o nodes/extensible.o nodes/makefuncs.o nodes/outfuncs.o nodes/readfuncs.o nodes/print.o nodes/read.o nodes/params.o nodes/value.o optimizer/geqo/geqo_copy.o optimizer/geqo/geqo_eval.o optimizer/geqo/geqo_main.o optimizer/geqo/geqo_misc.o optimizer/geqo/geqo_mutation.o optimizer/geqo/geqo_pool.o optimizer/geqo/geqo_random.o optimizer/geqo/geqo_recombination.o optimizer/geqo/geqo_selection.o optimizer/geqo/geqo_erx.o optimizer/geqo/geqo_pmx.o optimizer/geqo/geqo_cx.o optimizer/geqo/geqo_px.o optimizer/geqo/geqo_ox1.o optimizer/geqo/geqo_ox2.o optimizer/path/allpaths.o optimizer/path/clausesel.o optimizer/path/costsize.o optimizer/path/equivclass.o optimizer/path/indxpath.o optimizer/path/joinpath.o optimizer/path/joinrels.o optimizer/path/pathkeys.o optimizer/path/tidpath.o optimizer/plan/analyzejoins.o optimizer/plan/createplan.o optimizer/plan/initsplan.o optimizer/plan/planagg.o optimizer/plan/planmain.o optimizer/plan/planner.o optimizer/plan/setrefs.o optimizer/plan/subselect.o optimizer/prep/prepjointree.o optimizer/prep/prepqual.o optimizer/prep/preptlist.o optimizer/prep/prepunion.o optimizer/util/appendinfo.o optimizer/util/clauses.o optimizer/util/inherit.o optimizer/util/joininfo.o optimizer/util/orclauses.o optimizer/util/paramassign.o optimizer/util/pathnode.o optimizer/util/placeholder.o optimizer/util/plancat.o optimizer/util/predtest.o optimizer/util/relnode.o optimizer/util/restrictinfo.o optimizer/util/tlist.o optimizer/util/var.o partitioning/partbounds.o partitioning/partdesc.o partitioning/partprune.o port/atomics.o port/pg_sema.o port/pg_shmem.o postmaster/autovacuum.o postmaster/bgworker.o postmaster/bgwriter.o postmaster/checkpointer.o postmaster/fork_process.o postmaster/pgarch.o postmaster/pgstat.o postmaster/postmaster.o postmaster/startup.o postmaster/syslogger.o postmaster/walwriter.o regex/regcomp.o regex/regerror.o regex/regexec.o regex/regfree.o regex/regprefix.o regex/regexport.o replication/logical/decode.o replication/logical/launcher.o replication/logical/logical.o replication/logical/logicalfuncs.o replication/logical/message.o replication/logical/origin.o replication/logical/proto.o replication/logical/relation.o replication/logical/reorderbuffer.o replication/logical/snapbuild.o replication/logical/tablesync.o replication/logical/worker.o replication/walsender.o replication/walreceiverfuncs.o replication/walreceiver.o replication/basebackup.o replication/repl_gram.o replication/slot.o replication/slotfuncs.o replication/syncrep.o replication/syncrep_gram.o rewrite/rewriteRemove.o rewrite/rewriteDefine.o rewrite/rewriteHandler.o rewrite/rewriteManip.o rewrite/rewriteSupport.o rewrite/rowsecurity.o statistics/extended_stats.o statistics/dependencies.o statistics/mcv.o statistics/mvdistinct.o storage/buffer/buf_table.o storage/buffer/buf_init.o storage/buffer/bufmgr.o storage/buffer/freelist.o storage/buffer/localbuf.o storage/file/fd.o storage/file/buffile.o storage/file/copydir.o storage/file/reinit.o storage/file/sharedfileset.o storage/freespace/freespace.o storage/freespace/fsmpage.o storage/freespace/indexfsm.o storage/ipc/barrier.o storage/ipc/dsm_impl.o storage/ipc/dsm.o storage/ipc/ipc.o storage/ipc/ipci.o storage/ipc/latch.o storage/ipc/pmsignal.o storage/ipc/procarray.o storage/ipc/procsignal.o storage/ipc/shmem.o storage/ipc/shmqueue.o storage/ipc/shm_mq.o storage/ipc/shm_toc.o storage/ipc/signalfuncs.o storage/ipc/sinval.o storage/ipc/sinvaladt.o storage/ipc/standby.o storage/large_object/inv_api.o storage/lmgr/lmgr.o storage/lmgr/lock.o storage/lmgr/proc.o storage/lmgr/deadlock.o storage/lmgr/lwlock.o storage/lmgr/lwlocknames.o storage/lmgr/spin.o storage/lmgr/s_lock.o storage/lmgr/predicate.o storage/lmgr/condition_variable.o storage/page/bufpage.o storage/page/checksum.o storage/page/itemptr.o storage/smgr/md.o storage/smgr/smgr.o storage/sync/sync.o tcop/dest.o tcop/fastpath.o tcop/postgres.o tcop/pquery.o tcop/utility.o tsearch/ts_locale.o tsearch/ts_parse.o tsearch/wparser.o tsearch/wparser_def.o tsearch/dict.o tsearch/dict_simple.o tsearch/dict_synonym.o tsearch/dict_thesaurus.o tsearch/dict_ispell.o tsearch/regis.o tsearch/spell.o tsearch/to_tsany.o tsearch/ts_selfuncs.o tsearch/ts_typanalyze.o tsearch/ts_utils.o utils/adt/acl.o utils/adt/amutils.o utils/adt/arrayfuncs.o utils/adt/array_expanded.o utils/adt/array_selfuncs.o utils/adt/array_typanalyze.o utils/adt/array_userfuncs.o utils/adt/arrayutils.o utils/adt/ascii.o utils/adt/bool.o utils/adt/cash.o utils/adt/char.o utils/adt/cryptohashes.o utils/adt/date.o utils/adt/datetime.o utils/adt/datum.o utils/adt/dbsize.o utils/adt/domains.o utils/adt/encode.o utils/adt/enum.o utils/adt/expandeddatum.o utils/adt/expandedrecord.o utils/adt/float.o utils/adt/format_type.o utils/adt/formatting.o utils/adt/genfile.o utils/adt/geo_ops.o utils/adt/geo_selfuncs.o utils/adt/geo_spgist.o utils/adt/inet_cidr_ntop.o utils/adt/inet_net_pton.o utils/adt/int.o utils/adt/int8.o utils/adt/json.o utils/adt/jsonb.o utils/adt/jsonb_gin.o utils/adt/jsonb_op.o utils/adt/jsonb_util.o utils/adt/jsonfuncs.o utils/adt/jsonpath_gram.o utils/adt/jsonpath.o utils/adt/jsonpath_exec.o utils/adt/like.o utils/adt/like_support.o utils/adt/lockfuncs.o utils/adt/mac.o utils/adt/mac8.o utils/adt/misc.o utils/adt/name.o utils/adt/network.o utils/adt/network_gist.o utils/adt/network_selfuncs.o utils/adt/network_spgist.o utils/adt/numeric.o utils/adt/numutils.o utils/adt/oid.o utils/adt/oracle_compat.o utils/adt/orderedsetaggs.o utils/adt/partitionfuncs.o utils/adt/pg_locale.o utils/adt/pg_lsn.o utils/adt/pg_upgrade_support.o utils/adt/pgstatfuncs.o utils/adt/pseudotypes.o utils/adt/quote.o utils/adt/rangetypes.o utils/adt/rangetypes_gist.o utils/adt/rangetypes_selfuncs.o utils/adt/rangetypes_spgist.o utils/adt/rangetypes_typanalyze.o utils/adt/regexp.o utils/adt/regproc.o utils/adt/ri_triggers.o utils/adt/rowtypes.o utils/adt/ruleutils.o utils/adt/selfuncs.o utils/adt/tid.o utils/adt/timestamp.o utils/adt/trigfuncs.o utils/adt/tsginidx.o utils/adt/tsgistidx.o utils/adt/tsquery.o utils/adt/tsquery_cleanup.o utils/adt/tsquery_gist.o utils/adt/tsquery_op.o utils/adt/tsquery_rewrite.o utils/adt/tsquery_util.o utils/adt/tsrank.o utils/adt/tsvector.o utils/adt/tsvector_op.o utils/adt/tsvector_parser.o utils/adt/txid.o utils/adt/uuid.o utils/adt/varbit.o utils/adt/varchar.o utils/adt/varlena.o utils/adt/version.o utils/adt/windowfuncs.o utils/adt/xid.o utils/adt/xml.o utils/cache/attoptcache.o utils/cache/catcache.o utils/cache/evtcache.o utils/cache/inval.o utils/cache/lsyscache.o utils/cache/partcache.o utils/cache/plancache.o utils/cache/relcache.o utils/cache/relmapper.o utils/cache/relfilenodemap.o utils/cache/spccache.o utils/cache/syscache.o utils/cache/ts_cache.o utils/cache/typcache.o utils/error/assert.o utils/error/elog.o utils/fmgr/dfmgr.o utils/fmgr/fmgr.o utils/fmgr/funcapi.o utils/hash/dynahash.o utils/hash/hashfn.o utils/hash/pg_crc.o utils/init/globals.o utils/init/miscinit.o utils/init/postinit.o utils/mb/encnames.o utils/mb/conv.o utils/mb/mbutils.o utils/mb/wchar.o utils/mb/wstrcmp.o utils/mb/wstrncmp.o utils/misc/guc.o utils/misc/help_config.o utils/misc/pg_config.o utils/misc/pg_controldata.o utils/misc/pg_rusage.o utils/misc/ps_status.o utils/misc/queryenvironment.o utils/misc/rls.o utils/misc/sampling.o utils/misc/superuser.o utils/misc/timeout.o utils/misc/tzparser.o utils/mmgr/aset.o utils/mmgr/dsa.o utils/mmgr/freepage.o utils/mmgr/generation.o utils/mmgr/mcxt.o utils/mmgr/memdebug.o utils/mmgr/portalmem.o utils/mmgr/slab.o utils/resowner/resowner.o utils/sort/logtape.o utils/sort/sharedtuplestore.o utils/sort/sortsupport.o utils/sort/tuplesort.o utils/sort/tuplestore.o utils/time/combocid.o utils/time/snapmgr.o utils/fmgrtab.o ../../src/timezone/localtime.o ../../src/timezone/strftime.o ../../src/timezone/pgtz.o jit/jit.o ../../src/port/libpgport_srv.a ../../src/common/libpgcommon_srv.a -L../../src/port -L../../src/common -Wl,--as-needed -Wl,-rpath,'/usr/local/pgsql/lib',--enable-new-dtags -Wl,-E -lpthread -lrt -lcrypt -ldl -lm -o postgres As documented by llvm-slicer, I should link the bitcodes together with llvm-link (e.g., llvm-link bitcode1.bc bitcode2.bc ... -o bitcode.bc) to get something like postgres.bc. But I only know how to produce the .bc file for each .c file (via -emit-llvm); and the very-long command above contains many other options (e.g., -lm -L ...) and some .a files, so simply replace .o files with .bc files seems not work. Question So I want to know how to get postgres.bc? Thanks!
Solution: whole-program-llvm. It provides tools for building whole-program (or whole-library) LLVM bitcode files from an unmodified C or C++ source package. It currently runs on *nix platforms such as Linux, FreeBSD, and Mac OS X.
m2crypto: undefined symbol: sslv3_method
I tried to install M2Crypto with: pip install M2Crypto But when I try to import M2Crypto I get an error: >>> import M2Crypto Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/M2Crypto/__init__.py", line 26, in from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err, File "/usr/local/lib/python2.7/dist-packages/M2Crypto/ASN1.py", line 15, in from M2Crypto import BIO, m2, util File "/usr/local/lib/python2.7/dist-packages/M2Crypto/BIO.py", line 10, in from M2Crypto import m2, six, util File "/usr/local/lib/python2.7/dist-packages/M2Crypto/m2.py", line 30, in from M2Crypto.m2crypto import * File "/usr/local/lib/python2.7/dist-packages/M2Crypto/m2crypto.py", line 26, in _m2crypto = swig_import_helper() File "/usr/local/lib/python2.7/dist-packages/M2Crypto/m2crypto.py", line 22, in swig_import_helper _mod = imp.load_module('_m2crypto', fp, pathname, description) ImportError: /usr/local/lib/python2.7/dist-packages/M2Crypto/_m2crypto.so: undefined symbol: sslv3_method
If you use ubuntu, you should use the m2crypto(python-m2crypto) from apt server, it was built with all necessary dependencies: pip uninstall M2crypto # remove the current error version apt install python-m2crypto -y # install new version from the repo
Ruby problems with formotion module
There is an app written in ruby that I need to get running. It worked before IOS11 but is now throwing errors. I have formotion installed and all the appropriate gems and the SDK. I am having trouble getting the compiler to recognize that there is a formotion gem with things inside it. I am getting an uncaught exception "Name Error" and it says that the variable im trying to instantiate within the formotion class is an uninitialized constant. Any help with this error would be appreciated. Here are some bit of the code, the error points to row.text_field.resignFirstResponder module RowType class PickerWithDoneRow < PickerRow include RowType::ItemsMapper def after_build(cell) super keyboardDoneButtonView = UIToolbar.new keyboardDoneButtonView.barStyle = UIBarStyleBlack keyboardDoneButtonView.tintColor = "#000".uicolor keyboardDoneButtonView.translucent = false keyboardDoneButtonView.sizeToFit # keyboardDoneButtonView.barTintColor = "#BFC3C8".uicolor keyboardDoneButtonView.barTintColor = "#EFEFF4".uicolor doneButton = UIBarButtonItem.alloc.initWithTitle("Done", style:UIBarButtonItemStylePlain, target:self, action: 'picker_done_clicked') spacer1 = UIBarButtonItem.alloc.initWithBarButtonSystemItem(UIBarButtonSystemItemFlexibleSpace, target:self, action: nil) spacer = UIBarButtonItem.alloc.initWithBarButtonSystemItem(UIBarButtonSystemItemFlexibleSpace, target:self, action: nil) keyboardDoneButtonView.setItems([spacer, spacer1, doneButton]) row.text_field.inputAccessoryView = keyboardDoneButtonView end def picker_done_clicked row.text_field.resignFirstResponder end end end
There were a few gems required for the program that were not included in the code as gems that needed to be installed. The gems needed were: bigdecimal (1.2.0) bubble-wrap (1.3.0) bundler (1.16.0) formotion (1.5.1) io-console (0.4.2) json (1.7.7) minitest (4.3.2) motion-csv (0.0.2) motion-require (0.0.7) motion-testflight (1.5) psych (2.0.0) rake (10.1.0, 0.9.6) rdoc (4.0.0) sugarcube (1.1.0) test-unit (2.0.0.0)
environment variables using subprocess.check_output Python
I'm trying to do some basic module setups on my server using Python. Its a bit difficult as I have no access to the internet. This is my code import sys import os from subprocess import CalledProcessError, STDOUT, check_output def run_in_path(command, dir_path, env_var=''): env_var = os.environ["PATH"] = os.environ["PATH"] + env_var print(env_var) try: p = check_output(command, cwd=dir_path, stderr=STDOUT) except CalledProcessError as e: sys.stderr.write(e.output.decode("utf-8")) sys.stderr.flush() return e.returncode else: return 0 def main(): requests_install = run_in_path('python setup.py build', 'D:\installed_software\python modules\kennethreitz-requests-e95e173') SQL_install = run_in_path('python setup.py install', # install SQL module pypyodbc 'D:\installed_software\python modules\pypyodbc-1.3.3\pypyodbc-1.3.3') setup_tools = run_in_path('python setup.py install', # install setup tools 'D:\installed_software\python modules\setuptools-17.1.1') psycopg2 = run_in_path('easy_install psycopg2-2.6.1.win-amd64-py3.3-pg9.4.4-release', # install setup tools 'D:\installed_software\python modules', ';C:\srv_apps\Python33\Scripts\easy_install.exe') print('setup complete') if __name__ == "__main__": sys.exit(main()) now it gets tricky when i start trying to use easy install. It appears my env variables are not being used by my subprocess.check_output call File "C:\srv_apps\Python33\lib\subprocess.py", line 1110, in _execute_child raise WindowsError(*e.args) FileNotFoundError: [WinError 2] The system cannot find the file specified I don't want to have to upgrade to 3.4 where easy install is installed by default because my other modules are not supported on 3.4. My main challenge is the subprocess.check_call method does not take environment variables as an input and im wary of trying to use Popen() as I have never really got it to work successfully in the past. Any help would be greatly appreciated.
PATH should contain directories e.g., r'C:\Python33\Scripts', not files such as: r'C:\Python33\Scripts\easy_install.exe' Don't hardcode utf-8 for an arbitrary command, you could enable text mode using universal_newlines parameter (not tested): #!/usr/bin/env python3 import locale import sys from subprocess import CalledProcessError, STDOUT, check_output def run(command, *, cwd=None, env=None): try: ignored = check_output(command, cwd=cwd, env=env, stderr=STDOUT, universal_newlines=True) except CalledProcessError as e: sys.stderr.write(e.output) sys.stderr.flush() return e.returncode else: return 0 Example: import os path_var = os.pathsep.join(os.environ.get('PATH', os.defpath), some_dir) env = dict(os.environ, PATH=path_var) run("some_command", cwd=some_path, env=env) run("another_command", cwd=another_path, env=env)
Fatal error: Class 'DOMDocument' not found and in my PHP Version 5.2.16
My Configure Command is How can I fix this './configure' '--host=i686-redhat-linux-gnu' '--build=i686-redhat-linux-gnu' '--target=i386-redhat-linux' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--without-mime-magic' '--without-sqlite' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--disable-json' '--without-pspell'
The class 'DomDocument' is apart of the DOM extension. Per the documentation: This extension is enabled by default. It may be disabled by using the following option at compile time: --disable-dom Remove the --disable-dom flag from your configure script and the extension should be available.