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

AttributeError: 'AoT' object has no attribute 'multiline' #2011

Closed
1 task done
vvanglro opened this issue Jun 13, 2023 · 0 comments · Fixed by j178/pdm#1
Closed
1 task done

AttributeError: 'AoT' object has no attribute 'multiline' #2011

vvanglro opened this issue Jun 13, 2023 · 0 comments · Fixed by j178/pdm#1
Labels
🐛 bug Something isn't working

Comments

@vvanglro
Copy link
Contributor

  • 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.

Traceback (most recent call last):
  File "/opt/homebrew/bin/pdm", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/homebrew/Cellar/pdm/2.7.2/libexec/lib/python3.11/site-packages/pdm/core.py", line 289, in main
    return Core().main(args)
           ^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/pdm/2.7.2/libexec/lib/python3.11/site-packages/pdm/core.py", line 207, in main
    raise cast(Exception, err).with_traceback(traceback) from None
  File "/opt/homebrew/Cellar/pdm/2.7.2/libexec/lib/python3.11/site-packages/pdm/core.py", line 202, in main
    self.handle(project, options)
  File "/opt/homebrew/Cellar/pdm/2.7.2/libexec/lib/python3.11/site-packages/pdm/core.py", line 157, in handle
    command.handle(project, options)
  File "/opt/homebrew/Cellar/pdm/2.7.2/libexec/lib/python3.11/site-packages/pdm/cli/commands/import_cmd.py", line 35, in handle
    self.do_import(project, options.filename, options.format, options)
  File "/opt/homebrew/Cellar/pdm/2.7.2/libexec/lib/python3.11/site-packages/pdm/cli/commands/import_cmd.py", line 85, in do_import
    merge_dictionary(pyproject["tool"]["pdm"], settings)
  File "/opt/homebrew/Cellar/pdm/2.7.2/libexec/lib/python3.11/site-packages/pdm/cli/utils.py", line 616, in merge_dictionary
    target[key].multiline(True)  # type: ignore[attr-defined]
    ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'AoT' object has no attribute 'multiline'

Steps to reproduce

pdm import pyproject.toml -v -f poetry

Actual behavior

Expected behavior

Environment Information

PDM version:
  2.7.2
Python Interpreter:
  /Users/hulk/miniforge3/envs/testpy38/bin/python (3.8)
Project Root:
  /Users/hulk/code/py/test
Local Packages:
  
# Paste the output of `pdm info && pdm info --env` below:
@vvanglro vvanglro added the 🐛 bug Something isn't working label Jun 13, 2023
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.

1 participant