Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Convert list to interger
Post: RE: Convert list to interger
Apologies typo...
It returns:
114806
114810
114831
114841
114843
NOT:
114806
114810
114831
114841
114843 |
|
Clives |
General Coding Help |
5 |
1,621 |
May-09-2022, 11:22 AM |
|
|
Thread: Convert list to interger
Post: RE: Convert list to interger
Hi Dean,
Thanks for the advice.
I changed the code:
line = ()
with open(data, encoding='utf-8') as manhole_id:
#csv_reader = reader(manhole_id)
for line in ma... |
|
Clives |
General Coding Help |
5 |
1,621 |
May-06-2022, 02:33 PM |
|
|
Thread: Convert list to interger
Post: Convert list to interger
Greetings,
The csv returns: [114436]
I want to get the values as an integer and not list, any pointers appreciated.
Thanks
Clive
##### CSV
id = open(manhole, encoding='utf-8' )
manhole_id = csv.reade... |
|
Clives |
General Coding Help |
5 |
1,621 |
May-06-2022, 01:45 PM |
|
|
Thread: Python 2.7 - pathlib2
Post: Python 2.7 - pathlib2
Greetings,
I have spent about three hours getting errors, to find out which python libraries are not
installed on an offline Linux 86_64 instance.
After installing: six and scandir. I installed pat... |
|
Clives |
General Coding Help |
0 |
876 |
Apr-01-2022, 06:27 PM |
|
|
Thread: CSV writer - no output??
Post: RE: CSV writer - no output??
The issue seems to be because I used: lkewriter.writerows(row)
If I use lkewriter.writerow(row)
It writes a single row |
|
Clives |
General Coding Help |
6 |
2,526 |
Mar-30-2022, 04:09 PM |
|
|
Thread: CSV writer - no output??
Post: RE: CSV writer - no output??
The script reads the metadata from the .jpg, this is shown below
I have to use 'a', If I use 'w' it overwrites and I only get one row, not 100 rows.
The issue is each row is exported to three rows, N... |
|
Clives |
General Coding Help |
6 |
2,526 |
Mar-30-2022, 03:51 PM |
|
|
Thread: CSV writer - no output??
Post: RE: CSV writer - no output??
Yesterday Visual Code was totally unresponsive.. No error, no output..
Today it is spewing out data, but each record to a new line.
##### START
for filename in glob.glob(Path+'\*.jpg'):
#prin... |
|
Clives |
General Coding Help |
6 |
2,526 |
Mar-29-2022, 01:44 PM |
|
|
Thread: CSV writer - no output??
Post: RE: CSV writer - no output??
(Mar-28-2022, 06:43 PM)Larz60+ Wrote: Python 2.7 has not been supported since January 1, 2020 when it reached end of life.
you can try: pip2 install pandas <rev #> from command line
you will... |
|
Clives |
General Coding Help |
6 |
2,526 |
Mar-29-2022, 01:23 PM |
|
|
Thread: CSV writer - no output??
Post: CSV writer - no output??
I am unable to use Pandas on a Python 2.7 environment.
I am appending all output into a new file using the csv library.
I am having to use Visual Code, which appears a bit fuzzy.
Yesterday, I didn't g... |
|
Clives |
General Coding Help |
6 |
2,526 |
Mar-28-2022, 05:25 PM |
|
|
Thread: Pandas + PIL on Linux (Python 32)
Post: RE: Pandas + PIL on Linux (Python 32)
Hi Snipsat,
Thanks for your comments much appreciated.
I have tried a number of Pandas, the site is running Python 2.7, with no internet access.
The application will fall over if I use Python 3....
I... |
|
Clives |
News and Discussions |
3 |
2,098 |
Mar-25-2022, 01:53 PM |
|
|
Thread: Pandas + PIL on Linux (Python 32)
Post: Pandas + PIL on Linux (Python 32)
Greetings,
The environment is Linux, Python 2.7 32-bit
I have to load a number of Python 2.7, 32 bit library files (.whl/.egg) on Linux.
I tried several files for Pandas, and Pillow, none would load... |
|
Clives |
News and Discussions |
3 |
2,098 |
Mar-18-2022, 11:11 AM |
|
|
Thread: Pil
Post: Pil
Greetings,
I can't get a Python PIL script to run, get "not an image" error.
Appreciate any pointers, to resolve this.
The code is:
for (root, dirs, files) in os.walk(img_path):
for name in file... |
|
Clives |
General Coding Help |
2 |
2,960 |
Mar-02-2022, 06:35 PM |
|
|
Thread: Change item value from 5 to good
Post: RE: Change item value from 5 to good
The javascript is:
[html]
<div class="grid-child green">
Service Quality
<table class="table" width="25%" class="pos_fixed2">
<thead>
<tbody>
{% for... |
|
Clives |
Web Scraping & Web Development |
2 |
2,439 |
Jun-19-2021, 10:47 PM |
|
|
Thread: Change item value from 5 to good
Post: Change item value from 5 to good
Greetings,
I have spent ages searching javascript in Google, but couldn't find any pointers or examples.
I have a range of values returned in a Table ranging from 1 to 50.
Output:<table>
<... |
|
Clives |
Web Scraping & Web Development |
2 |
2,439 |
Jun-18-2021, 03:18 PM |
|
|
Thread: HTTP 404 error with Session Pool
Post: HTTP 404 error with Session Pool
Greetings,
The connection works with just a single user connection, but I get a HTTP 404 error, when creating a Session Pool connection??
I used this cx_Oracle example:
https://cx-oracle.readthedocs... |
|
Clives |
Web Scraping & Web Development |
0 |
1,301 |
Jun-17-2021, 06:45 PM |
|
|
Thread: No module named theapp
Post: RE: No module named theapp
I opened the project in Visual Code, it ran without any errors.
Appears that PyCharm Community version is the problem, not the code??
Weird!! |
|
Clives |
Web Scraping & Web Development |
10 |
5,805 |
Jun-10-2021, 10:31 AM |
|
|
Thread: No module named theapp
Post: RE: No module named theapp
In a previous Flask app, I imported theapp and it worked..
In this app I had to use:
from flask import Flask
app = Flask(__name__)
app.config.from_object('config')
app.jinja_env.add_extension('jinja2... |
|
Clives |
Web Scraping & Web Development |
10 |
5,805 |
Jun-10-2021, 10:06 AM |
|
|
Thread: No module named theapp
Post: RE: No module named theapp
It seems that the error points to the werkzeug module??
Weird??
PYTHONPATH = C:\Users\tmpgcesn\AppData\Local\Programs\Python\Python38
Error:Traceback (most recent call last):
File "C:\Users\tmpgce... |
|
Clives |
Web Scraping & Web Development |
10 |
5,805 |
Jun-10-2021, 09:34 AM |
|
|
Thread: No module named theapp
Post: RE: No module named theapp
Now I am getting an new error.. **angry**
All the modules are installed??
Error:- missing __init__.py in a package;
- package or module path not included in sys.path;
- duplicated package or module... |
|
Clives |
Web Scraping & Web Development |
10 |
5,805 |
Jun-10-2021, 08:57 AM |
|
|
Thread: No module named theapp
Post: RE: No module named theapp
Really weird
I had to use import Flasktest.theapp, that works.
In the past I just used theapp, not FlaskTest.theapp?? |
|
Clives |
Web Scraping & Web Development |
10 |
5,805 |
Jun-10-2021, 08:13 AM |