Re: Trying to use pyinstaller under python 3.11, and, recently started receiving error message about specific module/distribution

2024-04-04 Thread Jacob Kruger via Python-list
on the folder/directory containing the code and the virtual environment seemed to be causing these errors/issues, specific to altgraph, which doesn't really make sense to me, but, it's now working, so, will archive this to memory, for later reference. Jacob Kruger +2782 413 4791 "Resis

Re: Trying to use pyinstaller under python 3.11, and, recently started receiving error message about specific module/distribution

2024-04-03 Thread Jacob Kruger via Python-list
Ok, last update for now - checked out the following page on pyinstaller.org, and, ended up posting to the mailing list, so, let's see: https://pyinstaller.org/en/latest/when-things-go-wrong.html Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." On

Re: Trying to use pyinstaller under python 3.11, and, recently started receiving error message about specific module/distribution

2024-04-01 Thread Jacob Kruger via Python-list
as convenient, and, still wondering what changed here. Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." On 2024/03/31 14:51, Barry wrote: On 31 Mar 2024, at 13:24, Jacob Kruger via Python-list wrote: pkg_resources.DistributionNotFound: The

Trying to use pyinstaller under python 3.11, and, recently started receiving error message about specific module/distribution

2024-03-31 Thread Jacob Kruger via Python-list
ling python 3.12 version instead and see if it changes? Also, if relevant, while running under latest up-to-date version of windows 11 64 bit, have in any case enabled case-sensitivity on the folder I store all my python code in, just in case. TIA -- Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." -- https://mail.python.org/mailman/listinfo/python-list

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-07 Thread Jacob Kruger via Python-list
via classes, modules, etc. at runtime, but this was more or less mostly testing, which then caused confusion/interference on my side...LOL! Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." On 2024/03/07 03:55, Grant Edwards via Python-list wrote: On

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Jacob Kruger via Python-list
Ok, Ethan, that makes sense - I generally work with modules in folders, etc., but, this was just test code, but, 'see' if I instead import scoping2 as sc2, and then refer to sc2.dt_expiry and sc2.do_it, then it does operate as it should - thanks, again. Jacob Kruger +2782 413 4791

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Jacob Kruger via Python-list
command line - generally working with flask, and/or other forms of command line interaction, most of the time. Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." On 2024/03/06 17:39, Roel Schroeven via Python-list wrote: Op 6/03/2024 om 13:55 schreef Ja

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Jacob Kruger via Python-list
_expiry) 1970-01-01 00:00:00+00:00 >>> print(id(dt_expiry)) 1808577867152 >>> ---end session--- As in, the two different ID values are being returned outside and inside the function, whereas, if I included that bit inside the interpreter while typing code manually, chances are the sam

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Jacob Kruger via Python-list
ss? So, yes, know this comes across like some form of a scam/joke, or list-garbage, since it doesn't make any sense to me at all, but still just wondering if missing something, or should I shift over to 3.12 to see if if works differently, or just try reinstalling 3.11 from scratch, or should I retry t

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Jacob Kruger via Python-list
e function? Unless this is something that changed from 3.11 to 3.12 - since that snippet is more or less referring to 3.12, but, don't think it was changed in any way? Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." On 2024/03/06 14:55, Ja

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Jacob Kruger via Python-list
ch seems to then ignore the global scope specified in the first line inside the function? Hope this makes more sense Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." On 2024/03/05 20:23, dn via Python-list wrote: Jacob, Please reduce the problem to a s

Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-05 Thread Jacob Kruger via Python-list
on the matter Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." -- https://mail.python.org/mailman/listinfo/python-list

Re: No current way to just compile flet code into truly native packages for smart phones, etc.?

2023-11-14 Thread Jacob Kruger via Python-list
- the one included here in flet seemed 'nicer': https://beeware.org/project/projects/libraries/toga/ But, haven't taken time to really take it much further than just a bit of playing around so far. Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." On 2023/1

No current way to just compile flet code into truly native packages for smart phones, etc.?

2023-11-13 Thread Jacob Kruger via Python-list
dev/docs/guides/python/deploying-web-app/progressive-web-apps/> -- Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." -- https://mail.python.org/mailman/listinfo/python-list

Re: SQL rollback of multiple inserts involving constraints

2023-11-10 Thread Jacob Kruger via Python-list
Think performing a session/transaction flush after the first two inserts should offer the workaround before you've committed all transaction actions to the database finally: https://medium.com/@oba2311/sqlalchemy-whats-the-difference-between-a-flush-and-commit-baec6c2410a9 HTH Jacob Kruger

Re: Android APK

2023-01-25 Thread jacob kruger
Beeware is the only one I have tried out: https://beeware.org/ Jacob Kruger +2782 413 4791 "Resistance is futile...but, acceptance is versatile..." On 2023/01/25 22:55, Jules Tillinghast wrote: Is there a good python library for converting python3 to android APK -- https://mail.

Re: Recommendations in terms of threading, multi-threading and/or asynchronous processes/programming? - Sent Mail - Mozilla Thunderbird

2023-01-08 Thread jacob kruger
forms of low-level monitoring for UI elements, but, this is not really related to initial task, but, could almost relate to forms of non-visual gaming interfaces, for blind/VI individuals - I am myself 100% blind, but, that's not really relevant in this context. Stay well Jacob Kruger

Recommendations in terms of threading, multi-threading and/or asynchronous processes/programming? - Sent Mail - Mozilla Thunderbird

2023-01-06 Thread jacob kruger
, or might roll back to 3.10 if relevant, but, main thing is just want to get an idea of what's simplest to make use of in this context? Thanks in advance -- Jacob Kruger +2782 413 4791 "Resistance is futile...but, acceptance is versatile..." -- https://mail.python.org/mailman/listi

Initial introduction

2022-12-07 Thread jacob kruger
python developer nowadays, and, when it comes to web development in this context, I work with either flask or django, but anyway. Regards -- Jacob Kruger +2782 413 4791 "Resistance is futile...but, acceptance is versatile..." -- https://mail.python.org/mailman/listinfo/python-list

Re: New to programming and asking about accessibility with jaws screen reader.

2016-07-24 Thread Jacob Kruger
Presume you're talking about python idle IDE? Forget it, and, like said, I use edSharp programmers text editor, and work from command line/console when want to test/run my code. Stay well Jacob Kruger Blind Biker Skype: BlindZA "Resistance is futile, but, acceptance is vers

Re: New to programming and asking about accessibility with jaws screen reader.

2016-07-24 Thread Jacob Kruger
What part is not accessible? Ask since while haven't really gone past 3.4 and 3.5.1, at times, I generally work with specific text/code editors, and the command line window, and this works fine for me with both NVDA, and jaws 17 at times. Stay well Jacob Kruger Blind Biker Skype: BlindZA

Re: Help

2016-02-28 Thread jacob Kruger
tence") s.replace(",", "") #do this for all common punctuation characters l = s.split(" ") #space is actually default s2 = input("enter word") i = l.index(s2) print("Your word is at position " + str(i+1) + " in the sentence") #end code That's

Re: Installing pygame

2016-01-21 Thread jacob Kruger
pyGame under 3.5.1: https://skellykiernan.wordpress.com/2015/01/04/python-pygame-install/ That was after copying the .whl file into the./scripts directory under python 3.5.1 installation path. HTH Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space jani

Re: Hello.

2016-01-17 Thread jacob Kruger
Environment variables pointing to c:\python..? (needs to point to actual installation directory) Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." On 2016-01-16 11:41 PM, Hmood Js wrote: cmd won't recognize python at all I'

Re: PyFladesk :: create GUI apps by Python and HTML, CSS and Javascript.

