Skip to content

Instantly share code, notes, and snippets.

@juliancoleman
Created June 18, 2020 17:39
Show Gist options
  • Save juliancoleman/72777a6da4768e26168bc7de5c5dccae to your computer and use it in GitHub Desktop.
Save juliancoleman/72777a6da4768e26168bc7de5c5dccae to your computer and use it in GitHub Desktop.
(barcode-api) bob@Arvid:~/pyproj/barcode-api$ conda env export > environment.yml
Traceback (most recent call last):
  File "/home/bob/anaconda3/bin/conda-env", line 6, in <module>
    from conda_env.cli.main import main
  File "/home/bob/anaconda3/lib/python3.7/site-packages/conda_env/cli/main.py", line 44, in <module>
    from . import main_create
  File "/home/bob/anaconda3/lib/python3.7/site-packages/conda_env/cli/main_create.py", line 17, in <module>
    from .. import exceptions, specs
  File "/home/bob/anaconda3/lib/python3.7/site-packages/conda_env/specs/__init__.py", line 7, in <module>
    from .binstar import BinstarSpec
  File "/home/bob/anaconda3/lib/python3.7/site-packages/conda_env/specs/binstar.py", line 11, in <module>
    from binstar_client import errors
  File "/home/bob/anaconda3/lib/python3.7/site-packages/binstar_client/__init__.py", line 14, in <module>
    from .errors import *
  File "/home/bob/anaconda3/lib/python3.7/site-packages/binstar_client/errors.py", line 1, in <module>
    from clyent.errors import ClyentError
  File "/home/bob/anaconda3/lib/python3.7/site-packages/clyent/__init__.py", line 10, in <module>
    from pkg_resources import iter_entry_points
  File "/home/bob/anaconda3/lib/python3.7/site-packages/pkg_resources.py", line 1479, in <module>
    register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'

Solutions

  • pip uninstall setuptools
  • pip install python-dotenv
  • pip install setuptools --upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment