Can someone fix this? pip install intents

2024/11/20 3:24:56

I'm not sure why this is failing but I need help to fix it please I've been trying to fix it for about 2 hours now and can't figure it out. I have tried to restart my computer, look it up on google etc. but nothing is helping at all. am I missing something or is this a internal problem. If you find the problem, can you show me how you found it too? I'm trying to learn.

         Collecting intentsUsing cached intents-0.3.0-py3-none-any.whl (140 kB)Collecting dacite<2.0.0,>=1.6.0 (from intents)Using cached dacite-1.8.1-py3-none-any.whl.metadata (15 kB)Collecting google-cloud-dialogflow<3.0.0,>=2.0.0 (from intents)Using cached google_cloud_dialogflow-2.27.0-py2.py3-none-any.whl.metadata (5.4 kB)Collecting pyyaml<6.0.0,>=5.4.1 (from intents)Using cached PyYAML-5.4.1.tar.gz (175 kB)Installing build dependencies ... doneGetting requirements to build wheel ... errorerror: subprocess-exited-with-error× Getting requirements to build wheel did not run successfully.│ exit code: 1╰─> [54 lines of output]running egg_infowriting lib3\PyYAML.egg-info\PKG-INFOwriting dependency_links to lib3\PyYAML.egg-info\dependency_links.txtwriting top-level names to lib3\PyYAML.egg-info\top_level.txtTraceback (most recent call last):File "C:\Users\hicks\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>main()File "C:\Users\hicks\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in mainjson_out['return_val'] = hook(**hook_input['kwargs'])^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\hicks\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheelreturn hook(config_settings)^^^^^^^^^^^^^^^^^^^^^File "C:\Users\hicks\AppData\Local\Temp\pip-build-env-5y4riome\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheelreturn self._get_build_requires(config_settings, requirements=['wheel'])^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\hicks\AppData\Local\Temp\pip-build-env-5y4riome\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requiresself.run_setup()File "C:\Users\hicks\AppData\Local\Temp\pip-build-env-5y4riome\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setupexec(code, locals())File "<string>", line 271, in <module>File "C:\Users\hicks\AppData\Local\Temp\pip-build-env-5y4riome\overlay\Lib\site-packages\setuptools\__init__.py", line 103, in setupreturn distutils.core.setup(**attrs)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\hicks\AppData\Local\Temp\pip-build-env-5y4riome\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setupreturn run_commands(dist)^^^^^^^^^^^^^^^^^^File "C:\Users\hicks\AppData\Local\Temp\pip-build-env-5y4riome\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commandsdist.run_commands()File "C:\Users\hicks\AppData\Local\Temp\pip-build-env-5y4riome\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commandsself.run_command(cmd)File "C:\Users\hicks\AppData\Local\Temp\pip-build-env-5y4riome\overlay\Lib\site-packages\setuptools\dist.py", line 963, in run_commandsuper().run_command(command)File "C:\Users\hicks\AppData\Local\Temp\pip-build-env-5y4riome\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_commandcmd_obj.run()File "C:\Users\hicks\AppData\Local\Temp\pip-build-env-5y4riome\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 321, in runself.find_sources()File "C:\Users\hicks\AppData\Local\Temp\pip-build-env-5y4riome\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 329, in find_sourcesmm.run()File "C:\Users\hicks\AppData\Local\Temp\pip-build-env-5y4riome\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 551, in runself.add_defaults()File "C:\Users\hicks\AppData\Local\Temp\pip-build-env-5y4riome\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 589, in add_defaultssdist.add_defaults(self)File "C:\Users\hicks\AppData\Local\Temp\pip-build-env-5y4riome\overlay\Lib\site-packages\setuptools\command\sdist.py", line 112, in add_defaultssuper().add_defaults()File "C:\Users\hicks\AppData\Local\Temp\pip-build-env-5y4riome\overlay\Lib\site-packages\setuptools\_distutils\command\sdist.py", line 251, in add_defaultsself._add_defaults_ext()File "C:\Users\hicks\AppData\Local\Temp\pip-build-env-5y4riome\overlay\Lib\site-packages\setuptools\_distutils\command\sdist.py", line 336, in _add_defaults_extself.filelist.extend(build_ext.get_source_files())^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "<string>", line 201, in get_source_filesFile "C:\Users\hicks\AppData\Local\Temp\pip-build-env-5y4riome\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 107, in __getattr__raise AttributeError(attr)AttributeError: cython_sources[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.error: subprocess-exited-with-error× Getting requirements to build wheel did not run successfully.│ exit code: 1╰─> See above for output.note: This error originates from a subprocess, and is likely not a problem with pip.
Answer

below method you can do to workaround

  1. clone repo and then in pyproject.toml file change the pyyaml dependency version to latest, and then do python3 -m pip install . in the cloned repo
  2. install without dependency and then add dependency of pyyaml in the project dependency. so to do so run python3 -m pip install intents --no-deps and python3 -m pip install pyyaml
https://en.xdnf.cn/q/119872.html

Related Q&A

Calculating Average Performance Measures in M/M/1 System Using SimPy

I am seeking to calculate the average waiting times, and average service times in the following M/M/1 queueing system, but I am not able to calculate the averages. It writes down to the console each cu…

Python: Whats the difference between import X and from X import *? [duplicate]

This question already has answers here:Use import module or from module import?(23 answers)Closed 7 years ago.I use to think both are equal until I tried this:$python Python 2.7.13 (default, Dec 17 20…

Python iterate through pixels of image

Im trying to iterate through pixels of an image. I set the size and then use a for loop, however I get a type error: object not iterable. I have imported PIL and Imagew=100 h=200 im=im.resize((w,h), Im…

Geocoding with Geopy and big data

I have this CSV file which im feeding with this python scriptimport csv from geopy.geocoders import OpenCagegeolocator = OpenCage() #here some parameters are needed with open(/Users/Ian/Desktop/Test02/…

an error in sending json data to flask server [duplicate]

This question already has answers here:How to get POSTed JSON in Flask?(13 answers)Closed 1 year ago.I have a json data as {"age":59.0,"bp":70.0,"sg":1.01,"al":…

terminate a python program when it hanged using subprocess python

I have a main.py which open a new cmd (subprocess) when another program (test.py, in same directory) is hanged. To determining test.py is hanged or not, I used latest modified time (os.path.getmtime(te…

causes of Python IOError: [Errno 13] Permission denied

When attempting to write a file, I can get this same error when any of following conditions applies:The file exists and is marked read-only. I dont have write permission for the folder and therefore ca…

Python Invalid Syntax IF statement

Im trying to make a quiz in python but I keep getting invalid syntax errors.#This is for addition questions.if (question=add) <---- That is where i get the error for i in range(0,10):first_number_a…

record a web page using python [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.Want to improve this question? Update the question so it focuses on one problem only by editing this post.Closed 3…

returning a string from askopenfilename() to a entry box

I have seen many postings on the use of askopenfilename(), however I still cant seem to find anything to help me display the full file path in an entry box once I have selected said file. below I have…