Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 3.8 pdm ImportError: cannot import name 'IsolatedEnvironment #162

Closed
1 task done
guoweikuang opened this issue Nov 1, 2020 · 1 comment · Fixed by #163
Closed
1 task done

python 3.8 pdm ImportError: cannot import name 'IsolatedEnvironment #162

guoweikuang opened this issue Nov 1, 2020 · 1 comment · Fixed by #163
Labels
🐛 bug Something isn't working

Comments

@guoweikuang
Copy link

guoweikuang commented Nov 1, 2020

  • I have searched the issue tracker and believe that this is not a duplicate.

Make sure you run commands with -v flag before pasting the output.

Steps to reproduce

pyenv virtualenv 3.8.5
pdm version 0.10.3

After the installation is successful, I get an error when I use the pdm --help command

Actual behavior

(env-pdm) ➜  pdm-demo git:(master) ✗ pdm --help
Traceback (most recent call last):
  File "/Users/guoweikuang/.pyenv/versions/env-pdm/bin/pdm", line 5, in <module>
    from pdm.core import main
  File "/Users/guoweikuang/.pyenv/versions/3.8.5/envs/env-pdm/lib/python3.8/site-packages/pdm/core.py", line 15, in <module>
    from pdm.installers import Synchronizer
  File "/Users/guoweikuang/.pyenv/versions/3.8.5/envs/env-pdm/lib/python3.8/site-packages/pdm/installers/__init__.py", line 2, in <module>
    from pdm.installers.installers import Installer
  File "/Users/guoweikuang/.pyenv/versions/3.8.5/envs/env-pdm/lib/python3.8/site-packages/pdm/installers/installers.py", line 12, in <module>
    from pdm.models.builders import log_subprocessor
  File "/Users/guoweikuang/.pyenv/versions/3.8.5/envs/env-pdm/lib/python3.8/site-packages/pdm/models/builders.py", line 9, in <module>
    from build.env import IsolatedEnvironment as _Environment
ImportError: cannot import name 'IsolatedEnvironment' from 'build.env' (/Users/guoweikuang/.pyenv/versions/3.8.5/envs/env-pdm/lib/python3.8/site-packages/build/env.py)

Expected behavior

Environment Information

ProductName: Mac OS X
ProductVersion: 10.15.6

# Paste the output of `pdm info && pdm info --env` below:
@guoweikuang guoweikuang added the 🐛 bug Something isn't working label Nov 1, 2020
@frostming
Copy link
Collaborator

The newest release of build introduced a breaking API change. As a workaround, you can downgrade build to <0.1.0. The bug fix will be landed with the next release.

@frostming frostming linked a pull request Nov 3, 2020 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants