Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Problem with cx_freeze app only on one pc
Post: Problem with cx_freeze app only on one pc
I have made a python app and used cx_freeze to distrubute it to my colleagues as a windows exe.
It is currently working on 16 machines using windows 7,8 and 10
Today I tried to install it on a windows... |
|
floatingshed |
General Coding Help |
0 |
1,818 |
Mar-19-2021, 05:19 PM |
|
|
Thread: python-vlc error
Post: python-vlc error
I have the latest VLC 64bit installed in the default location.
I am running python 3.6 64bit
I have python-vlc installed.
I am simply trying to run the mediaplayer demo script included with python-vl... |
|
floatingshed |
General Coding Help |
1 |
1,714 |
Nov-17-2020, 11:08 AM |
|
|
Thread: Basic regex
Post: Basic regex
I have never used the re module before.
I have many text files that need a phrase replacing, the following works fine:
for file in directory:
open_file = open(file,'r')
read_file = open_file... |
|
floatingshed |
General Coding Help |
1 |
1,605 |
Nov-09-2020, 11:48 AM |
|
|
Thread: Just learning sockets etc...
Post: RE: Just learning sockets etc...
Thanks, I'll take a look.
Interesting tutorial, and helpful overall but no mention of basic p/w protection... |
|
floatingshed |
Networking |
2 |
2,405 |
May-06-2020, 09:37 PM |
|
|
Thread: Just learning sockets etc...
Post: Just learning sockets etc...
I am not finding it easy to understand networking in Python, but with this code I have found I am getting the results I want but I would like to add some basic security to it, Username and Password. A... |
|
floatingshed |
Networking |
2 |
2,405 |
May-06-2020, 04:11 PM |
|
|
Thread: stream audio from pc to pc
Post: RE: stream audio from pc to pc
Yes, I need a server, the point is a simple http server is not the right server!
I have experimented with a tool made for the job called "edna" but it doesn't allow seeking, which is necessary. |
|
floatingshed |
General Coding Help |
2 |
2,024 |
Sep-16-2019, 03:45 PM |
|
|
Thread: stream audio from pc to pc
Post: stream audio from pc to pc
I have googled this for days on end and can't find a satisfactory answer.
I have a library of audio files on a pc. I want to play one of them across a network/internet on another pc.
So far the only w... |
|
floatingshed |
General Coding Help |
2 |
2,024 |
Sep-16-2019, 02:10 PM |
|
|
Thread: Converting web server from python 2 to python 3
Post: RE: Converting web server from python 2 to python ...
I fixed it by changing the line: Quote:encoded = binascii.b2a_base64(s, newline=False)
to: Quote:encoded = binascii.b2a_base64(bytes(s, "utf-8"), newline=False)
in base64.py (which makes me nervous!)... |
|
floatingshed |
Networking |
5 |
7,060 |
Jul-14-2018, 03:28 PM |
|
|
Thread: Converting web server from python 2 to python 3
Post: RE: Converting web server from python 2 to python ...
Usage: py3-server.py 2727 user:password
sys.argv[2] = user:password
b'user:password' produces the same error. |
|
floatingshed |
Networking |
5 |
7,060 |
Jul-14-2018, 01:52 PM |
|
|
Thread: Converting web server from python 2 to python 3
Post: RE: Converting web server from python 2 to python ...
Apologies.
Traceback (most recent call last):
File "E:\py3-server.py", line 52, in <module>
key = base64.b64encode(sys.argv[2])
File "C:\Python36\lib\base64.py", line 58, in b64encode
... |
|
floatingshed |
Networking |
5 |
7,060 |
Jul-14-2018, 12:30 PM |
|
|
Thread: Converting web server from python 2 to python 3
Post: Converting web server from python 2 to python 3
I have been using this script, found online not my work!
In python2 it works perfectly, but in python3 (using 2to3) we get the "a bytes-like object is required, not 'str'" error.
I can't figure out h... |
|
floatingshed |
Networking |
5 |
7,060 |
Jul-14-2018, 07:49 AM |
|
|
Thread: FTP, HTTP or.....?
Post: RE: FTP, HTTP or.....?
I looked at this but it doesn't do all that I need. It is one way file transfer and doesn't allow streaming of audio... |
|
floatingshed |
Networking |
3 |
3,029 |
Jun-29-2018, 04:21 PM |
|
|
Thread: Analyse audio files, not sure where to start
Post: RE: Analyse audio files, not sure where to start
I figured this out... thought I'd reply to my own post in case anyone else asks a similar question.
I used VLC bindings for Python to play the files and pydub/AudioSegment to get the info. |
|
floatingshed |
General Coding Help |
1 |
2,238 |
Jun-29-2018, 02:58 PM |
|
|
Thread: FTP, HTTP or.....?
Post: FTP, HTTP or.....?
I need to setup a server that can be used to exchange files in both directions (ftp style), and serve mp3 audio to a player such as VLC.
I have done both quite successfully using Python's ftp module ... |
|
floatingshed |
Networking |
3 |
3,029 |
Jun-29-2018, 02:54 PM |
|
|
Thread: Analyse audio files, not sure where to start
Post: Analyse audio files, not sure where to start
I have a tool at my on-line radio station that analyses audio files (wav, mp3, m4a) and returns information about the file such as: number of milliseconds between the start of the file and the start o... |
|
floatingshed |
General Coding Help |
1 |
2,238 |
Jun-08-2018, 11:59 AM |
|
|
Thread: Help with tomorrow's date please
Post: RE: Help with tomorrow's date please
|
floatingshed |
General Coding Help |
3 |
4,644 |
Apr-01-2018, 09:22 PM |
|
|
Thread: Help with tomorrow's date please
Post: Help with tomorrow's date please
I am using this:
localtime = time.asctime( time.localtime(time.time()) )It returns this: Sun Apr 1 10:52:03 2018
How do I return tomorrow's day, month and date (the time and year aren't used) in t... |
|
floatingshed |
General Coding Help |
3 |
4,644 |
Apr-01-2018, 09:55 AM |
|
|
Thread: Create a new list dynamically
Post: RE: Create a new list dynamically
Oh, now I get it, sorry. That'll work. I'll have a play. Thanks. |
|
floatingshed |
General Coding Help |
6 |
14,362 |
Nov-20-2017, 01:25 PM |
|
|
Thread: Create a new list dynamically
Post: RE: Create a new list dynamically
I have a list that contains 13,000 entries. I want to create several new lists from it that contain only the proportion of the first list that contains specific data. When a search is performed it wou... |
|
floatingshed |
General Coding Help |
6 |
14,362 |
Nov-19-2017, 09:48 PM |
|
|
Thread: Create a new list dynamically
Post: RE: Create a new list dynamically
How would that help? I would still have to go through the dict to find all the entries that contain a particular value. I could just iterate over the original list with it's 13,000 items. The point of... |
|
floatingshed |
General Coding Help |
6 |
14,362 |
Nov-19-2017, 07:05 PM |