Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: IndentationError when no problem with indentation
Post: RE: IndentationError when no problem with indentat...
Thanks for your question, nilamo; plots.py came from a repository associated with the other code above, and I don't know why the indentation error was present, but it was easy to fix once I recognized... |
|
BobLoblaw |
Data Science |
10 |
8,721 |
Nov-02-2017, 02:02 AM |
|
|
Thread: IndentationError when no problem with indentation
Post: RE: IndentationError when no problem with indentat...
Thanks for your recommendation, sparkz_alot; please see my updated post above where I clarify that the error message had been related to the supporting plots.py script rather than to my main script...... |
|
BobLoblaw |
Data Science |
10 |
8,721 |
Oct-08-2017, 02:13 AM |
|
|
Thread: IndentationError when no problem with indentation
Post: RE: IndentationError when no problem with indentat...
Quote:I don't know what's going on, because I am not getting an indent error when I run that code. It runs up to the plot import, and fails because I don't have plot installed. But an indent error sho... |
|
BobLoblaw |
Data Science |
10 |
8,721 |
Oct-08-2017, 12:11 AM |
|
|
Thread: IndentationError when no problem with indentation
Post: RE: IndentationError when no problem with indentat...
Thanks for your interest in assisting, ichabod; the code is below: (I'll note that the forum editor doesn't seem to allow me to include a blank line as the first line of the code, so what I reference ... |
|
BobLoblaw |
Data Science |
10 |
8,721 |
Oct-07-2017, 06:54 PM |
|
|
Thread: IndentationError when no problem with indentation
Post: IndentationError when no problem with indentation
I have a legacy Python script that I'm attempting to get running; this code was functional at the time of development. However, when I attempt to run it, I get the following error message:
Error:line... |
|
BobLoblaw |
Data Science |
10 |
8,721 |
Oct-07-2017, 05:17 PM |
|
|
Thread: "Widget Javascript not detected" error
Post: "Widget Javascript not detected" error
I have a Python script that I'm attempting to run; it includes the use of a widget. The relevant code is:
from my_widget import *
# {code to generate "results" data}
net = Network(my_widget)
net.lo... |
|
BobLoblaw |
General Coding Help |
0 |
4,297 |
Oct-07-2017, 04:48 PM |
|
|
Thread: Problem installing urlparse4 package
Post: RE: Problem installing urlparse4 package
Thanks, snippsat -- that worked! |
|
BobLoblaw |
General Coding Help |
2 |
5,723 |
Oct-06-2017, 05:16 PM |
|
|
Thread: Problem installing urlparse4 package
Post: Problem installing urlparse4 package
I'm attempting to use legacy code created earlier this year that contains the line:
from urlparse import urljoinHowever, when I try to do pip install urljoin, I get the error message Error:Could not ... |
|
BobLoblaw |
General Coding Help |
2 |
5,723 |
Oct-06-2017, 04:53 PM |
|
|
Thread: Can't locate plots package
Post: RE: Can't locate plots package
Thanks for sharing, Larz60+! |
|
BobLoblaw |
General Coding Help |
12 |
10,923 |
Oct-04-2017, 11:56 PM |
|
|
Thread: Can't locate plots package
Post: RE: Can't locate plots package
Thanks for catching that, nilamo; indeed, when I had right-clicked to download the file, I hadn't noticed that it saved as a Chrome HTML document with .py extension, rather than a real Python file. I ... |
|
BobLoblaw |
General Coding Help |
12 |
10,923 |
Oct-04-2017, 08:00 PM |
|
|
Thread: Can't locate plots package
Post: RE: Can't locate plots package
Thanks for your clarification, snippsat; I should have mentioned that I already tried that:
from plots import COLORS10, enlarge_tick_fontsizeIt results in this error message:
Error:File "plots.py", ... |
|
BobLoblaw |
General Coding Help |
12 |
10,923 |
Oct-04-2017, 07:40 PM |
|
|
Thread: Can't locate plots package
Post: RE: Can't locate plots package
Thanks for locating that, snippsat!
If I try to call
from plots.py import COLORS10, enlarge_tick_fontsizeI get the error:
Error:File "plots.py", line 7
<!DOCTYPE html>
^
SyntaxError: ... |
|
BobLoblaw |
General Coding Help |
12 |
10,923 |
Oct-04-2017, 07:19 PM |
|
|
Thread: Can't locate plots package
Post: RE: Can't locate plots package
Thanks for your response, nilamo. Unfortunately, no, I don't have access to the machine the script used to run on.
So, it sounds like I might just need to rewrite parts the existing script using matp... |
|
BobLoblaw |
General Coding Help |
12 |
10,923 |
Oct-04-2017, 05:27 PM |
|
|
Thread: Can't locate plots package
Post: Can't locate plots package
I am trying to run some legacy code that was created last year by a teammate, and that includes the following initial line:
from plots import COLORS10, enlarge_tick_fontsizeHowever, when I run this l... |
|
BobLoblaw |
General Coding Help |
12 |
10,923 |
Oct-04-2017, 04:36 PM |