conda-forge / requests-feedstock

A conda-smithy repository for requests.
BSD 3-Clause "New" or "Revised" License
2 stars 21 forks source link

Cannot import requests anymore #46

Closed lp-pyth closed 3 years ago

lp-pyth commented 3 years ago

Issue: I suddenly cannot import requests anymore even though I did not change anything in conda to my knowledge, except updating it and trying to reinstall request. I get this when trying to import: ModuleNotFoundError Traceback (most recent call last)

in ----> 1 import requests ModuleNotFoundError: No module named 'requests'
Environment (conda list):
``` $ conda list Name Version Build Channel _pytorch_select 0.1 cpu_0 absl-py 0.12.0 pypi_0 pypi aiohttp 3.7.4 py38h2bbff1b_1 anaconda-client 1.7.2 py38_0 anaconda-navigator 1.10.0 py38_0 anyio 2.2.0 py38haa95532_2 appdirs 1.4.4 py_0 apscheduler 3.7.0 py38haa244fe_0 conda-forge argon2-cffi 20.1.0 py38h2bbff1b_1 astunparse 1.6.3 pypi_0 pypi async-timeout 3.0.1 py38haa95532_0 async_generator 1.10 pyhd3eb1b0_0 attrs 20.3.0 pyhd3eb1b0_0 babel 2.9.0 pyhd3eb1b0_0 backcall 0.2.0 pyhd3eb1b0_0 backports 1.0 pyhd3eb1b0_2 backports.functools_lru_cache 1.6.4 pyhd3eb1b0_0 backports.tempfile 1.0 pyhd3eb1b0_1 backports.weakref 1.0.post1 py_1 beautifulsoup4 4.9.3 pyha847dfd_0 blas 1.0 mkl bleach 3.3.0 pyhd3eb1b0_0 boto3 1.17.46 pyhd3eb1b0_0 botocore 1.20.50 pyhd3eb1b0_1 bpemb 0.3.2 pyhd8ed1ab_1 conda-forge brotli-python 1.0.9 py38h82bb817_2 brotlipy 0.7.0 py38h2bbff1b_1003 bzip2 1.0.8 he774522_0 ca-certificates 2018.11.29 ha4d7672_0 conda-forge/label/cf201901 cachetools 4.2.2 pyhd3eb1b0_0 certifi 2020.12.5 py38haa95532_0 cffi 1.14.5 py38hcd4344a_0 chardet 3.0.4 py38haa95532_1003 click 7.1.2 pyhd3eb1b0_0 cloudpickle 1.6.0 py_0 clyent 1.2.2 py38_1 colorama 0.4.4 pyhd3eb1b0_0 conda 4.10.1 py38haa95532_1 conda-build 3.20.5 py38_1 conda-env 2.6.0 1 conda-package-handling 1.7.3 py38h8cc25b3_1 conda-verify 3.4.2 py_1 console_shortcut 0.1.1 4 cryptography 3.4.7 py38h71e12ea_0 cycler 0.10.0 py38_0 dash 1.19.0 pyhd8ed1ab_0 conda-forge dash-core-components 1.15.0 pyhd8ed1ab_0 conda-forge dash-html-components 1.1.2 pyh44b312d_0 conda-forge dash-renderer 1.9.0 pyhd3eb1b0_0 dash-table 4.11.2 pyhd8ed1ab_0 conda-forge dataclasses 0.8 pyh6d0b6a4_7 decorator 5.0.6 pyhd3eb1b0_0 defusedxml 0.7.1 pyhd3eb1b0_0 deprecated 1.2.12 pyhd3eb1b0_0 entrypoints 0.3 py38_0 et_xmlfile 1.0.1 py_1001 filelock 3.0.12 pyhd3eb1b0_1 flask 1.1.2 pyhd3eb1b0_0 flask-compress 1.9.0 pyhd3eb1b0_0 flatbuffers 1.12 pypi_0 pypi freetype 2.10.4 hd328e21_0 ftfy 5.8 py_0 future 0.18.2 py38_1 fuzzywuzzy 0.18.0 pyhd8ed1ab_0 conda-forge gast 0.3.3 pypi_0 pypi gdown 3.12.2 pyh9f0ad1d_0 conda-forge gensim 3.8.3 py38hd77b12b_2 glob2 0.7 pyhd3eb1b0_0 google-api-core 1.25.1 pyhd3eb1b0_0 google-auth 1.28.1 pypi_0 pypi google-auth-oauthlib 0.4.4 pypi_0 pypi google-cloud-core 1.6.0 pyhd3eb1b0_0 google-cloud-storage 1.38.0 pyhd3eb1b0_0 google-crc32c 1.1.2 py38h2bbff1b_0 google-pasta 0.2.0 pypi_0 pypi google-resumable-media 1.2.0 pyhd3eb1b0_1 googleapis-common-protos 1.53.0 py38h2eaa2aa_0 grpcio 1.32.0 pypi_0 pypi h5py 2.10.0 pypi_0 pypi huggingface_hub 0.0.8 pyhd8ed1ab_0 conda-forge hyperopt 0.2.5 pyh9f0ad1d_0 conda-forge icc_rt 2019.0.0 h0cc432a_1 icu 58.2 ha925a31_3 idna 2.10 pyhd3eb1b0_0 importlib-metadata 3.10.0 py38haa95532_0 importlib_metadata 3.10.0 hd3eb1b0_0 inflection 0.5.1 py38haa95532_0 intel-openmp 2019.4 245 ipykernel 5.3.4 py38h5ca1d4c_0 ipython 7.22.0 py38hd4e2768_0 ipython_genutils 0.2.0 pyhd3eb1b0_1 ipywidgets 7.6.3 pyhd3deb0d_0 conda-forge itsdangerous 1.1.0 pyhd3eb1b0_0 janome 0.4.1 pyhd8ed1ab_7 conda-forge jdcal 1.4.1 py_0 jedi 0.17.0 py38_0 jinja2 2.11.3 pyhd3eb1b0_0 jmespath 0.10.0 py_0 joblib 1.0.1 pyhd3eb1b0_0 jpeg 9b hb83a4c4_2 json5 0.9.5 py_0 jsonschema 3.2.0 py_2 jupyter-packaging 0.7.12 pyhd3eb1b0_0 jupyter-server-proxy 1.0 py_0 plotly jupyter_client 6.1.12 pyhd3eb1b0_0 jupyter_contrib_core 0.3.3 py_2 conda-forge jupyter_contrib_nbextensions 0.5.1 pyhd8ed1ab_2 conda-forge jupyter_core 4.7.1 py38haa95532_0 jupyter_highlight_selected_word 0.2.0 py38haa244fe_1002 conda-forge jupyter_latex_envs 1.4.6 pyhd8ed1ab_1002 conda-forge jupyter_nbextensions_configurator 0.4.1 py38haa244fe_2 conda-forge jupyter_server 1.4.1 py38haa95532_0 jupyterlab 3.0.14 pyhd8ed1ab_0 conda-forge jupyterlab-dash 0.1.0a2 py_0 plotly jupyterlab_pygments 0.1.2 py_0 jupyterlab_server 2.4.0 pyhd3eb1b0_0 jupyterlab_widgets 1.0.0 pyhd3eb1b0_1 jupyterthemes 0.20.0 py_1 conda-forge keras-preprocessing 1.1.2 pypi_0 pypi kiwisolver 1.3.1 py38hd77b12b_0 konoha 4.6.2 pyhd8ed1ab_1 conda-forge langdetect 1.0.8 pyh9f0ad1d_0 conda-forge lesscpy 0.13.0 py_1 conda-forge libarchive 3.4.2 h5e25573_0 libcrc32c 1.1.1 ha925a31_2 libiconv 1.15 h1df5818_7 liblief 0.10.1 ha925a31_0 libmklml 2019.0.5 haa95532_0 libpng 1.6.37 h2a8f88b_0 libprotobuf 3.14.0 h23ce68f_0 libsodium 1.0.18 h62dcd97_0 libtiff 4.2.0 hd0e1b90_0 libxml2 2.9.10 hb89e7f3_3 libxslt 1.1.34 he774522_0 lxml 4.6.3 py38h9b66d53_0 lz4-c 1.9.3 h2bbff1b_0 m2w64-gcc-libgfortran 5.3.0 6 m2w64-gcc-libs 5.3.0 7 m2w64-gcc-libs-core 5.3.0 7 m2w64-gmp 6.1.0 2 m2w64-libwinpthread-git 5.0.0.4634.697f757 2 markdown 3.3.4 pypi_0 pypi markupsafe 1.1.1 py38he774522_0 matplotlib 3.3.4 py38haa95532_0 matplotlib-base 3.3.4 py38h49ac443_0 menuinst 1.4.16 py38he774522_1 miktex 2.9.6753 h2fa13f4_1000 conda-forge mistune 0.8.4 py38he774522_1000 mkl 2019.4 245 mkl-service 2.3.0 py38h196d8e1_0 mkl_fft 1.3.0 py38h46781fe_0 mkl_random 1.1.0 py38hf9181ef_0 more-itertools 8.7.0 pyhd3eb1b0_0 mpld3 0.5.2 py38haa95532_0 msys2-conda-epoch 20160418 1 multidict 5.1.0 py38h2bbff1b_2 navigator-updater 0.2.1 py38_0 nb_conda_kernels 2.3.1 py38haa244fe_0 conda-forge nbclassic 0.2.6 pyhd3eb1b0_0 nbclient 0.5.3 pyhd3eb1b0_0 nbconvert 6.0.7 py38_0 anaconda nbformat 5.1.3 pyhd3eb1b0_0 nest-asyncio 1.5.1 pyhd3eb1b0_0 networkx 2.5 py_0 ninja 1.10.2 h6d14046_1 notebook 6.1.4 py38_0 numpy 1.19.2 py38hadc3359_0 numpy-base 1.19.2 py38ha3acd2a_0 oauthlib 3.1.0 pypi_0 pypi olefile 0.46 py_0 openpyxl 3.0.5 py_0 anaconda openssl 1.1.1k h2bbff1b_0 opt-einsum 3.3.0 pypi_0 pypi overrides 3.0.0 pyh9f0ad1d_0 conda-forge packaging 20.9 pyhd3eb1b0_0 pandas 1.1.3 py38ha925a31_0 anaconda pandoc 2.12 haa95532_0 pandocfilters 1.4.3 py38haa95532_1 parso 0.8.2 pyhd3eb1b0_0 patsy 0.5.1 py38_0 pickleshare 0.7.5 pyhd3eb1b0_1003 pillow 8.2.0 py38h4fa10fc_0 pip 21.0.1 py38haa95532_0 pkginfo 1.7.0 py38haa95532_0 plotly 4.14.3 pyhd3eb1b0_0 ply 3.11 py38_0 powershell_shortcut 0.0.1 3 prettytable 2.1.0 pyhd8ed1ab_0 conda-forge prometheus_client 0.10.1 pyhd3eb1b0_0 prompt-toolkit 3.0.17 pyh06a4308_0 protobuf 3.15.8 pypi_0 pypi psutil 5.8.0 py38h2bbff1b_1 py-lief 0.10.1 py38ha925a31_0 pyasn1 0.4.8 py_0 pyasn1-modules 0.2.8 pypi_0 pypi pycosat 0.6.3 py38h2bbff1b_0 pycparser 2.20 py_2 pyee 7.0.4 pyh9f0ad1d_0 conda-forge pygments 2.8.1 pyhd3eb1b0_0 pyjwt 1.7.1 py38_0 pymongo 3.11.4 py38hd77b12b_0 pyopenssl 20.0.1 pyhd3eb1b0_1 pyparsing 2.4.7 pyhd3eb1b0_0 pyppeteer 0.2.2 py_1 conda-forge pyqt 5.9.2 py38ha925a31_4 pyrsistent 0.17.3 py38he774522_0 pysocks 1.7.1 py38haa95532_0 python 3.8.5 h5fd99cc_1 python-dateutil 2.8.1 pyhd3eb1b0_0 python-flair 0.8 pyhd8ed1ab_0 conda-forge python-levenshtein 0.12.2 py38h2bbff1b_0 python-libarchive-c 2.9 pyhd3eb1b0_1 python_abi 3.8 1_cp38 conda-forge pytorch 1.6.0 cpu_py38h538a6d7_0 pytz 2021.1 pyhd3eb1b0_0 pywin32 227 py38he774522_1 pywinpty 0.5.7 py38_0 pyyaml 5.4.1 py38h2bbff1b_1 pyzmq 20.0.0 py38hd77b12b_1 qt 5.9.7 vc14h73c81de_0 qtpy 1.9.0 py_0 quandl 3.5.3 py38_0 anaconda regex 2021.4.4 py38h2bbff1b_0 requests 2.25.1 pyhd3eb1b0_0 retrying 1.3.3 py_2 rsa 4.7.2 pyhd3eb1b0_1 ruamel_yaml 0.15.100 py38h2bbff1b_0 s3transfer 0.3.6 pyhd3eb1b0_0 sacremoses 0.0.43 pyh9f0ad1d_0 conda-forge scikit-learn 0.24.1 py38hf11a4ad_0 scipy 1.6.2 py38h14eb087_0 seaborn 0.11.0 py_0 anaconda segtok 1.5.10 pyh9f0ad1d_0 conda-forge selenium 3.141.0 py38h294d835_1002 conda-forge send2trash 1.5.0 pyhd3eb1b0_1 sentencepiece 0.1.95 py38hbd9d945_0 conda-forge setuptools 50.3.0 py38h9490d1a_1 anaconda simpervisor 0.3 py_1 plotly sip 4.19.13 py38ha925a31_0 six 1.15.0 py38haa95532_0 smart_open 5.0.0 pyhd3eb1b0_0 sniffio 1.2.0 py38haa95532_1 soupsieve 2.2.1 pyhd3eb1b0_0 sqlite 3.35.4 h2bbff1b_0 sqlitedict 1.7.0 pyh9f0ad1d_0 conda-forge statsmodels 0.12.0 py38he774522_0 anaconda tabulate 0.8.9 py38haa95532_0 tensorboard 2.4.1 pypi_0 pypi tensorboard-plugin-wit 1.8.0 pypi_0 pypi tensorflow-estimator 2.4.0 pypi_0 pypi termcolor 1.1.0 pypi_0 pypi terminado 0.9.4 py38haa95532_0 testpath 0.4.4 pyhd3eb1b0_0 threadpoolctl 2.1.0 pyh5ca1d4c_0 tk 8.6.10 he774522_0 tokenizers 0.10.1 py38h291c280_0 conda-forge tornado 6.1 py38h2bbff1b_0 tqdm 4.59.0 pyhd3eb1b0_1 traitlets 5.0.5 pyhd3eb1b0_0 transformers 4.5.1 pyhd8ed1ab_0 conda-forge twilio 6.56.0 pyhd8ed1ab_0 conda-forge typing-extensions 3.7.4.3 hd3eb1b0_0 typing_extensions 3.7.4.3 pyh06a4308_0 tzlocal 2.0.0 py38haa95532_0 unidecode 1.2.0 pypi_0 pypi urllib3 1.26.4 pyhd3eb1b0_0 vc 14.2 h21ff451_1 vs2015_runtime 14.27.29016 h5e58377_2 wcwidth 0.2.5 py_0 webencodings 0.5.1 py38_1 websockets 8.1 py38h294d835_3 conda-forge werkzeug 1.0.1 pyhd3eb1b0_0 wheel 0.36.2 pyhd3eb1b0_0 widgetsnbextension 3.5.1 py38_0 win_inet_pton 1.1.0 py38haa95532_0 wincertstore 0.2 py38_0 winpty 0.4.3 4 wrapt 1.12.1 py38he774522_1 xlrd 1.2.0 py_0 anaconda xmltodict 0.12.0 py_0 xz 5.2.5 h62dcd97_0 yaml 0.2.5 he774522_0 yarl 1.5.1 py38he774522_0 zeromq 4.3.3 ha925a31_3 zipp 3.4.1 pyhd3eb1b0_0 zlib 1.2.11 h62dcd97_4 zstd 1.4.5 h04227a9_0 ```

Details about conda and system ( conda info ):
``` $ conda info active environment : base active env location : C:\Anaconda3 shell level : 1 user config file : C:\Users\mr\.condarc populated config files : C:\Users\mr\.condarc conda version : 4.10.1 conda-build version : 3.20.5 python version : 3.8.5.final.0 virtual packages : __win=0=0 __archspec=1=x86_64 base environment : C:\Anaconda3 (writable) conda av data dir : C:\Anaconda3\etc\conda conda av metadata url : https://repo.anaconda.com/pkgs/main channel URLs : https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/win-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/msys2/win-64 https://repo.anaconda.com/pkgs/msys2/noarch package cache : C:\Anaconda3\pkgs C:\Users\mr\.conda\pkgs C:\Users\mr\AppData\Local\conda\conda\pkgs envs directories : C:\Anaconda3\envs C:\Users\mr\.conda\envs C:\Users\mr\AppData\Local\conda\conda\envs platform : win-64 user-agent : conda/4.10.1 requests/2.25.1 CPython/3.8.5 Windows/10 Windows/10.0.19041 administrator : False netrc file : None offline mode : False ```
ocefpaf commented 3 years ago

You requests is not from conda-forge. Check your conda list results. Please take a look at https://conda-forge.org/docs/user/introduction.html#how-can-i-install-packages-from-conda-forge

jakirkham commented 3 years ago

Also as it looks like this comes from defaults, it may be worth reporting this issue on their feedstock ( https://github.com/AnacondaRecipes/requests-feedstock/issues ).