2016-01-07 Thread jacob Kruger
of that module for 2.7, and take it from there. Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." On 2016-01-08 7:07 AM, Bernardo Sulzbach wrote: On Fri, Jan 8, 2016 at 1:54 AM, jacob Kruger <ja...@blindza.co.za> wrote:

Re: PyFladesk :: create GUI apps by Python and HTML, CSS and Javascript.

2016-01-07 Thread jacob Kruger
no urllib2, and under 3.4, pip install can't find it either..? TIA Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." On 2016-01-08 1:08 AM, Saeed Moqadam wrote: create multi platform desktop application by using Python,

Re: Writing a python editor for blind developers

2015-07-06 Thread Jacob Kruger
with feedback, etc., and can also put you in touch with various other blind developers who do also work with python, etc. For example, AFAIK, the primary blind programmers mailing list is progra...@freelists.org, and besides me, there are a few other python developers on that list as well. Stay well Jacob

Re: Automation of Windows app?

2015-03-23 Thread Jacob Kruger
with interfaces automatically, etc. Stay well Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... -- https://mail.python.org/mailman/listinfo/python-list

Re: Re: I want to get involved with Python!

2015-03-11 Thread Jacob Kruger
formal training, and work in a slightly odd sector in terms of my own approach - but, will send you a bit more information specific to local python activity, off list. Stay well Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet

Re: I want to get involved with Python!

2015-03-11 Thread Jacob Kruger
use of different languages/platforms. Stay well Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... -- https://mail.python.org/mailman/listinfo/python-list

Re: Accessible tools

2015-02-22 Thread Jacob Kruger
detail relating to PDB, to start off with anyway: https://docs.python.org/3/library/pdb.html Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... -- https://mail.python.org/mailman/listinfo/python-list

Re: Accessible tools

2015-02-20 Thread Jacob Kruger
controls, and make sure tab index/order is suitable/relevant at times, etc. etc. As in, I think we'd primarily want to avoid having to use a mouse at all if possible, but anyway. Stay well Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet

Re: Accessible tools

2015-02-19 Thread Jacob Kruger
topic specific ones, but anyway. Stay well Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... - Original Message - From: Bryan Duarte bryan0...@gmail.com To: python-list@python.org Sent: Wednesday, February 18, 2015 7:43 PM

Re: Accessible tools

2015-02-19 Thread Jacob Kruger
execution, etc. - at moment, primarily either print out information to console, during dev process, or at times invoke sound effects/TTS output to keep track, or even, occasionally use pickle to store images of objects for later review, etc., but anyway...smile Stay well Jacob Kruger Blind Biker Skype

help() function screen output

2015-01-31 Thread Jacob Kruger
information, but, when, for example, hit enter key, it merely populates one more line of info, each time - under pythn 2.7, it seemed to render one full screen of info each time. Is there rather a different keystroke should use to invoke that, or is this a python 3.4 feature/issue? TIA Jacob Kruger

Re: help() function screen output

2015-01-31 Thread Jacob Kruger
line prompt before, or something, since am 99.9% sure always just used ret key to advance one screen at a time before - who knows, but, main thing is, yes, space bar does what I want it to. Thanks Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's

Re: help() function screen output

2015-01-31 Thread Jacob Kruger
- Original Message - From: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info Newsgroups: comp.lang.python To: python-list@python.org Sent: Saturday, January 31, 2015 11:13 AM Subject: Re: help() function screen output Jacob Kruger wrote: Using python 3.4 32 bit on windows 7 64

Re: [OT] Re: MySQL connections

2015-01-15 Thread Jacob Kruger
- Original Message - From: Dennis Lee Bieber wlfr...@ix.netcom.com To: python-list@python.org Sent: Thursday, January 15, 2015 4:22 PM Subject: Re: [OT] Re: MySQL connections On Thu, 15 Jan 2015 13:48:34 +0200, Jacob Kruger ja...@blindza.co.za declaimed the following: Agree

Re: MySQL connections

