When I run rasa init in the anaconda prompt, I am getting into this error:
ImportError: cannot import name 'URL' from 'sqlalchemy.engine'
(c:\users\user\anaconda3\lib\site-packages\sqlalchemy\engine\__init__.py)
The name URL is only exposed in sqlalchemy.engine from version 1.4. You need to ensure that your SQLAlchemy installation is up to date:
python -m pip install --upgrade sqlalchemy
Go to the "c:\users\user\anaconda3" and check for lib folder. If you find Lib instead of lib, then change the folder name to lib.
My import pymongo is failing in vs with Module not found error.
Code:
import pymongo
from pymongo import MongoClient
client = MongoClient()
Error:
import pymongo
ModuleNotFoundError: No module named 'pymongo'
Pip install completed already:
pip install pymongo
Requirement already satisfied: pymongo
Are there any extensions needed in vs? The same code is executing fine in Jupyter notebook. Appreciate any pointers.
Maybe VS Code doesn't read from the correct Python virtual environment. Consider checking your set virtual environment at the bottom left corner.
Hi
I have been following a step by step on how to make a login system with python, with flask-mysqldb. I'm trying to run the python script, but i end up getting a error message that i don't understand so much of.
from flask import Flask, render_template, request, redirect, url_for, session
from flask_mysqldb import MySQL
import MySQLdb.cursors
import re
app = flask(__name__)
When I'm trying to run the script, on the localhost page it also shows a error, I have copyed and pasted te error in pastebin. When I try to install the flask_mysqldb i get a error in my cmd. Here is what my cmd says.
I have google with parts of the error, trying to find some information about what the problem can be. And tryed to pip install a lot for things that some people have said that can work, without any luck. And can't figure out how to get this to work.
I also tryed to install Anaconda terminal to run the command in there for installing flask_mysqldb, but no luck. Tryed to uninstall and reinstall everything, but nothing changed the error i get.
The error:
ModuleNotFoundError: No module named 'flask_mysqldb'
indicates that the module has not been installed or installed in a wrong environment.
Install it using:
pip install flask-mysqldb
The stack from from the error
File "c:\users\chris\appdata\local\programs\python\python37-32\lib\site-packages\flask\cli.py", line 240, in locate_app
__import__(module_name)
File "C:\xampp\htdocs\pythonlogin\main.py", line 2, in <module>
from flask_mysqldb import MySQL
ModuleNotFoundError: No module named 'flask_mysqldb'
is indicating that Python 3.7 in involved.
In this case, using pip to install flask_mysqldb will lead to grief. Use pip3 instead. E.g.,
pip3 install flask_mysqldb
I have updated gcloud components. I have installed BigQuery lib using pip install following the instructions in the online doc. I am running Python 2.7.10.
when I run a python script that has the following line:
from google.cloud import bigquery
it returns the following error:
ImportError: No module named google.cloud
I tried python 3.6 and still get the same error.
I did reintsall google sdk and still got the same error.
if I do touch /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/google/init.py then import google woudl work, but not import google.cloud
any help is appreciated.
The Cloud SDK is not enough. Just use pip install --upgrade google-cloud-bigquery, see https://github.com/GoogleCloudPlatform/google-cloud-python/tree/master/bigquery
I am running django version 1.10.3 and I installed google api client with pip like so:
pip install --upgrade google-api-python-client
When I try to use it with PyCharm/Terminal outside of a django project it works just fine. However, when I try to import it in my django project it throws this error:
ImportError: No module named googleapiclient
For this import statement:
from googleapiclient import discovery
I don't use any virtual env and nothing. Does anybody know why this error occurs?
Thanks in advance!