Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: serial still udefined
Post: RE: serial still udefined
The pdf was posted to show that "serial" is available as as packages.
What else do you need to show it is not recognized as "imported" ? |
|
anne |
General Coding Help |
3 |
1,742 |
Aug-03-2020, 01:42 AM |
|
|
Thread: What does QApplication do?
Post: RE: What does QApplication do?
Allow me to summarize
1. python does not NEED "main" in any format
2. in my sample /example the "application " is Qt5 , not python , hence
when referring to the python x.py file I should use an... |
|
anne |
GUI |
4 |
2,988 |
Aug-02-2020, 06:13 PM |
|
|
Thread: serial still udefined
Post: serial still udefined
See attached.
I did install pyserial in to python3.5 , restated Eclipse and it shows as installed .
What did I missed ? [attachment=947]
PS I am STILL NOT receiving e-mail notifications |
|
anne |
General Coding Help |
3 |
1,742 |
Aug-02-2020, 05:44 PM |
|
|
Thread: What does QApplication do?
Post: What does QApplication do?
OK, if this is out of python subject just ignore it .
I am beginning to understand strange "indented" philosophy of python syntax.
I even got where __main__ came from.
I picked this sample code ... |
|
anne |
GUI |
4 |
2,988 |
Aug-02-2020, 04:43 PM |
|
|
Thread: pip and python verison
Post: RE: pip and python verison
Output:z@z-desktop:~$ sudo python3.8 -m pip install --user PyQt5
[sudo] password for z:
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 185, in _run_module_as_main
m... |
|
anne |
General Coding Help |
3 |
3,087 |
Aug-02-2020, 03:52 PM |
|
|
Thread: pip and python verison
Post: pip and python verison
I have small issues with pip and python versions
1. MY OS reports python version 2.7.12
2. My Eclipse lets me select FOUR "interpreter" versions - from 2.7 and including 3.8
3. OS reports pip vers... |
|
anne |
General Coding Help |
3 |
3,087 |
Aug-01-2020, 01:52 AM |
|
|
Thread: bluetooth device inquiry
Post: bluetooth device inquiry
Two "inquiry " - scan for nearby bluetooth devices and two different results.
Where is the logical error in the first usage of function
bluetooth.discover_devices ?
inquiry is basins BlueZ funct... |
|
anne |
General Coding Help |
0 |
2,360 |
Aug-01-2020, 12:24 AM |
|
|
Thread: Python as First Langauge
Post: RE: Python as First Langauge
The value of a language should be in how it solves the issue.
No difference in using right size of hammer for job at hand.
Mathematician seldom solve issues "at high " level - so teach
a language w... |
|
anne |
News and Discussions |
20 |
9,212 |
Jul-31-2020, 06:06 PM |
|
|
Thread: PermissionError while running function
Post: RE: PermissionError while running function
As a new user of python I cannot comment on the code , but
in other language when file is open ( file.open) it will be created if it does not exists.
If python has similar concept - is checking for ... |
|
anne |
General Coding Help |
19 |
5,947 |
Jul-31-2020, 05:43 PM |
|
|
Thread: python project structure
Post: python project structure
I am using Eclipse plug-in PyDev.
PyDev lets me create "New project" and I end up with a basic structure - see attached.
( Edited Sorry odt file cannot be attached )
I am using two working pytho... |
|
anne |
General Coding Help |
1 |
1,764 |
Jul-31-2020, 03:12 PM |
|
|
Thread: connot write to sys.stderr
Post: RE: connot write to sys.stderr
/usr/lib/python3.7/site.py is read-only because it is a file from the systemwide install of python that you as a user are not supposed to edit. You shouldn't have edited site.py and the editor cannot ... |
|
anne |
General Coding Help |
7 |
2,889 |
Jul-30-2020, 05:31 PM |
|
|
Thread: import ?
Post: RE: import ?
Sorry, I marked the thread solved and prompt lost my message !
My "inquire.py" code found my bluetooth devices AFTER I selected CORRECT version of interpreter . |
|
anne |
General Coding Help |
9 |
4,010 |
Jul-30-2020, 04:34 PM |
|
|
Thread: connot write to sys.stderr
Post: RE: connot write to sys.stderr
Sorry,
the "inquiry.py" came with PyBluez. I did not write it.
What you are saying is "stderr" has to be enabled, as indicated.
This is the only error I get and my guess
is it is serious enoug... |
|
anne |
General Coding Help |
7 |
2,889 |
Jul-30-2020, 02:49 PM |
|
|
Thread: import ?
Post: RE: import ?
This is getting pretty convoluted.
Can I include file here instead of text ? ( see what follows )
What is the difference between using "pip " to install and plain "apt install"?
It looks as the or... |
|
anne |
General Coding Help |
9 |
4,010 |
Jul-30-2020, 02:22 PM |
|
|
Thread: connot write to sys.stderr
Post: connot write to sys.stderr
I am using Eclipse IDE and doing Run As -> Pyton Run "inquiry.py"
It fails in "site.py".
I know what is the function of site.py.
My question is
why is writing error to stderr disabled?
Is ... |
|
anne |
General Coding Help |
7 |
2,889 |
Jul-30-2020, 01:49 PM |
|
|
Thread: import ?
Post: RE: import ?
I have two python interpreters I can select.
I did check both for PyBlueZ BUT did not realize that the application I have cloned from github was build for pyhton2.7 !
After adding 2.7 the code parti... |
|
anne |
General Coding Help |
9 |
4,010 |
Jul-30-2020, 03:51 AM |
|
|
Thread: import ?
Post: RE: import ?
Thanks, however, I was not looking for definitions.
Here is a sample code I pickled from pybluez
import bluetooth
print("Performing inquiry...")
nearby_devices = bluetooth.discover_devices(durati... |
|
anne |
General Coding Help |
9 |
4,010 |
Jul-30-2020, 12:21 AM |
|
|
Thread: import ?
Post: import ?
My first python application
I have some understanding of "import" - as similar to C "include".
I can see how it works in one project / application, however , I cannot figure out what needs to be done... |
|
anne |
General Coding Help |
9 |
4,010 |
Jul-29-2020, 10:20 PM |