2015-01-15 Thread Jacob Kruger
- Original Message - From: Chris Angelico ros...@gmail.com Cc: python-list@python.org Sent: Thursday, January 15, 2015 2:33 PM Subject: Re: MySQL connections On Thu, Jan 15, 2015 at 10:59 PM, Jacob Kruger ja...@blindza.co.za wrote: Tried generating .exe with both cx_freeze

Re: [OT] Re: MySQL connections

2015-01-15 Thread Jacob Kruger
implementation - you're right that should have just redone that part of it ;) Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... -- https://mail.python.org/mailman/listinfo/python-list

MySQL connections

2015-01-15 Thread Jacob Kruger
, , import_test) time.sleep(5) cn.close() #end code Stay well (away from this machine ;) ) Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... -- https://mail.python.org/mailman/listinfo/python-list

Re: MySQL connections

2015-01-15 Thread Jacob Kruger
And, FWIW, if I compile the 2.7 version on the other machine where it works, in both code and compiled forms, and then copy .exe back to the main machine, same error message pops up, so must be something to do with machine's configuration, etc. Stay well Jacob Kruger Blind Biker Skype

Re: [OT] Re: MySQL connections

2015-01-15 Thread Jacob Kruger
- Original Message - From: Peter Otten __pete...@web.de To: python-list@python.org Sent: Thursday, January 15, 2015 12:40 PM Subject: [OT] Re: MySQL connections Jacob Kruger wrote: However, if implement similar code - down to just trying to open a connection, wait a few seconds

Re: MySQL connections

2015-01-15 Thread Jacob Kruger
to this primary machine, then get same error - think it must relate to something else on this machine, but can't track it down. Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 2.7, on windows7 64 bit development machine, inconsistent issue on similar machines

2015-01-13 Thread Jacob Kruger
happens, but, the moment I in fact try to then just close the connection, that's when error dialogue immediately pops up. Sorry - should also have mentioned the connection, cursor, etc. ec. all work fine under normal python interpreter, but anyway. Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco

Re: Python 2.7, on windows7 64 bit development machine, inconsistent issue on similar machines

2015-01-13 Thread Jacob Kruger
See answers below. Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... - Original Message - From: Dennis Lee Bieber wlfr...@ix.netcom.com snip / The very first hit /I/ get is: https://social.technet.microsoft.com/Forums/windows

Re: Python 2.7, on windows7 64 bit development machine, inconsistent issue on similar machines

2015-01-13 Thread Jacob Kruger
, but, the moment I in fact try to then just close the connection, that's when error dialogue immediately pops up. Stay well Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... - Original Message - From: Jacob Kruger ja

Python 2.7, on windows7 64 bit development machine, inconsistent issue on similar machines

2015-01-13 Thread Jacob Kruger
code via VS.Net 2013 shortly, but, thought someone might have an off-hand thought regarding something could try use to figure out this issue in meantime...? TIA Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... -- https

unidecode

2015-01-12 Thread Jacob Kruger
' it into a string value, and will apparently try handle some forms of character substitution - but will play around with it a bit more, and let's see... Stay well Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... - Original Message

String character encoding when converting data from one type/format to another

2015-01-07 Thread Jacob Kruger
code line for binary encoding into string output s_values += 0x + str(l_data[J][I]).encode(hex).replace(\\, ) + , TIA Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... -- https://mail.python.org/mailman/listinfo/python-list

Re: String character encoding when converting data from one type/format to another

2015-01-07 Thread Jacob Kruger
this on site, so had to work first with generating string values, and then handle executing those statements against a MySQL server later on using MySQLdb. Stay well Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... - Original Message

Re: String character encoding when converting data from one type/format to another

2015-01-07 Thread Jacob Kruger
could possibly result in a whole bunch of different character sets, etc. being copied across, so it comes down to that while can't control sources of data, need to manipulate/work with it to make it useful on our side now. Thanks again Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants

Re: String character encoding when converting data from one type/format to another

