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

Error creating project, Python 3.10.4 #3

Open
Shane-Cotta opened this issue May 16, 2022 · 2 comments
Open

Error creating project, Python 3.10.4 #3

Shane-Cotta opened this issue May 16, 2022 · 2 comments

Comments

@Shane-Cotta
Copy link

django-test % dr-cli startproject project_name Traceback (most recent call last): File "/Users/shcotta/Desktop/django-test/venv/bin/dr-cli", line 5, in <module> from django_rest_cli.engine import entry_point File "/Users/shcotta/Desktop/django-test/venv/lib/python3.10/site-packages/django_rest_cli/engine/__init__.py", line 4, in <module> from django_rest_cli.engine.cli import main File "/Users/shcotta/Desktop/django-test/venv/lib/python3.10/site-packages/django_rest_cli/engine/cli/__init__.py", line 1, in <module> from .main import main File "/Users/shcotta/Desktop/django-test/venv/lib/python3.10/site-packages/django_rest_cli/engine/cli/main.py", line 3, in <module> from .cli_commands import CliCommands File "/Users/shcotta/Desktop/django-test/venv/lib/python3.10/site-packages/django_rest_cli/engine/cli/cli_commands.py", line 1, in <module> from django_rest_cli.engine.commands import AddCrud, StartApp, StartProject File "/Users/shcotta/Desktop/django-test/venv/lib/python3.10/site-packages/django_rest_cli/engine/commands/__init__.py", line 4, in <module> from .start_project import StartProject File "/Users/shcotta/Desktop/django-test/venv/lib/python3.10/site-packages/django_rest_cli/engine/commands/start_project.py", line 4, in <module> from django_rest_cli.engine.cli.mixins import ProjectConfigMixin File "/Users/shcotta/Desktop/django-test/venv/lib/python3.10/site-packages/django_rest_cli/engine/cli/mixins.py", line 1, in <module> from examples import custom_style_3 File "/Users/shcotta/Desktop/django-test/venv/lib/python3.10/site-packages/examples/__init__.py", line 1, in <module> from PyInquirer import style_from_dict, Token File "/Users/shcotta/Desktop/django-test/venv/lib/python3.10/site-packages/PyInquirer/__init__.py", line 6, in <module> from prompt_toolkit.token import Token File "/Users/shcotta/Desktop/django-test/venv/lib/python3.10/site-packages/prompt_toolkit/__init__.py", line 16, in <module> from .interface import CommandLineInterface File "/Users/shcotta/Desktop/django-test/venv/lib/python3.10/site-packages/prompt_toolkit/interface.py", line 19, in <module> from .application import Application, AbortAction File "/Users/shcotta/Desktop/django-test/venv/lib/python3.10/site-packages/prompt_toolkit/application.py", line 8, in <module> from .key_binding.bindings.basic import load_basic_bindings File "/Users/shcotta/Desktop/django-test/venv/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/basic.py", line 9, in <module> from prompt_toolkit.renderer import HeightIsUnknownError File "/Users/shcotta/Desktop/django-test/venv/lib/python3.10/site-packages/prompt_toolkit/renderer.py", line 11, in <module> from prompt_toolkit.styles import Style File "/Users/shcotta/Desktop/django-test/venv/lib/python3.10/site-packages/prompt_toolkit/styles/__init__.py", line 8, in <module> from .from_dict import * File "/Users/shcotta/Desktop/django-test/venv/lib/python3.10/site-packages/prompt_toolkit/styles/from_dict.py", line 9, in <module> from collections import Mapping ImportError: cannot import name 'Mapping' from 'collections' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/collections/__init__.py)

@Shane-Cotta Shane-Cotta changed the title Error creating project Error creating project, Python 3.10.4 May 16, 2022
@nyior
Copy link
Member

nyior commented May 17, 2022

@Shane-Cotta Thank you for bringing this to our attention. We will look into this and get back to you

@nyior
Copy link
Member

nyior commented May 28, 2022

This error is thrown by PyInquirer, the package we are using for managing command-line interactions. I saw that an issue regarding this has already been created on the repo. I will watch the thread for updates. In the meantime, I'd make it explicit that python 310 isn't supported yet. Thank you once again :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants