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

Can't install this pool in python 3.12 #582

Closed
ArthurTech123 opened this issue Dec 29, 2023 · 3 comments
Closed

Can't install this pool in python 3.12 #582

ArthurTech123 opened this issue Dec 29, 2023 · 3 comments

Comments

@ArthurTech123
Copy link

ArthurTech123 commented Dec 29, 2023

When I try to use pip install line-bot-sdk to install this pool
It show the error message below

 ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'multidict._multilib' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.

              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'multidict._multilib' is explicitly added
              to the `packages` configuration field.

              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).

              You can read more about "package discovery" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

              If you don't want 'multidict._multilib' to be distributed and are
              already explicitly excluding 'multidict._multilib' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.

              You can read more about "package data files" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************

      !!
        check.warn(importable)
      copying multidict\__init__.pyi -> build\lib.win-amd64-cpython-312\multidict
      copying multidict\py.typed -> build\lib.win-amd64-cpython-312\multidict
      running build_ext
      building 'multidict._multidict' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for multidict
Failed to build multidict
ERROR: Could not build wheels for multidict, which is required to install pyproject.toml-based projects

And I also found some problem because of python version happened in aiohttp
I just wandering is this problem will be fixed or I need to try other setting in my side?

@Yang-33
Copy link
Contributor

Yang-33 commented Dec 30, 2023

Q1: Which version of the line-bot-sdk are you using? If it's higher than 3.5.1, it should be using a stable version of aiohttp.

Q2: Have you tried the solutions suggested in the error message?

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

@Yang-33 Yang-33 removed the bug label Dec 30, 2023
@ArthurTech123
Copy link
Author

ArthurTech123 commented Dec 30, 2023

Q1:

I try to use "pip install line-bot-sdk" command to install sdk at 20231229 UTC+8, and in my situation I still not to use aiohttp. It just an example for smaller error, but when I try to install aiohttp today it haapened same promble in my side

Q2:

Yes I've already install the Build Tools
But still not work
and my python version is 3.12.0, or you suggest me use lower version like 3.11 python to try?

@ArthurTech123
Copy link
Author

ArthurTech123 commented Dec 30, 2023

Now I try to re-install the python (version 3.11.7)
and finally I success to installing the 3.7.0 line-bot-sdk with python 3.11.7 and pip 23.3.2 by pip install line-bot-sdk

Before, I have already try to install line-bot-sdk by pip install line-bot-sdk with python 3.12.0 and 3.12.1 but both of two version of python are failed

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