Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Import Error: No module named 'tables'
Post: RE: Import Error: No module named 'tables'

(Oct-12-2016, 06:36 PM)Yoriz Wrote: Open a command prompt and enter pip3 install tables I did.  I got this: 'pip3' is not recognized as an internal or external command, operable program or batch ...
kentman234 General Coding Help 5 30,868 Oct-12-2016, 06:44 PM
    Thread: Import Error: No module named 'tables'
Post: Import Error: No module named 'tables'

Hi there,  after trying to run a python file I got this error: Error:Import Error: No module named 'tables'and that is after executing the command: from tables import *Can you tell me how to instal...
kentman234 General Coding Help 5 30,868 Oct-12-2016, 06:31 PM
    Thread: coult not convert string to float
Post: RE: coult not convert string to float

(Oct-10-2016, 10:31 PM)metulburr Wrote: (Oct-10-2016, 10:24 PM)kentman234 Wrote: self.datayf.append(float(y.strip().replace(',', ''))) Remove all text formatting before putting it in python tags. ...
kentman234 General Coding Help 9 11,280 Oct-10-2016, 10:36 PM
    Thread: coult not convert string to float
Post: RE: coult not convert string to float

(Oct-10-2016, 10:17 PM)Yoriz Wrote: You cannot run that line only, you need the rest of the code that includes the defining of y Yes I also tried the "print" line in the code instead of:  self.datay...
kentman234 General Coding Help 9 11,280 Oct-10-2016, 10:24 PM
    Thread: coult not convert string to float
Post: RE: coult not convert string to float

(Oct-10-2016, 09:58 PM)Yoriz Wrote: You will get the same error if you include the float conversion in it, remove the float to just print the value that is trying to be converted as shown in my prev...
kentman234 General Coding Help 9 11,280 Oct-10-2016, 10:09 PM
    Thread: coult not convert string to float
Post: RE: coult not convert string to float

(Oct-10-2016, 09:43 PM)Yoriz Wrote: I don't know what's with the formatting in your post but have you tried printing print(y.strip().replace(',', ''))to see what it is that float is unable to turn f...
kentman234 General Coding Help 9 11,280 Oct-10-2016, 09:54 PM
    Thread: coult not convert string to float
Post: coult not convert string to float

Hello, I got this error while trying to compile my code: Error:  self.datayf.append(float(y.strip().replace(',', ''))) ValueError: could not convert string to float: '\\begin{figure}[h!]'the thing is...
kentman234 General Coding Help 9 11,280 Oct-10-2016, 09:34 PM
    Thread: error: max() arg is an empty sequence
Post: RE: error: max() arg is an empty sequence

(Oct-10-2016, 08:17 PM)Yoriz Wrote: You could give a default value that's returned by max If the iterable is empty. values = [] print(max(values, default=0))Output:0 Thank you. Problem removed. :)
kentman234 General Coding Help 2 44,588 Oct-10-2016, 08:34 PM
    Thread: error: max() arg is an empty sequence
Post: error: max() arg is an empty sequence

Hello everyone,  I'm trying to compile this code: for idx, i in enumerate(array):     if  idx > phaseshift:         if  abs(i - array[idx - phaseshift]) > 1000 or True:             self.phasesp...
kentman234 General Coding Help 2 44,588 Oct-10-2016, 08:00 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020