Closed dlethe closed 1 month ago
restarting QGIS after re-installing the module does not help.
@dlethe, sorry to hear about that. You need to install the 'nest_asyncio' within the QGIS python environment. You can do that by following the following steps below:
Installing nest_asyncio on QGIS python console:
Open the QGIS Python Console by navigating to Plugins > Python Console or press Ctrl+Alt+P
In the console, run these two lines of code:
import pip pip.main(['install', 'nest_asyncio'])
If you encounter any issue you can also try installing "nest_asyncio" via the terminal by pointing to QGIS python interpreter:
/Applications/QGIS3.38.1.app/Contents/MacOS/bin/python3 -m pip install nest_asyncio
I hope this will resolve the issue.
Thank you. This resolved the issue (Sorry, message was in spam or I would have responded earlier)
pip.main(['install', 'nest_asyncio']) WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. Collecting nest_asyncio Downloading nest_asyncio-1.6.0-py3-none-any.whl (5.2 kB) Installing collected packages: nest-asyncio Successfully installed nest-asyncio-1.6.0 0
On Aug 20, 2024, at 7:59 PM, Teakinboyewa @.***> wrote:
@dlethehttps://github.com/dlethe, sorry to hear about that. You need to install the 'nest_asyncio' within the QGIS python environment. You can do that by following the following steps below:
Installing nest_asyncio on QGIS python console:
Open the QGIS Python Console by navigating to Plugins > Python Console or press Ctrl+Alt+P
In the console, run these two lines of code:
import pip pip.main(['install', 'nest_asyncio'])
If you encounter any issue you can also try installing "nest_asyncio" via the terminal by pointing to QGIS python interpreter:
/Applications/QGIS3.38.1.app/Contents/MacOS/bin/python3 -m pip install nest_asyncio
I hope this will resolve the issue.
— Reply to this email directly, view it on GitHubhttps://github.com/Teakinboyewa/AutonomousGIS_GeodataRetrieverAgent/issues/1#issuecomment-2300010789, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABKZEFHAVCCCFRICUMKVL43ZSPQ7TAVCNFSM6AAAAABMWWOR7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBQGAYTANZYHE. You are receiving this because you were mentioned.Message ID: @.***>
Thank you. This resolved the issue (Sorry, message was in spam or I would have responded earlier) - David pip.main(['install', 'nest_asyncio']) WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see pypa/pip#5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. Collecting nest_asyncio Downloading nest_asyncio-1.6.0-py3-none-any.whl (5.2 kB) Installing collected packages: nest-asyncio Successfully installed nest-asyncio-1.6.0 0 On Aug 20, 2024, at 7:59 PM, Teakinboyewa @.> wrote: @dlethehttps://github.com/dlethe, sorry to hear about that. You need to install the 'nest_asyncio' within the QGIS python environment. You can do that by following the following steps below: Installing nest_asyncio on QGIS python console: Open the QGIS Python Console by navigating to Plugins > Python Console or press Ctrl+Alt+P In the console, run these two lines of code: import pip pip.main(['install', 'nest_asyncio']) If you encounter any issue you can also try installing "nest_asyncio" via the terminal by pointing to QGIS python interpreter: /Applications/QGIS3.38.1.app/Contents/MacOS/bin/python3 -m pip install nest_asyncio I hope this will resolve the issue. — Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABKZEFHAVCCCFRICUMKVL43ZSPQ7TAVCNFSM6AAAAABMWWOR7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBQGAYTANZYHE. You are receiving this because you were mentioned.Message ID: @.>
Glad to hear that the issue has been resolved.
Glad to hear that the issue has been resolved.
After installing this plugin & restarting program, I entered just the API key to US Census and attempted to send this request "Download latest population for each race for Collin County Texas, at census block group level" The error shows: Error: No module named 'nest_asyncio' Traceback (most recent call last): File "/Users/david/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/AutonomousGIS_GeodataRetrieverAgent/AGGRA_dockwidget.py", line 572, in run exec(script_content, exec_globals, exec_locals) File "", line 4, in
File "/Applications/QGIS.app/Contents/MacOS/lib/python3.9/qgis/utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'nest_asyncio'
The script finished with errors.
User: Download latest population for each race for Collin County Texas, at census block group level LLM-Find:Loading ... Error: No module named 'nest_asyncio' Traceback (most recent call last): File "/Users/david/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/AutonomousGIS_GeodataRetrieverAgent/AGGRA_dockwidget.py", line 572, in run exec(script_content, exec_globals, exec_locals) File "", line 4, in File "/Applications/QGIS.app/Contents/MacOS/lib/python3.9/qgis/utils.py", line 923, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'nest_asyncio' LLMFIND: The script finished with errors.
I verified system has this module .. (base) david@Davids-MacBook-Pro ~ % pip3 show nest_asyncio Name: nest-asyncio Version: 1.6.0 Summary: Patch asyncio to allow nested event loops Home-page: https://github.com/erdewit/nest_asyncio Author: Ewald R. de Wit Author-email: ewald.de.wit@gmail.com License: BSD Location: /Users/david/anaconda3/lib/python3.10/site-packages Requires: Required-by: ipykernel, jupyter_client, nbclassic, notebook