
Jose Manuel Salazar García
PreguntaA pesar de realizar la instalación de todas las herramientas de forma exitosa, me esta generando el siguiente error, cuando llamo a http://127.0.0.1:5000/
ALGUNA SOLUCION AL RESPECTO?. .
builtins.ModuleNotFoundError
ModuleNotFoundError: No module named ‘bson’
Traceback (most recent call last)
File “/home/jmsg78/anaconda3/lib/python3.7/site-packages/flask/cli.py”, line 76, in find_best_app
app = call_factory(script_info, app_factory)
File “/home/jmsg78/anaconda3/lib/python3.7/site-packages/flask/cli.py”, line 116, in call_factory
return app_factory()
File “/home/jmsg78/platzi-mongo/platzi-api/init.py”, line 24, in create_app
from . import carreras,cursos
File “/home/jmsg78/platzi-mongo/platzi-api/carreras.py”, line 2, in <module>
from . import db
File “/home/jmsg78/platzi-mongo/platzi-api/db.py”, line 1, in <module>
from bson.json_util import dumps, ObjectId
ModuleNotFoundError: No module named 'bson’
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
To switch between the interactive traceback and the plaintext one, you can click on the “Traceback” headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.
You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:

Ruth Andrea Hernández Zúñiga
Gracias!, me funcionó

CIRO VLADIMIR ARREOLA CAMACHO
El error señala que no tienes el módulo bson en tu ambiente de python, asegurate de haber instalado los requerimientos del proyecto
pip install -r requirements.txt
puedes ver los paquetes que tienes instalados con
pip list
prueba si tienes instalado pymongo
pip list | grep pymongo
en los comandos anteriores puedes sustituir
pip
conda
Al parecer también hay algún conflicto si instalas directamente el paquete
bson
pymongo
sudo pip uninstall bson sudo pip uninstall pymongo sudo pip install pymongo
fuente: https://stackoverflow.com/questions/42779934/jupyter-notebook-importerror-no-module-named-bson