2015-01-07 Thread Jacob Kruger
Thanks. Yes, sorry didn't mention 2.7, and, unfortunately in this sense, all of this will be running on windows machines. Stay well Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... - Original Message - From: Dave Angel da

Re: need some guidance on Python syntax smart editor for use with speech recognition

2015-01-05 Thread Jacob Kruger
pretty much useless to me, but anyway. Stay well Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... - Original Message - From: Eric S. Johansson e...@harvee.org To: python-list@python.org Sent: Monday, January 05, 2015 8:18 PM

Re: Why For Loop Skips the Last element?

2015-01-01 Thread Jacob Kruger
Not sure after quick skim/scan, but, I would generally use either for I in range(len(inlist)): or just for it in inlist, instead of using while, etc. Stay well Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... - Original Message

Re: If One Line

2014-12-25 Thread Jacob Kruger
One line assignment is ok, but, seems like you can't perform actions. #the following will work: I = 1 if True else 2 #but the following will generate an error: if I == 1: print(one) And, not sure if/how to work around that second one myself. Stay well Jacob Kruger Blind Biker Skype: BlindZA

Re: If One Line

2014-12-25 Thread Jacob Kruger
One line assignment is ok, but, seems like you can't perform actions. #the following will work: I = 1 if True else 2 #but the following will generate an error: if I == 1: print(one) And, not sure if/how to work around that second one myself. Stay well Jacob Kruger Blind Biker Skype: BlindZA

Re: If One Line

2014-12-25 Thread Jacob Kruger
Actually more that in the interpreter, it's prompting me with ... as if I had left out a closing ) or something, but, suppose it could work fine in an actual imported bit of code? Stay well Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet

Re: If One Line

2014-12-25 Thread Jacob Kruger
Ok, makes sense - just slipped same one line if: action bit of code inside a function, and worked fine. Stay well Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... - Original Message - From: Skip Montanaro To: Jacob

Re: If One Line

2014-12-25 Thread Jacob Kruger
Ok, makes sense - just slipped same one line if: action bit of code inside a function, and worked fine. Stay well Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... - Original Message - From: Skip Montanaro To: Jacob

Re: Simple background sound effect playback

2014-12-21 Thread Jacob Kruger
, but let's see... Am not sure of redistribution licence either, and will need/want to test it on a couple of other types of machines. Stay well Jacob Kruger Blind Biker Skype: BlindZA Roger Wilco wants to welcome you...to the space janitor's closet... - Original Message - From: Akira Li

RE: Simple background sound effect playback

2014-12-20 Thread Jacob Kruger
) channel = pygame.mixer.Sound.play(song) time.sleep(1) #end code Will now just have to double-check/test compilation of something including something like this, using something like cx_freeze, etc., but, thanks again. Stay well Jacob Kruger Blind Biker Skype: BlindZA ...Roger Wilco wants to welcome

Re: Simple background sound effect playback

2014-12-17 Thread Jacob Kruger
to be installed, or something. Jacob Kruger Blind Biker Skype: BlindZA ...Roger Wilco wants to welcome you, to the space janitor's closet... - Original Message - From: Ian Kelly To: Python Sent: Wednesday, December 17, 2014 3:49 AM Subject: Re: Simple background sound effect playback

Simple background sound effect playback

2014-12-16 Thread Jacob Kruger
to compiling into executable, and main thing is would like to keep it simple...smile Suggestions? TIA Jacob Kruger Blind Biker Skype: BlindZA ...Roger Wilco wants to welcome you, to the space janitor's closet... -- https://mail.python.org/mailman/listinfo/python-list

New member - 'odd' question

2014-12-11 Thread Jacob Kruger
this? That's also why am posting this here - trying to figure out how to track down what's causing this odd behaviour. TIA Jacob Kruger Blind Biker Skype: BlindZA ...Roger Wilco wants to welcome you, to the space janitor's closet... -- https://mail.python.org/mailman/listinfo/python-list