Re: installation issues
On Tue, Feb 09, 2021 at 03:23:56PM -0800, Martin Lopez wrote: > Hello, > > My name is Martin Lopez. I just downloaded Python 3.9.1 (64 bit) Setup. > > After I install the program then try to run it, with no success. > > I've uninstalled all previous versions and reinstalled them, but it does > not seem to help. > > Can you please assist? > > Thank you, How did you run it? Are there any error messages? If there is not enough information, no one can help you solve the issues. Personal guess: Did you not add python.exe to the Path environment variable? (You can check this option during the installation process to let the installer add it for you, or you can add it manually after the installation is complete) -- OpenPGP fingerprint: 3C47 5977 4819 267E DD64 C7E4 6332 5675 A739 C74E signature.asc Description: PGP signature -- https://mail.python.org/mailman/listinfo/python-list
Re: Is there a way to subtract 3 from every digit of a number?
On Sat, Feb 20, 2021 at 09:40:48AM -0500, C W wrote: > Hello everyone, > > I'm curious if there is a way take number and back each digit by 3 ? > > 2342 becomes 9019 > 8475 becomes 5142 > 5873 becomes 2540 > > The tricky part is that 2 becomes 9, not -1. > [...] I just wrote a very short code can fulfill your needs: a = 2342 b = int("".join(map(lambda x: str((int(x)-3)%10) ,list(str(a) It does the following things: 1. Convert a number into a string, and then convert this string into a list of single characters. 2. Write a lamdba expression to apply your conversion rules to a single-character type number (just subtract 3 and then modulo 10). 3. Apply the lambda expression to the above string list through map. 4. Finally join the modified list into a string and convert it into an integer. -- OpenPGP fingerprint: 3C47 5977 4819 267E DD64 C7E4 6332 5675 A739 C74E signature.asc Description: PGP signature -- https://mail.python.org/mailman/listinfo/python-list
Re: Question about generators
On Sat, Mar 06, 2021 at 08:21:47AM +0200, Frank Millman wrote: > [...] > I understand the concept that a generator does not return a value until you > call next() on it, but I have not grasped the essential difference between > the above two constructions. > > TIA for any insights. > > Frank Millman In your first example, a certain element is appended to s each time in the loop. But in your second example, the generator first traverses all the elements, and then generates an iterable object, you are trying to append this object to s. Let's look at a simpler but more certain example: a = [1, 2, 3] s = [] for n in a: s.append(n) # Result: # len(s) == 3 # s == [1, 2, 3] a = [1, 2, 3] s = [] g = (n for n in a) s.append(g) # Result: # len(s) == 1 # list(s[0]) == [1, 2, 3] If you want to get the same result in the above two cases, just replace append with extend. list.extend() can accept an iterable object as input, and then append all the elements to the original list. -- OpenPGP fingerprint: 3C47 5977 4819 267E DD64 C7E4 6332 5675 A739 C74E signature.asc Description: PGP signature -- https://mail.python.org/mailman/listinfo/python-list
XML parsing ExpatError with xml.dom.minidom at line 1, column 0
Hi, i've a Python script which stopped working about a month ago. But until then, it worked flawlessly for months (if not years). A tiny self-contained 7-line script is provided below. i ran into an XML parsing problem with xml.dom.minidom and the error message is included below. The weird thing is if i used an XML validator on the web to validate against this particular URL directly, it is all good. Moreover, i saved the page source in Firefox or Chrome then validated against the saved XML file, it's also all good. Since the error happened at the very beginning of the input (line 1, column 0) as indicated below, i was wondering if this is an encoding mismatch. However, according to the saved page source in FireFox or Chrome, there is the following at the beginning: = #!/usr/bin/env python import urllib2 from xml.dom.minidom import parseString fd = urllib2.urlopen('http://api.worldbank.org/countries') data = fd.read() fd.close() dom = parseString(data) = = Traceback (most recent call last): File "./bugReport.py", line 9, in dom = parseString(data) File "/usr/lib/python2.7/xml/dom/minidom.py", line 1931, in parseString return expatbuilder.parseString(string) File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 940, in parseString return builder.parseString(string) File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 0 = i'm running Python 2.7.5+ on Ubuntu 13.10. Thanks. -- https://mail.python.org/mailman/listinfo/python-list
MRO Error on Multiple Inheritance?
I'm working through Wesley Chun's CPP2e and got this error on 13.11.1, pp 548 where his interpreter snippet shows no problems: ActivePython 2.5.1.1 (ActiveState Software Inc.) b Python 2.5.1 (r251:54863, May 1 2007, 17:47:05) [ win32 Type "help", "copyright", "credits" or "license" f >>> class A(object): pass ... >>> class B(A): pass ... >>> class C(B): pass ... >>> class D(A, B): pass ... Traceback (most recent call last): File "", line 1, in TypeError: Error when calling the metaclass bases Cannot create a consistent method resolution order (MRO) for bases A, B (I submitted the problem to the author but I'm not sure I'll ever hear back.) I'm guessing that this kind of diamond inheritance is prohibited by the interpreter, and that his lack of error messages from the interpretation is due to actually leaving out the "class B(A): pass" Can someone shed light? Thanks. -- http://mail.python.org/mailman/listinfo/python-list
Re: MRO Error on Multiple Inheritance?
Thanks for the all the replies. CPP2e is the Second Edition of the book "Core Python Programming." On Jan 4, 6:13 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > Ming <[EMAIL PROTECTED]> writes: > > I'm working through Wesley Chun's CPP2e and got this error on 13.11.1, > > pp 548 where his interpreter snippet shows no problems: > > I don't know what a "CPP2e" is. Is it a book? Can you give the ISBN? > > > > > ActivePython 2.5.1.1 (ActiveState Software Inc.) b > > Python 2.5.1 (r251:54863, May 1 2007, 17:47:05) [ > > win32 > > Type "help", "copyright", "credits" or "license" f > > >>> class A(object): pass > > ... > > >>> class B(A): pass > > ... > > >>> class C(B): pass > > ... > > >>> class D(A, B): pass > > ... > > Traceback (most recent call last): > > File "", line 1, in > > TypeError: Error when calling the metaclass bases > > Cannot create a consistent method resolution > > order (MRO) for bases A, B > > > (I submitted the problem to the author but I'm not sure I'll ever hear > > back.) I'm guessing that this kind of diamond inheritance is > > prohibited by the interpreter, and that his lack of error messages > > from the interpretation is due to actually leaving out the "class > > B(A): pass" Can someone shed light? Thanks. > > That's not an example of diamond inheritance > http://en.wikipedia.org/wiki/Diamond_problem> because classes A > and B are not distinct classes with a *common* base. Instead, they're > in a direct parent-child relationship. > > So there's no sense in defining class D to inherit from both A *and* > B. To get a descendent of both those classes, inheriting from B is > sufficient. It should rather be:: > > class D(B): pass > > -- > \ "Pinky, are you pondering what I'm pondering?" "Uh, I think so, | > `\ Brain, but we'll never get a monkey to use dental floss." -- | > _o__)_Pinky and The Brain_ | > Ben Finney -- http://mail.python.org/mailman/listinfo/python-list
recommended gcc versions for python2.5 compilation on Solaris sparc/x86, AIX, Linux
Dear All, We are going to compile python2.5.1 with gcc on various platforms, including Solaris8(sparc), Solaris10(x86), AIX and Linux. Just want to check if there are recommended gcc versions for these platforms. We aim to: 1. use a single version of gcc for all platforms 2. use new version of gcc (rather than odd version) Thanks and best regards, Yin Ming This e-mail contains information for the intended recipient only. It may contain proprietary material or confidential information. If you are not the intended recipient you are not authorised to distribute, copy or use this e-mail or any attachment to it. Murex cannot guarantee that it is virus free and accepts no responsibility for any loss or damage arising from its use. If you have received this e-mail in error please notify immediately the sender and delete the original email received, any attachments and all copies from your system. -- http://mail.python.org/mailman/listinfo/python-list
RE: recommended gcc versions for python2.5 compilation on Solarissparc/x86, AIX, Linux
Dear Jeroen, Thanks so much for your help. :) Best regards, Yin Ming -Original Message- From: Jeroen Ruigrok van der Werven [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2008 5:55 PM To: YIN Ming Cc: python-list@python.org; LEGRAND Mathieu Subject: Re: recommended gcc versions for python2.5 compilation on Solarissparc/x86, AIX, Linux -On [20080711 06:18], YIN Ming ([EMAIL PROTECTED]) wrote: >2. use new version of gcc (rather than odd version) See http://www.in-nomine.org/2008/04/11/python-26a2-execution-times-with-various-compilers/ that I wrote a while ago. Basically for Python GCC 3.4.6 outperformed the newer GCCs. So do not automatically assume that newer is better. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B The weak can never forgive. Forgiveness is the attribute of the strong... This e-mail contains information for the intended recipient only. It may contain proprietary material or confidential information. If you are not the intended recipient you are not authorised to distribute, copy or use this e-mail or any attachment to it. Murex cannot guarantee that it is virus free and accepts no responsibility for any loss or damage arising from its use. If you have received this e-mail in error please notify immediately the sender and delete the original email received, any attachments and all copies from your system. -- http://mail.python.org/mailman/listinfo/python-list
Compilation problem of Python2.5.1 on AIX5.2 (with --enable-shared option)
Dear All, I encountered a problem when compiling Python2.5.1 as shared library on AIX5.2. Your help are greatly appreciated. In order to embed python into our product, we want to compile python as shared library. It works for Solaris and Linux. Unfortunately, It is for AIX and I could not find solution from Web. Could you help answer the following questions: Is it feasible to compile python2.5.1 as shared library for AIX5.2? or where can I find relevant documentation/info for this? So far, the only documents I have are the README and Misc/AIX-NOTES in the source distribution The step I tried to compile python as shared library is to follow README, section "Building a shared libpython", which suggests to add --enable-shared during configuration. My problem is that with --enable-shared, the make step could not complete (the error message shows it tries to refer to "-lpython2.5" in a wrong directory). Then if I refer it to the correct directory (which is compiled in source root), some warning messages show duplicated symbols. And finally I just remove "-lpython2.5", the make could finish but the resulting python interpreter is a statically-linked binary. (The detail is shown below). The detail of my compilation 1. CC="cc_r" ./configure --prefix=/src/new/python2/install --without-gcc --disable-ipv6 --enable-shared 2. make CC="cc_r" OPT="-O -qmaxmem=4000" An error occurred when compiling python extensions. ... running build running build_ext INFO: Can't locate Tcl/Tk libs and/or headers building '_struct' extension creating build ... cc_r -DNDEBUG -O -I. -I/vega5/prod/src/new/python2/Python-2.5.1/./Include -I./In clude -I. -I/usr/local/include -I/vega5/prod/src/new/python2/Python-2.5.1/Includ e -I/vega5/prod/src/new/python2/Python-2.5.1 -c /vega5/prod/src/new/python2/Pyth on-2.5.1/Modules/_struct.c -o build/temp.aix-5.2-2.5/vega5/prod/src/new/python2/ Python-2.5.1/Modules/_struct.o creating build/lib.aix-5.2-2.5 ./Modules/ld_so_aix cc_r -bI:Modules/python.exp build/temp.aix-5.2-2.5/vega5/pro d/src/new/python2/Python-2.5.1/Modules/_struct.o -L/usr/local/lib -lpython2.5 -o build/lib.aix-5.2-2.5/_struct.so ld: 0706-006 Cannot find or open library file: -l python2.5 ld:open(): No such file or directory *** WARNING: renaming "_struct" since importing it failed: No such file or directory error: No such file or directory make: The error code from the last command is 1. The highlighted command tries to locate the pyhton2.5 lib in /usr/local/lib, which obviously does not contain this lib. A library, libpython2.5.a, has already been compiled in the root build directory. 1) First, I try to add "-L." to the command ./Modules/ld_so_aix cc_r -bI:Modules/python.exp build/temp.aix-5.2-2.5/vega5/prod/src/new/python2/Python-2.5.1/Modules/_ struct.o -L/usr/local/lib -L. -lpython2.5 -o build/lib.aix-5.2-2.5/_struct.so It could find but with a lot of warning messages like: ld: 0711-224 WARNING: Duplicate symbol: PyObject_GenericGetAttr ld: 0711-224 WARNING: Duplicate symbol: .PyObject_GenericGetAttr ld: 0711-224 WARNING: Duplicate symbol: ._Py_ReadyTypes ... 2) Second, I try to remove "-L/usr/local/lib -lpython2.5" from the command ./Modules/ld_so_aix cc_r -bI:Modules/python.exp build/temp.aix-5.2-2.5/vega5/prod/src/new/python2/Python-2.5.1/Modules/_ struct.o -o build/lib.aix-5.2-2.5/_struct.so It complete without any warning message. As a result, I filter out all "-lpython2.5" passed to ./Modules/ld_so_aix for the rest commands. In this way, the python interpreter was generated. However, it is a big executable and "ldd python" does not show it depends on any python shared library (It seems no shared python library generated). It has no difference from the one compiled without --enable-shared. Note that if the configuration is run without --enable-shared option, the corresponding commands will not contain "-lpython2.5". Best regards, Yin Ming This e-mail contains information for the intended recipient only. It may contain proprietary material or confidential information. If you are not the intended recipient you are not authorised to distribute, copy or use this e-mail or any attachment to it. Murex cannot guarantee that it is virus free and accepts no responsibility for any loss or damage arising from its use. If you have received this e-mail in error please notify immediately the sender and delete the original email received, any attachments and all copies from your system. -- http://mail.python.org/mailman/listinfo/python-list
parallel computations: subprocess.Popen(...).communicate()[0] does not work with multiprocessing.Pool
Hi, I am having an issue when making a shell call from within a multiprocessing.Process(). Here is the story: i tried to parallelize the computations in 800-ish Matlab scripts and then save the results to MySQL. The non-parallel/serial version has been running fine for about 2 years. However, in the parallel version via multiprocessing that i'm working on, it appears that the Matlab scripts have never been kicked off and nothing happened with subprocess.Popen. The debug printing below does not show up either. Moreover, even if i replace the Matlab invocation with some trivial "sed" call, still nothing happens. Is it possible that the Python interpreter i'm using (version 2.6 released on Oct. 1, 2008) is too old? Nevertheless, i would like to make sure the basic framework i've now is not blatantly wrong. Below is a skeleton of my Python program: -- import subprocess from multiprocessing import Pool def worker(DBrow,config): # run one Matlab script cmd1 = "/usr/local/bin/matlab ... myMatlab.1.m" subprocess.Popen([cmd1], shell=True, stdout=subprocess.PIPE).communicate()[0] print "this does not get printed" cmd2 = "sed ..." print subprocess.Popen(cmd2, shell=True, stdout=subprocess.PIPE).communicate()[0] print "this does not get printed either" sys.stdout.flush() ### main program below .. # kick off parallel processing pool = Pool() for DBrow in DBrows: pool.apply_async(worker,(DBrow,config)) pool.close() pool.join() .. -- Furthermore, i also tried adding the following: multiprocessing.current_process().curr_proc.daemon = False at the beginning of the "worker" function above but to no avail. Any help would really be appreciated. -- http://mail.python.org/mailman/listinfo/python-list
Popular Python Package 'ctx' Hijacked to Steal AWS Keys
Subject: Popular Python Package 'ctx' Hijacked to Steal AWS Keys Good day from Singapore, Sharing this article for more awareness. Article: Popular PyPI Package 'ctx' and PHP Library 'phpass' Hijacked to Steal AWS Keys Link: https://thehackernews.com/2022/05/pypi-package-ctx-and-php-library-phpass.html Thank you. Regards, Mr. Turritopsis Dohrnii Teo En Ming Targeted Individual in Singapore 25 May 2022 Wed -- https://mail.python.org/mailman/listinfo/python-list
Which linux distro is more conducive for learning the Python programming language?
Subject: Which linux distro is more conducive for learning the Python programming language? Good day from Singapore, May I know which linux distro is more conducive for learning the Python programming language? Since I have absolutely and totally FREE RHEL developer subscription (I don't need to spend a single cent), can I use Red Hat Enterprise Linux version 9.0 to learn Python? Is it the most popular linux distro for learning Python? I just want to know which linux distro and version is more conducive for learning Python. Because there are thousands of linux distros out there. And I just want to settle down on a particular linux distro and version. Thank you. Regards, Mr. Turritopsis Dohrnii Teo En Ming Targeted Individual in Singapore 4 Aug 2022 Thursday Blogs: https://tdtemcerts.blogspot.com https://tdtemcerts.wordpress.com -- https://mail.python.org/mailman/listinfo/python-list
Re: Which linux distro is more conducive for learning the Python programming language?
I actually did a Google search for "which linux distro is best for python". Link: https://www.google.com/search?q=which+linux+distro+is+best+for+python&rlz=1C1GCEA_enSG1005SG1005&sxsrf=ALiCzsYaL58MJsevR2Uc0nnWtmc7kWFbIg%3A1659580387580&ei=4y_rYqWII8i7z7sPwPCtwAI&ved=0ahUKEwjlhenbkqz5AhXI3XMBHUB4CygQ4dUDCA8&uact=5&oq=which+linux+distro+is+best+for+python&gs_lcp=Cgdnd3Mtd2l6EAMyBQgAEIAEMgUIABCGAzIFCAAQhgMyBQgAEIYDMgUIABCGAzoECCMQJzoECAAQQzoLCAAQgAQQsQMQgwE6CAgAEIAEELEDOggILhCABBCxAzoFCAAQkQI6BQguEIAEOgsILhCABBDHARCvAToKCAAQgAQQhwIQFDoGCAAQHhAWSgQIQRgASgQIRhgAUABYljtg0D5oAXABeACAAesBiAG3E5IBBjM3LjAuMZgBAKABAcABAQ&sclient=gws-wiz Mr. Turritopsis Dohrnii Teo En Ming Targeted Individual in Singapore On Thu, 4 Aug 2022 at 10:31, Paul Bryan wrote: > > I wouldn't say any particular Linux distribution is appreciably better for > Python development than another. I would suggest using a version of a Linux > distribution that supports a recent Python release (e.g. 3.9 or 3.10). > > On Thu, 2022-08-04 at 10:22 +0800, Turritopsis Dohrnii Teo En Ming wrote: > > Subject: Which linux distro is more conducive for learning the Python > programming language? > > Good day from Singapore, > > May I know which linux distro is more conducive for learning the > Python programming language? > > Since I have absolutely and totally FREE RHEL developer subscription > (I don't need to spend a single cent), can I use Red Hat Enterprise > Linux version 9.0 to learn Python? > > Is it the most popular linux distro for learning Python? > > I just want to know which linux distro and version is more conducive > for learning Python. Because there are thousands of linux distros out > there. And I just want to settle down on a particular linux distro and > version. > > Thank you. > > Regards, > > Mr. Turritopsis Dohrnii Teo En Ming > Targeted Individual in Singapore > 4 Aug 2022 Thursday > Blogs: > https://tdtemcerts.blogspot.com > https://tdtemcerts.wordpress.com > > -- https://mail.python.org/mailman/listinfo/python-list
Which linux distro is more conducive for learning the Python programming language?
Subject: Which linux distro is more conducive for learning the Python programming language? Good day from Singapore, May I know which linux distro is more conducive for learning the Python programming language? Since I have absolutely and totally FREE RHEL developer subscription (I don't need to spend a single cent), can I use Red Hat Enterprise Linux version 9.0 to learn Python? Is it the most popular linux distro for learning Python? I just want to know which linux distro and version is more conducive for learning Python. Because there are thousands of linux distros out there. And I just want to settle down on a particular linux distro and version. Thank you. Regards, Mr. Turritopsis Dohrnii Teo En Ming Targeted Individual in Singapore 4 Aug 2022 Thursday Blogs: https://tdtemcerts.blogspot.com https://tdtemcerts.wordpress.com -- https://mail.python.org/mailman/listinfo/python-list
Re: Which linux distro is more conducive for learning the Python programming language?
On Thu, 4 Aug 2022 at 10:47, orzodk wrote: > > Turritopsis Dohrnii Teo En Ming writes: > > > noted with thanks. I have been using Linux for more than 10 years already > > Ah, if you're familiar with Redhat (RPM) based distributions, consider > Fedora as you will have access to newer versions sooner. > > If you're more familiar with Debian (DEB) based distributions, consider > Ubuntu, again, as the new version release cycle is twice a year. > > (Also, my apologies -- I meant to CC the list but failed to do so.) I am actually quite familiar with many linux distros. I am familiar with RPM-based linux distros as well as DEB-based linux distros. Mr. Turritopsis Dohrnii Teo En Ming Targeted Individual in Singapore -- https://mail.python.org/mailman/listinfo/python-list
Re: Which linux distro is more conducive for learning the Python programming language?
On Thu, 4 Aug 2022 at 11:05, dn wrote: > > On 04/08/2022 14.31, Paul Bryan wrote: > > I wouldn't say any particular Linux distribution is appreciably better > > for Python development than another. I would suggest using a version of > > a Linux distribution that supports a recent Python release (e.g. 3.9 or > > 3.10). > > +1 > > As a Python-learner (there's no comment about current programming > expertise), it is unlikely to make any difference which Linux distro is > used. > > Answers to such open-ended questions are usually seated in bias - which > in-turn is mostly likely to be the same answer as 'which is the Linux > distro *I* use? > (I've used a number, with Python, over the years) > > The better alignment is to match the version of Python with the book or > course you are using as learning-materials. That way, there are unlikely > to be surprises. Noted on this. > > There are differences in Python implementations between Linux, Mac, and > Windows. However, I can't think of a book or course which spends any > time discussing them, or having a chapter which demands one or other OpSys. > > When you become more experienced two things will happen: firstly you > will start using tools which enable the use of different versions of > Python for different dev.projects; and secondly you will form your own > opinions of "best"! > (it's not difficult to change distro) > > > PS most of us will qualify for RedHat's Developer program[me] and free > copies of software. I can download free copies of RHEL 7.x, 8.x, and 9.x :) Just that I dunno which RHEL version is better. Is RHEL 9.0 the best out of 7.x, 8.x and 9.x? > -- > Regards, > =dn Regards, Mr. Turritopsis Dohrnii Teo En Ming Targeted Individual in Singapore -- https://mail.python.org/mailman/listinfo/python-list
Re: Which linux distro is more conducive for learning the Python programming language?
On Thu, 4 Aug 2022 at 13:02, Kushal Kumaran wrote: > > On Thu, Aug 04 2022 at 10:22:41 AM, Turritopsis Dohrnii Teo En Ming > wrote: > > Subject: Which linux distro is more conducive for learning the Python > > programming language? > > > > Good day from Singapore, > > > > May I know which linux distro is more conducive for learning the > > Python programming language? > > > > Since I have absolutely and totally FREE RHEL developer subscription > > (I don't need to spend a single cent), can I use Red Hat Enterprise > > Linux version 9.0 to learn Python? > > > > Is it the most popular linux distro for learning Python? > > > > I just want to know which linux distro and version is more conducive > > for learning Python. Because there are thousands of linux distros out > > there. And I just want to settle down on a particular linux distro and > > version. > > > > The best one would be whatever you happen to have installed and for > which you understand system administration. Beyond that, distribution > choice matters very little. Every distribution I've used ships python3 > packages, which was fine for learning the language. > > -- > regards, > kushal Noted with thanks Kushal. Since I can download FREE copies of RHEL 9.0, I will use it then. Mr. Turritopsis Dohrnii Teo En Ming Targeted Individual in Singapore -- https://mail.python.org/mailman/listinfo/python-list
Re: Which linux distro is more conducive for learning the Python programming language?
On Thu, 4 Aug 2022 at 16:50, dn wrote: > > >> PS most of us will qualify for RedHat's Developer program[me] and free > >> copies of software. > > > > I can download free copies of RHEL 7.x, 8.x, and 9.x :) Just that I > > dunno which RHEL version is better. Is RHEL 9.0 the best out of 7.x, > > 8.x and 9.x? > > RedHat is a stable OpSys. Accordingly, it doesn't much matter which > version. The general assumption is that the more recent distribution has > more advanced facilities, eg improved security features in RHEL9. > > As another post says, Fedora is closer to the bleeding-edge of Linux > development. RHEL 9.0 is also quite close to the bleeding edge of Linux development. It has Linux kernel version 5.14.0. > > Be aware that there are many methods of adding Python. For example, if > your training is based on the Anaconda [Python] distribution, then it is > irrelevant which version of Python comes with the Linux distro. As > mentioned before, if you advance to developing in [Python] virtual > environments, then each of these could run a different version of > Python. Similarly, using a VM... > > The question is relatively minor. More important to 'get going'! I am going to get going on learning Python with RHEL 9.0. > (also mentioned previously: relatively easy to change (Python or distro) > 'later'!) > -- > Regards, > =dn Regards, Mr. Turritopsis Dohrnii Teo En Ming Targeted Individual in Singapore -- https://mail.python.org/mailman/listinfo/python-list
Can I earn a lot of money by learning and mastering the Python programming language?
Subject: Can I earn a lot of money by learning and mastering the Python programming language? Good day from Singapore, I am an IT consultant with a System Integrator (SI)/computer firm in Singapore, specializing in Systems/Infrastructure and Computer Networking. I am thinking of creating an extra avenue/stream of income by learning extra skills and becoming a programmer or software developer/engineer. I hope it is not too late for a person of my age. Can I earn a lot of money by learning and mastering the Python programming language? Thought I would like to find out first before I jump into the bandwagon and investing my time into learning Python. Besides Python, what other programming languages can make me earn a lot of money? Are Python, Java and C++ the most popular and most sought after (by employers) programming languages in the world? I am looking forward to your advice. Thank you very much. Mr. Turritopsis Dohrnii Teo En Ming, 42 years old as of 21 Jan 2021 Thursday, is a TARGETED INDIVIDUAL living in Singapore. He is an IT Consultant with a System Integrator (SI)/computer firm in Singapore. He is an IT enthusiast. -BEGIN EMAIL SIGNATURE- The Gospel for all Targeted Individuals (TIs): [The New York Times] Microwave Weapons Are Prime Suspect in Ills of U.S. Embassy Workers Link: https://www.nytimes.com/2018/09/01/science/sonic-attack-cuba-microwave.html Singaporean Targeted Individual Mr. Turritopsis Dohrnii Teo En Ming's Academic Qualifications as at 14 Feb 2019 and refugee seeking attempts at the United Nations Refugee Agency Bangkok (21 Mar 2017), in Taiwan (5 Aug 2019) and Australia (25 Dec 2019 to 9 Jan 2020): [1] https://tdtemcerts.wordpress.com/ [2] https://tdtemcerts.blogspot.sg/ [3] https://www.scribd.com/user/270125049/Teo-En-Ming -END EMAIL SIGNATURE- -- https://mail.python.org/mailman/listinfo/python-list
I discovered a bug in the no-ip dynamic dns free hostname auto renewal/confirmation script written by loblab
Subject: I discovered a bug in the no-ip dynamic dns free hostname auto renewal/confirmation script written by loblab Good day from Singapore, Programming code troubleshooting person: Mr. Turritopsis Dohrnii Teo En Ming (Targeted Individual) Country: Singapore Date: 15 to 16 August 2020 Singapore Time (Saturday and Sunday) My IT consulting company in Singapore asked me to install a Linux virtual machine so that we can run no-ip dynamic dns free hostname auto renewal/confirmation script written by loblab. I am an IT consultant in Singapore, 42 years old as of 16 Aug 2020. I am not a Python or Java programmer or software developer. The last time I had formal training in structured C programming (not C++ objected oriented programming) was more than 20 years ago at Singapore Polytechnic (Diploma in Mechatronics Engineering course year 1995-1998). Although I am not a programmer or software developer, I can still more or less understand the flow of programming code. I chose Debian 10.5 64-bit Linux to install as my virtual machine/guest operating system because loblab mentioned that his scripts have been tested on Debian 9.x/10.x. But first I have to install VMware Workstation Pro 15.5.6 in my Ubuntu 18.04.3 LTS Linux desktop operating system. The iso file I downloaded is debian-10.5.0-amd64-netinst.iso. The virtual network adapter in my Debian 10.5 Linux virtual machine was configured to use Network Address Translation (NAT). You can verify the IP address of your VM with the following Linux commands: $ ip a $ ip route Give your Debian 10.5 Linux VM at least 2 GB of RAM. After installing Debian 10.5 Linux virtual machine (minimal installation with SSH server and standard system utilities), I need to do a few more things, as follows. # apt install sudo # usermod -aG sudo teo-en-ming # groups teo-en-ming So that I can sudo as a regular Linux user. # apt install git Then I downloaded the no-ip ddns free hostname auto renewal/confirmation script using git clone. Software: Script to auto renew/confirm noip.com free hosts Download link: https://github.com/loblab/noip-renew Programmer: loblab I believe programmer loblab is based in China. The version of the scripts I downloaded is 1.1 dated 18 May 2020. The composition of the software is 58.4% Python programming language, 36% Linux shell scripts, and 5.6% Dockerfile. I tried to run setup.sh Linux shell script and choose "Install/Repair Script". But I found out that nothing is being installed in /usr/local/bin after a few installation attempts. I thought the scripts/installation were being blocked by AppArmor, so I went to disable AppArmor using the following Linux commands. $ sudo mkdir -p /etc/default/grub.d $ echo 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT apparmor=0"' \ | sudo tee /etc/default/grub.d/apparmor.cfg $ sudo update-grub $ sudo reboot $ aa-enabled $ sudo aa-status But AppArmor is NOT the cause of the problem. I began to examine the Python programming code and Linux shell scripts. For the setup.sh script, when you choose "Install/Repair Script", it will call the installer() function. Inside the installer() function, it will call the following functions, in sequence: config(), install(), deploy() When the install() function was called, it tried to execute the following Linux command: $SUDO apt -y install chromium-browser # Update Chromium Browser or script won't work. Executing the above Linux command resulted in an ERROR because Debian 10.5 Linux does not have the chromium-browser software package. Instead it has the chromium package. When the above error is encountered, the installer script ABORTED PREMATURELY and could not continue running. The installer script could not run to completion. This is the bug. To fix the bug, I have to COMMENT OUT/DISABLE the following line in setup.sh script: $SUDO apt -y install chromium-browser # Update Chromium Browser or script won't work. And add the following line below the above-mentioned line: $SUDO apt -y install chromium It fixed the bug. I ran setup.sh script again, choose "Install/Repair Script", and the installer ran to completion. Finally the scripts are installed in /usr/local/bin. Please DO NOT add your no-ip account password to noip-renew.sh script manually in plain text because it has to be Base64 encoded/encrypted. If you add your no-ip account password directly to noip-renew.sh script, you will get an "Incorrect Padding" Python programming base64 error code. You need to supply the no-ip account password when you run the installer script. When the installer script calls the deploy() function, it will also call the noip() function. The noip() function is as follows: function noip() { echo "Enter your No-IP Account details..." read -p 'Username: ' uservar read -sp 'Pass
Re: I discovered a bug in the no-ip dynamic dns free hostname auto renewal/confirmation script written by loblab
Noted with thanks. I will contact the script authors. On 2020-08-17 07:16, Cameron Simpson wrote: On 16Aug2020 17:41, Turritopsis Dohrnii Teo En Ming wrote: Subject: I discovered a bug in the no-ip dynamic dns free hostname auto renewal/confirmation script written by loblab The best thing to do here is to submit this as an issue here: https://github.com/loblab/noip-renew/issues Posting to the generic python-list won't help anyone, because the script authors likely will not see it and the python-list members haven't anything they can do with your bug report. Cheers, Cameron Simpson -- -BEGIN EMAIL SIGNATURE- The Gospel for all Targeted Individuals (TIs): [The New York Times] Microwave Weapons Are Prime Suspect in Ills of U.S. Embassy Workers Link: https://www.nytimes.com/2018/09/01/science/sonic-attack-cuba-microwave.html Singaporean Mr. Turritopsis Dohrnii Teo En Ming's Academic Qualifications as at 14 Feb 2019 and refugee seeking attempts at the United Nations Refugee Agency Bangkok (21 Mar 2017), in Taiwan (5 Aug 2019) and Australia (25 Dec 2019 to 9 Jan 2020): [1] https://tdtemcerts.wordpress.com/ [2] https://tdtemcerts.blogspot.sg/ [3] https://www.scribd.com/user/270125049/Teo-En-Ming -END EMAIL SIGNATURE- -- https://mail.python.org/mailman/listinfo/python-list