• Register
search
Log In

Recent questions tagged python-python3-typeerror

1 vote
1 answer 6 views
Problem: In my system i have installed OPENCV and I opened my compiler and wrote the code: import cv And it shows messeage: Updating package configuration --> /usr/local/bin/python3 -m poetry init --no-interaction This command will guide you through ... valid win32 application”. My python path also containns cv2.pyd and my OPENCV installaition does not have any release folders. Please help.
asked Apr 6 LizzyM 5.7k points
2 votes
1 answer 31 views
Problem: I am new in python programming so I am always confused about what is going wrong with my code. Recently I write a code: class showInformation(object): def __int__(self, name, age): self.name = name self.age = age def showName(self): ... showInformation("XXX") TypeError: showInformation() takes no arguments typeerror: object() takes no parameters Whats wrong In my code can anyone explain?
asked Mar 24 LizzyM 5.7k points
2 votes
1 answer 19 views
Problem: I am new in programming language. I was trying to setup and then upgrade gcloud using python. I used the command: pip install --upgrade gcloud After that it shows: Collecting gcloud Downloading gcloud-0.18.3.tar.gz (454kB) 100% | ... code 1 in C:\Users\bid\AppData\Local\Temp\pip-build-ppc44asr\googleapis-common-protos\ Whats is happening here can anyone help?
asked Mar 24 LizzyM 5.7k points
0 votes
1 answer 11 views
Problem: I am new to programming language. Yesterday I installed python in system. I went to my command prompmt and run the command : python and it shows: Python 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 01:54:44) [MSC v.1916 64 bit (AMD64)] on ... a different output : python' is not recognized as an internal or external command, operable program or batch file Why am I seeig this , Please help.
asked Mar 22 LizzyM 5.7k points
0 votes
1 answer 25 views
In an XML doument I was trying to build an python tool. It should distribute EXE form But it gives me an error like: cx_freeze python error in main script-ImportError :DLL Load my setup.py file is: import sys from cx_Freeze import setup, Executable base = None if sys. ... 'XPath', 'Attribute Name', 'Current Data'] It builds the Programm with an EXE but when the EXE runs it return the same error.
asked Mar 11 LizzyM 5.7k points
0 votes
1 answer 494 views
I am trying to create a rating data frame for some football teams. To rate the teams I am using elo rating system : https://en.wikipedia.org/wiki/Elo_rating_system My data frame consists of pre-match ratings of home and away teams and it gets updated after every match. My data ... of size 1 to a python scalar Can any one help me to find what the problem really is and help me to solve the problem.
asked Mar 10 LizzyM 5.7k points
0 votes
3 answers 147 views
I am new in python programming. I am tryin gto iinstall some packages with pip commands. I tried to install a package called unroll by using the command: pip[ install unroll but it gives me some error like : "python setup.py egg_info" failed with error code 1 How can I solve this problem? How can I check my pip version? How can I upgrade my pip version?
asked Mar 9 LizzyM 5.7k points
0 votes
1 answer 162 views
I have python 3 and python 2.7 installed in my system. I am a newbee and I tried to run file : ~/usr/bin/env python 2.7  But when I try to run the file it give me an error : ~/usr/bin/env python 2.7 No such file or directory How can I check my default python version? How can I run the file? How to run the file without changing my default python version?
asked Mar 9 LizzyM 5.7k points
0 votes
1 answer 17 views
In my system i have installed OPENCV but every time I run my code there is a error. My code is : import cv2 For this I am using 64 bit python on my system. But everytime I run this it shows me “ImportError : DLL load failed %1 is not valid win32 ... cv2.pyd and my OPENCV installaition does not have any release folders. Can anyone tell me what the error is and DLL’s is it looking for.
asked Mar 9 LizzyM 5.7k points
0 votes
1 answer 66 views
I am new to python programming language and I don;t know how to fix it. This is my code below : from PIL import image import pytesseract ig = image.open(“Horse.jpg”) text = pytesseract.image_to_string(ig, lang=’eng’) print(text)
asked Mar 8 sstones 220 points
1 vote
1 answer 33 views
Problem: Hello everyone, I am trying to create a webscraper which will take links from CSV file and scrape data. but whenever I run this code it says the object of nonetype has no len(). Below is my code: import requests from bs4 import BeautifulSoup import time ... text return data def main(): read_file() datas = parse_data() writedata(datas, "UP_DATA.csv") main() What’s going wrong here?
asked Mar 7 Gavin 15.2k points
1 vote
1 answer 20 views
Problem: if verb == "stoke": if items["heat"] >= 1: print("going to stoke the furnace") if items["coal"] >= 1: print("successful!") temperature += 250 print("the heat is now " + (temperature) + "degrees!") else: print("you can't") else: print("you have ... line 227, in <module> print("the heat is now " + (temperature) + "degrees!") TypeError: must be str, not int I must recognize your effort.
asked Mar 7 Gavin 15.2k points
To see more, click for the full list of questions or popular tags.