• Register

Recent questions tagged python-2

0 votes
1 answer 10 views
Problem: error: (-215:assertion failed) !empty() in function 'cv::cascadeclassifier::detectmultiscale'
asked Feb 19 Lucky Guy 1.4k points
0 votes
1 answer 14 views
Problem: typeerror: '_io.textiowrapper' object is not subscriptable.
asked Feb 19 Dan phillip 1.9k points
0 votes
1 answer 8 views
Problem input contains nan, infinity or a value too large for dtype('float64').
asked Feb 11 charles mathews 3.8k points
0 votes
1 answer 76 views
I am new in Python and i am finding an answers at kodlogs where i have to read a line of space separated integers. I am using Python-2.
asked Sep 25, 2020 Daniel Anderson 4k points
0 votes
1 answer 734 views
Problem: I have recently started learning Python so I have only fundamental knowledge in Python. Please find below my Transaction class for your reference: class Transaction(object):     def __init__(self, company, num, price, date, is_buy):         self.company = company         ... Python and because of lockdown I am unable to find any help to fix this issue. So I am posting my question here.
asked Aug 10, 2020 Raphael Pacheco 4.9k points
1 vote
1 answer 35 views
Problem: I was trying to run the code below: from __future__ import division x = 66 y = 99 z = 33 round((x/y)*0.8*z) But after running this code the console remains blank for sometime and then it shows the error message: Traceback (most recent call last): ... If there is any problem in my code what is that and why this error-type message appears. Please help me to solve this. Thanks in advance.
asked May 16, 2020 samhaz 5k points
1 vote
1 answer 376 views
Problem: Hello everyone, I have been writing codes in python for a while. Today, I found something strange while installed pip tweepy. I’ve installed tweepy and trying to access it but it is producing an error. >>> import tweepy Traceback (most recent call last): ... think about this issue? What’s wrong with this, and how can I overcome it? I look forward to having a solution. Thanks.
asked May 14, 2020 adamSw 11.3k points
1 vote
1 answer 25 views
Problem : Recently I have started learning Homebrew. Now if I try to run Homebrews brew doctor command on my Mac OS X 10.9.2 I have started receiving the below listed warning message: Warning: Python is installed at /Library/Frameworks/Python.framework Homebrew only ... /usr/local/bin/python. But still if I rerun the brew doctor command I am still facing the same warning message listed above.
asked Apr 4, 2020 morrisBson 3.2k points
1 vote
1 answer 185 views
Problem: I am getting an interesting error: valueerror: mixing iteration and read methods would lose data while I’m trying to run my script on python. I have no idea about this problem. I am trying to open a text file in my program and read it. Please ... test_file I think I am doing something wrong with using the readline() function. I am looking forward to having a solution. Thanks, guys.
asked Mar 29, 2020 Gavin 15.3k points
0 votes
1 answer 680 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, 2020 LizzyM 6.1k points