Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Read a single event (keypress) from asyncio
Post: RE: Read a single event (keypress) from asyncio

(May-26-2021, 03:38 PM)deanhystad Wrote: This is a difficult question to answer without knowing more about the messages sent by the remote. Does it send a button release message? If so, you can ig...
cygnus_X1 General Coding Help 3 4,349 May-26-2021, 05:03 PM
    Thread: Unable to plot the graph as needed
Post: RE: Unable to plot the graph as needed

(May-26-2021, 05:54 AM)drunkenneo Wrote: Hi I am currently facing an problem which might be usual to you as i have just started my party, i thought to take help from Masters. I am trying to plot a...
cygnus_X1 General Coding Help 1 6,394 May-26-2021, 11:04 AM
    Thread: Read a single event (keypress) from asyncio
Post: Read a single event (keypress) from asyncio

I'm using asyncio library to read input from a Infra Red remote control. This is python 3.7 branch on an Orange Pi Zero, using the built in IR receiver as the event loop. The problem is asyncio is s...
cygnus_X1 General Coding Help 3 4,349 May-26-2021, 10:46 AM
    Thread: Cant install gtts module Python 3.4 [SOLVED]
Post: RE: Cant install gtts module Python 3.4

Finally got it solved. I hunted for the UNKNOWN package and read the .egg info. All it contained in all fields was UNKNOWN (in caps). Then I read about python packaging on: https://packaging.python.o...
cygnus_X1 Web Scraping & Web Development 8 12,342 Jan-05-2019, 12:16 AM
    Thread: Cant install gtts module Python 3.4 [SOLVED]
Post: RE: Cant install gtts module Python 3.4

Ran first command and posting output of sys.path: /usr/bin/python3.4 -c "import sys; print(sys.path)" Quote:Command output ['', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-x86_64-linux-gnu', '/usr...
cygnus_X1 Web Scraping & Web Development 8 12,342 Jan-04-2019, 11:14 PM
    Thread: Cant install gtts module Python 3.4 [SOLVED]
Post: RE: Cant install gtts module Python 3.4

Hi I dont have site packages in that directory: /usr/lib/python3.4 > ls s* sched.py sitecustomize.py socket.py ssl.py struct.py sysconfig.py selectors.py site.py ...
cygnus_X1 Web Scraping & Web Development 8 12,342 Jan-04-2019, 04:53 PM
    Thread: Cant install gtts module Python 3.4 [SOLVED]
Post: RE: Cant install gtts module Python 3.4

Thanks for ypur quick reply. On Linux Mint pip3 has to be used with sudo as its a system wide install and python (refers to python2, while python3 is for p[ython3 branch). I've posted the outputs of...
cygnus_X1 Web Scraping & Web Development 8 12,342 Jan-04-2019, 11:14 AM
    Thread: Cant install gtts module Python 3.4 [SOLVED]
Post: Cant install gtts module Python 3.4 [SOLVED]

I cant install the google text to speech module (gtts) on Python 3.4.2 OS is Linux Mint 17.3 and using pip3. Gtts appears to download and install... Quote:sudo pip3 install gtts Downloading/unpackin...
cygnus_X1 Web Scraping & Web Development 8 12,342 Jan-03-2019, 11:06 PM
    Thread: Python equivalent to sed [solved]
Post: RE: Python equivalent to sed [solved]

Thanks for your reply Nilamo, I see my mistake now. content = os.popen("sed -n '/time/, +3p' mon").read() The solution I used was string concatenation: str1 = "sed -n '/" + str(time)+ "/, +3p' mon"...
cygnus_X1 General Coding Help 2 11,427 Sep-24-2018, 10:13 PM
    Thread: Python equivalent to sed [solved]
Post: Python equivalent to sed [solved]

I'm trying to create a program guide for BBC Radio 4 Extra. I'm using python3.4 and Debian linux on Raspberry Pi In linux the stream editor (sed) can extract content using sed -n '/14:00/, +3p' mon ...
cygnus_X1 General Coding Help 2 11,427 Sep-24-2018, 02:32 PM
    Thread: CPU usage with while Loop and LIRC [SOLVED]
Post: RE: CPU usage with while Loop and LIRC

OK, thank you for quick reply.
cygnus_X1 General Coding Help 3 5,982 Apr-08-2018, 09:29 PM
    Thread: CPU usage with while Loop and LIRC [SOLVED]
Post: CPU usage with while Loop and LIRC [SOLVED]

Is it normal to see 100% CPU usage with LIRC and a while loop? I have a Raspberry Pi , Model B (first version) single core CPU runs at 700MHz. I have installed music player daemon and LIRC. My code i...
cygnus_X1 General Coding Help 3 5,982 Apr-08-2018, 07:37 PM
    Thread: Help with "surrounding" a string
Post: RE: Help with "surrounding" a string

Below is one solution that works, just a number of simple print statements in Python3 #!/usr/bin/env python msg = input("Enter message:- ") ch="*" sp=" " print(ch*(10+len(msg))) # print * print(ch + ...
cygnus_X1 Homework 2 3,600 Oct-19-2017, 08:03 PM
    Thread: Beginner Need Help With PyQt
Post: RE: Beginner Need Help With PyQt

I've not watched the youtube video but that code works as described on Linux Mint. What you need to do is quote what operating system youre running and also paste the traaceback so someone can help yo...
cygnus_X1 GUI 2 3,688 Oct-02-2017, 11:52 AM
    Thread: Speech Recognition
Post: RE: Speech Recognition

(Sep-25-2017, 02:35 AM)rajeev1729 Wrote: Is there any speech recognition API for Hindi language? I didn't find any speech recognition, but you can get google to speak 'Hindi' from a text string. Ins...
cygnus_X1 General Coding Help 7 53,803 Sep-25-2017, 07:10 AM
    Thread: TypeError: 'list' object is not callable
Post: RE: TypeError: 'list' object is not callable

It may help if you post what OS you are running and the version of python you've installed. Your code works ok on both python2.7 and python 3.6 on linux python test.py ('List elements : ', ['xyz', ...
cygnus_X1 General Coding Help 4 16,005 Sep-10-2017, 12:50 PM
    Thread: Python IDLE 3.6.2 on WIn7 vs Pyhton 3 IDLE raspberry
Post: RE: Python IDLE 3.6.2 on WIn7 vs Pyhton 3 IDLE ras...

To answer your second question python2.7 is installed on the raspberry pi by default. Typing: which python which python3 will return the relative path. You can create a symlink but this is not advi...
cygnus_X1 General Coding Help 5 5,730 Sep-07-2017, 11:57 AM
    Thread: .py File extension now working
Post: RE: .py File extension now working

I see your problem now. On windows you need to associate the extention .py with the python interpreter. This is the standard doc for python3: https://docs.python.org/3.3/using/windows.html See sect...
cygnus_X1 General Coding Help 5 4,371 Sep-06-2017, 08:34 PM
    Thread: .py File extension now working
Post: RE: .py File extension now working

You need to post your screenshot again, but in any case tell the forum what operating system you use, just in case its platform specific.
cygnus_X1 General Coding Help 5 4,371 Sep-06-2017, 08:23 PM
    Thread: 'Hello, World!' Problem - Urgent
Post: RE: 'Hello, World!' Problem - Urgent

As youre running under windows the command will probably be: python3.exe hello.py I cant verify this as I'm running linux. The answer is in the python doc: https://docs.python.org/3.3/using/windo...
cygnus_X1 General Coding Help 7 4,599 Sep-06-2017, 08:20 PM

User Panel Messages

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