Category : visual-studio

I’m trying to install "fatiando" library on Python 3.9 but everytime obtain some error. I think, may be error in the Microsoft Visual Studio, but I don’t understand what it is exactly. cmake already installed. How to fix it? Please, help ERROR: Command errored out with exit status 1: command: ‘d:python39python.exe’ -u -c ‘import sys, ..

Read more

i was trying to install pyaudio ,pyttsx3 moudles i am working with python installed trough vs 2019 , so i entered to python environments then i ran pyttsx3 then i got this error : WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError("HTTPSConnectionPool(host=’pypi.org’, port=443): Read timed out. (read timeout=15)")’: /simple/pyttsx3/ so far ..

Read more

I’m trying to execute this simple code with pandas: import pandas as pd df = pd.read_csv("file.csv") df.head() But I´m having this error: AttributeError: partially initialized module ‘pandas’ has no attribute ‘read_csv’ (most likely due to a circular import) I’ve read some post but I´m not able to solve the problem, what should I do? Thanks ..

Read more

from flask import Flask, render_template, request, redirect, url_for, jsonify, abort from flask_sqlalchemy import SQLAlchemy import sys app = Flask(__name__) app.config[‘SQLALCHEMY_DATABASE_URI’] = ‘postgres://postgres:[email protected]:5432/todoapp’ db = SQLAlchemy(app) class Todo(db.Model): __tablename__ = ‘todos’ id = db.Column(db.Integer, primary_key=True) description = db.Column(db.String(), nullable=False) def __repr__(self): return f'<Todo {self.id} {self.description}>’ @app.route(‘/todos/create’, methods=[‘POST’]) def create_todo(): error = False body = {} try: ..

Read more

I have the following code in python, which queries some values in a database and proceeds to graph them with matplotlib. import sys import pyodbc import os import numpy as np import pandas as pd import matplotlib.pyplot as plt if len(sys.argv) == 2: server = ‘LOCAL’ database = ‘basic_db’ try: conexion = pyodbc.connect(‘DRIVER={ODBC Driver 17 ..

Read more