Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: 2.7 Python uninstallation on Mac OS.
Post: RE: 2.7 Python uninstallation on Mac OS.

i won't touch any of the factory installed software if I were you. You never know which component in the macos relies on python2, leave it be. It doesn't take up much memory anyways.
tony1812 General Coding Help 4 2,763 Sep-30-2018, 11:21 PM
    Thread: pi3 serial communication
Post: pi3 serial communication

Hello, I have this two pieces of codes, It is used to communicate between pi 3 and Arduno via HC-0% bluetooth. It was work about a year ago but now I try to use it it stop workin and I can't figure w...
tony1812 General Coding Help 0 2,149 Sep-23-2018, 10:29 PM
    Thread: finding proper libraries
Post: RE: finding proper libraries

When I said goole, I meant search engines in general. to be more specific what did people do in the pre search engine age?
tony1812 News and Discussions 3 2,282 Sep-18-2018, 06:24 PM
    Thread: finding proper libraries
Post: finding proper libraries

Hello, today it is relatively easy to find a library to use a function, it is usually no far from a simple google. But in the pre-google age, how do people find that?
tony1812 News and Discussions 3 2,282 Sep-18-2018, 12:46 PM
    Thread: filter out a string
Post: RE: filter out a string

Thanks for the reply. I found the second way is better, nice and succinct. And yes it ought to be the same format. Hopefully the cpu temp never reaches temp=123.4 'C :} In the first method match.group...
tony1812 General Coding Help 4 2,968 Sep-14-2018, 12:27 PM
    Thread: filter out a string
Post: filter out a string

Hello, I use code like this cpu_temp2 = os.popen("vcgencmd measure_temp").readline()to get the cpu temperture of the pi.It returns a string temp=55.6'C Now I want to get rid of the temp= and 'C so tha...
tony1812 General Coding Help 4 2,968 Sep-13-2018, 11:20 PM
    Thread: strange python3 issue
Post: strange python3 issue

Hello, I am learning tkinter, in the process, I run into a strange problem. I have two python3 simple scripts, one is named window_class.py the other named canvas1.py. The problem is I set up the wind...
tony1812 General Coding Help 1 2,233 Sep-06-2018, 12:07 AM
    Thread: Missing title bar
Post: Missing title bar

Hello, I have proterface the 3d Printing software installed on my pi3. I put the script put in /profile so it starts as soon as the pi boots up. It starts up just fine. However, the title bar in the w...
tony1812 GUI 0 2,098 Jan-30-2018, 01:03 PM
    Thread: opencv help
Post: opencv help

Hello, I compiled opencv successfully, so I thought, but when I run a script, I got this opencv error: OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Window...
tony1812 General Coding Help 0 2,594 Jan-21-2018, 06:54 AM
    Thread: opencv without virtualenv
Post: opencv without virtualenv

Hello, I followed this tutorial, https://www.pyimagesearch.com/2017/09/04...pberry-pi/ successfully installed opencv on the pi3, after using it for a while, I found the virtualenv is more a annoyance ...
tony1812 General Coding Help 0 3,052 Jan-20-2018, 12:42 AM
    Thread: pronterface on 3.5 " LCD
Post: pronterface on 3.5 " LCD

Hello, I am pretty new to python. I use a pi3 to connect to my 3D printer, I insalled proterface on it, It works find on HDMI.screen Now I have a 3.5" LCD for the pi3, I opened pronterface, only part...
tony1812 GUI 0 2,005 Jan-17-2018, 09:33 PM
    Thread: python data format to c data format
Post: python data format to c data format

Hello, I am writing a python code to write data to the serial port for Anduino to receive. Pi side pos_i=50 #degree in the range of 0-180 print(pos_i) pos_b=pos_i.to_bytes(1, 'little') # squeeze the...
tony1812 General Coding Help 1 3,044 Dec-01-2017, 10:58 PM
    Thread: free python editor for mac
Post: free python editor for mac

Hello, I am looking for a free python editor for my Mac, I mean a truly free one, not those bogus "free" trial then ask for money. does anyone have a suggestion? Thanks.
tony1812 General Coding Help 5 4,929 Sep-29-2017, 12:11 PM
    Thread: find a character in a string in python3
Post: RE: find a character in a string in python3

Thanks for the reply. when I use re.search, it returns something like this: <_sre.SRE_Match object; span=(6, 7), match='w'>. Basically, I have serveral sensors output data throurgh serial to th...
tony1812 General Coding Help 6 6,349 Sep-27-2017, 11:51 AM
    Thread: find a character in a string in python3
Post: RE: find a character in a string in python3

I am just wondering if there are some kinds of string functions in python like in php or javascript
tony1812 General Coding Help 6 6,349 Sep-26-2017, 11:44 PM
    Thread: find a character in a string in python3
Post: find a character in a string in python3

Hello, how do I find a specific character in a string? for example, str="Hello world" I need it to ba able to return the character "w", not just its index. Thanks.
tony1812 General Coding Help 6 6,349 Sep-26-2017, 10:31 PM
    Thread: get last row id in pymysql
Post: get last row id in pymysql

Hello, I am pretty new to python I am wondering is this is the correct syntax to get the last row id in a my=sql mysql table? cur=conn.cursor() sql="SELECT row_id FROM test_tb ORDER BY row_id DESC LIM...
tony1812 General Coding Help 1 11,154 Sep-26-2017, 10:04 PM
    Thread: pymysql question
Post: pymysql question

Hello, I am totally new to python. I am learning to use pymysql to retrive daa from mysql, I have this code: #!/usr/bin/python3 import pymysql #make a connection to mysql conn = pymysql.connect( ...
tony1812 General Coding Help 1 2,883 Sep-26-2017, 12:24 AM
    Thread: pymysql on macos seirra
Post: RE: pymysql on macos seirra

Thank you for the replay. Actully, I just realised that pymysql are both /usr/local/lib/python3.6/site-packages/ and /Library/Python/2.7/site-packages/ directories. However when I do import pymysql, t...
tony1812 General Coding Help 5 4,541 Sep-17-2017, 12:56 PM
    Thread: pymysql on macos seirra
Post: RE: pymysql on macos seirra

Thanks for the reply. I am not sure I understand what you mean. Anyhow, I wrote a python3 script that uses pymysql but it was running in Linux. Now I want it to be able to run on my Mac as well, I am ...
tony1812 General Coding Help 5 4,541 Sep-16-2017, 01:52 PM

User Panel Messages

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