Re: Compiling python on windows with vs

2023-06-13 Thread Jim Schwartz via Python-list
What version of visual studio are you using?  What version of python?  I’ve had 
success with using the cython package in python and cl from visual studio, but 
I haven’t tried visual studio alone. 

Sent from my iPhone

> On Jun 13, 2023, at 11:59 AM, Thomas Schweikle via Python-list 
>  wrote:
> 
> Fehler beim Buildvorgang

-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Compiling python on windows with vs

2023-06-13 Thread Jim Schwartz via Python-list
One expert told me to do the following when compiling via cython and cl:

cython -3 --embed -o c_file_namepython_file_name

Then, assuming python is installed in your apps directory and not your program 
files directory:

set "PYTHON_DIR=%LocalAppData%\Programs\Python\Python311" 

or whatever directory you put python in.

cl /O2 /I"%PYTHON_DIR%\Include" c_file_name  /link /libpath:"%PYTHON_DIR%\libs"

If that doesn't work, that's all I have.  Sorry.

-Original Message-
From: Python-list  On 
Behalf Of Thomas Schweikle via Python-list
Sent: Tuesday, June 13, 2023 1:12 PM
To: Python 
Cc: Thomas Schweikle 
Subject: Re: Compiling python on windows with vs



Am Di., 13.Juni.2023 um 19:20:38 schrieb Jim Schwartz:
> What version of visual studio are you using?

Visual Studio 2022, aka 17.6.2.

> What version of python?

python 3.10.11 or 3.11.4

> I’ve had success with using the cython package in python and cl from visual 
> studio, but I haven’t tried visual studio alone.

Same problem at the same place: directory "../modules/..." not found, Renaming 
it from "Modules" to "modules" it is found, but then fails to find "Modules".

Looks like it awaits, compiling in Windows an filesystem only case aware, not 
case sensitive -- I'm assuming this a bug now. Building within cygwin (or MSYS, 
Ubuntu) this works as expected. But there it does not search for "modules" once 
and "Modules" at an other place.

>> On Jun 13, 2023, at 11:59 AM, Thomas Schweikle via Python-list 
>>  wrote:
>>
>> Fehler beim Buildvorgang
--
Thomas


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Question(s)

2023-10-25 Thread Jim Schwartz via Python-list
   Does this link help?  It seems to have a Linux package here.

   [1]Eclipse Packages | The
   Eclipse Foundation - home to
   a global community, the
   Eclipse IDE, Jakarta EE and  [2]favicon.ico
   over 350 open source
   projects...
   eclipse.org

   Sent from my iPhone

 On Oct 25, 2023, at 7:55 AM, o1bigtenor via Python-list
  wrote:

 On Wed, Oct 25, 2023 at 7:00AM Dieter Maurer 
 wrote:

   o1bigtenor wrote at 2023-10-25 06:44 -0500:

 On Wed, Oct 25, 2023 at 6:24?AM Dieter Maurer 
 wrote:

 ...

   There are different kinds of errors.

   Some can be avoided by using an integrated development environment

   (e.g. misspellings, type mismatches, ...).

 Haven't heard of a python IDE - - - doesn't mean that there isn't
 such - -

 just that I haven't heard of such. Is there a python IDE?

   There are several.

   Python comes with "IDLE".

 Interesting - - - started looking into this.

   There are several others,

   e.g. "ECLIPSE" can be used for Python development.

 Is 'Eclipse' a Windows oriented IDE?
 (Having a hard time finding linux related  information on the
 website.)

   Search for other alternatices.

 Will do.
 Thanks for the assistance.
 --
 https://mail.python.org/mailman/listinfo/python-list

References

   Visible links
   1. https://www.eclipse.org/downloads/packages/
   2. https://www.eclipse.org/downloads/packages/
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Writing to clipboard in Python 3.11

2023-11-07 Thread Jim Schwartz via Python-list
It doesn't work in python 3.12.0

-Original Message-
From: Python-list  On 
Behalf Of Thomas Passin via Python-list
Sent: Tuesday, November 7, 2023 12:08 PM
To: [email protected]
Subject: Re: Writing to clipboard in Python 3.11

On 11/5/2023 7:51 PM, Rob Cliffe via Python-list wrote:
> Recently I switched from Python 3.8.3 to Python 3.11.4.  A strange 
> problem appeared which was not there before:
> I am using the win32clipboard backage (part of pywin32), and when I 
> use
> SetClipboardData() to write text which consists ENTIRELY OF DIGITS to 
> the clipboard, I either get an error (not always the same error 
> message) or a program crash.  The problem does not appear if I use
> SetClipboardText() instead.
> Sample program:
> 
> from win32clipboard import *
> OpenClipboard()
> SetClipboardData(CF_UNICODETEXT, "A")
> SetClipboardData(CF_UNICODETEXT, "A0") 
> SetClipboardData(CF_UNICODETEXT, "0A") SetClipboardText("0", 
> CF_UNICODETEXT) print("OK so far") SetClipboardData(CF_UNICODETEXT, 
> "0")
> CloseClipboard()
> 
> Sample output:
> 
> OK so far
> Traceback (most recent call last):
>File "R:\W.PY", line 8, in 
>  SetClipboardData(CF_UNICODETEXT, "0")
> pywintypes.error: (0, 'SetClipboardData', 'No error message is 
> available')
> 
> I can get round the problem by using SetClipboardText().  But can 
> anyone shed light on this?

No, but I use pyperclip.  It's cross platform.  Maybe it doesn't have this 
problem, though I don't know for sure.

--
https://mail.python.org/mailman/listinfo/python-list

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: fCONV_AUSRICHTG is not defined - Why?

2023-11-07 Thread Jim Schwartz via Python-list
Where do you define fCONV_AUSRICHTG? It must be initialized or defined 
somewhere. Did you leave out a statement from the python 2 version?  

Sent from my iPhone

> On Nov 7, 2023, at 1:06 PM, Thomas Passin via Python-list 
>  wrote:
> 
> On 11/7/2023 12:47 PM, Egon Frerich via Python-list wrote:
>> I've no idea why this happens. In a module there are lists and definitions:
>> Felder = [
>> # Name   lg1  lg2 typ   Ausrichtung Holen Prüfen Prüfvorg
>> ["Jahr", 4, 5, "u", "", "right", "center"],
>> ["Monat", 2, 5, "u", "", "right", "center"],
>> ["Tag", 2, 3, "u", "", "right", "center"],
>> ["Belegnr", 5, 7, "s", "", "right", "center"],
>> ["Bank", 2, 4, "u", "", "center", "center"],
>> ["Art", 2, 3, "u", "", "center", "center"],
>> ["Aufg", 2, 4, "u", "", "center", "center"],
>> ["Text", 25, 25, "s", "-", "left", "left"],
>> ["Ergänzung", 12, 12, "s", "-", "left", "left"],
>> ["Betrag", 13, 13, "s", "", "right", "right"],
>> ["W", 1, 2, "s", "", "center", "center"],
>> ["WBetrag", 7, 7, "s", "", "right", "right"],
>> ["Kurs", 6, 6, "s", "", "right", "right"],
>> ]
>> "Reihenfolge in der Dimension 1"
>> (
>> fJAHR,
>> fMONAT,
>> fTAG,
>> fBELEGNR,
>> fBANK,
>> fART,
>> fAUFGABE,
>> fTEXT,
>> fTEXTERG,
>> fBETRAG,
>> fWAEHRUNG,
>> fBETRAGinWAEHRUNG,
>> fUMRECHNUNGSKURS,
>> ) = list(range(13))
>> "Reihenfolge in der Dimension 2"
>> (
>> fNAME,
>> fLG1,
>> fLG2,
>> fTYP,
>> fCONV_AUSRICHTG,
>> fENTRY_AUSRICHTG,
>> fTEXT_AUSRICHTUNG,
>> fHOLFUNKT,
>> fPRUEFFUNKT,
>> fPRUEF_ARG,
>> ) = list(range(10))
>> Two lines with  test statements follow and the statement which produces an 
>> error:
>> print(Felder)
>> print(fJAHR, fNAME, fTYP, fCONV_AUSRICHTG)
>> akette = "%" + "%".join(
>> ["%s%s%s " % (i[fCONV_AUSRICHTG], i[fLG2], i[fTYP]) for i in Felder])
>> The traceback shows:
>> $ python3 testGeldspurGUI.py
>> [['Jahr', 4, 5, 'u', '', 'right', 'center'], ['Monat', 2, 5, 'u', '', 
>> 'right', 'center'], ['Tag', 2, 3, 'u', '', 'right', 'center'], ['Belegnr', 
>> 5, 7, 's', '', 'right', 'center'], ['Bank', 2, 4, 'u', '', 'center', 
>> 'center'], ['Art', 2, 3, 'u', '', 'center', 'center'], ['Aufg', 2, 4, 'u', 
>> '', 'center', 'center'], ['Text', 25, 25, 's', '-', 'left', 'left'], 
>> ['Ergänzung', 12, 12, 's', '-', 'left', 'left'], ['Betrag', 13, 13, 's', '', 
>> 'right', 'right'], ['W', 1, 2, 's', '', 'center', 'center'], ['WBetrag', 7, 
>> 7, 's', '', 'right', 'right'], ['Kurs', 6, 6, 's', '', 'right', 'right']]
>> 0 0 3 4
>> Traceback (most recent call last):
>>   File "/home/egon/Entw/Geldspur/geldspur/testGeldspurGUI.py", line 15, in 
>> 
>> from tests.testU2 import testU2
>>   File "/home/egon/Entw/Geldspur/geldspur/tests/testU2.py", line 9, in 
>> 
>> from gui.GUI_Konfig import GUIcfg
>>   File "/home/egon/Entw/Geldspur/geldspur/gui/GUI_Konfig.py", line 11, in 
>> 
>> class GUIcfg:
>>   File "/home/egon/Entw/Geldspur/geldspur/gui/GUI_Konfig.py", line 90, in 
>> GUIcfg
>> ["%s%s%s " % (i[fCONV_AUSRICHTG], i[fLG2], i[fTYP]) for i in Felder])
>>   File "/home/egon/Entw/Geldspur/geldspur/gui/GUI_Konfig.py", line 90, in 
>> 
>> ["%s%s%s " % (i[fCONV_AUSRICHTG], i[fLG2], i[fTYP]) for i in Felder])
>> NameError: name 'fCONV_AUSRICHTG' is not defined
>> You see "Felder" and with "0 0 3 4" the correct value 4 for fCONV_AUSRICHTG. 
>> But there is the NameError.
>> What does  mean? Is there a change from python2 to python3?
> 
> You are using a syntax that I don't understand, but "listcomp" means a list 
> comprehenson.
> 
> -- 
> https://mail.python.org/mailman/listinfo/python-list

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: MTG: Introductions to PyQt and DataClasses

2024-03-17 Thread Jim Schwartz via Python-list
Will it be recorded?  

Sent from my iPhone

> On Mar 17, 2024, at 1:47 AM, dn via Python-list  
> wrote:
> 
> The Auckland Branch of NZPUG meets this Wednesday, 20 March at 1830 NZDT 
> (0530 UTC, midnight-ish Tue/Wed in American time-zones), for a virtual 
> meeting.
> 
> Part 1: Learn the basics of PyQt with code examples.
> Hannan Khan is currently consulting as a Data Scientist for the (US) National 
> Oceanic and Atmospheric Administration. He holds a Bachelor's degree in 
> Neuroscience as well as a Masters in Computer Science. As a keen member of 
> the PySprings Users' Group (Colorado), his contribution is part of a 
> collaboration between our two PUGs.
> 
> Part 2: Why use Dataclasses?
> - will be the question asked, and answered, by yours truly. After surveying a 
> number of groups, it seems most of us know that Dataclasses are available, 
> but we don't use them - mostly because we haven't ascertained their place in 
> our tool-box. By the end of this session you will, and will have good reason 
> to use (or not) Dataclasses!
> 
> Everyone is welcome from every location and any time-zone. The NZPUG Code of 
> Conduct applies. JetBrains have kindly donated a door-prize. Our 
> BigBlueButton web-conferencing instance is best accessed using Chromium, 
> Brave, Vivaldi, Safari, etc, (rather than Firefox - for now). A head-set will 
> facilitate asking questions but text-chat will be available.
> 
> Please RSVP at https://www.meetup.com/nzpug-auckland/events/299764049/
> See you there!
> =dn, Branch Leader
> --
> https://mail.python.org/mailman/listinfo/python-list

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: MTG: Introductions to PyQt and DataClasses

2024-03-17 Thread Jim Schwartz via Python-list
Actually, I have a sleep disorder that requires me to keep a constant sleep 
schedule. Thats why I asked. 

Sent from my iPhone

> On Mar 17, 2024, at 3:36 PM, dn via Python-list  
> wrote:
> 
> On 17/03/24 23:40, Jim Schwartz wrote:
>> Will it be recorded?
> 
> Better than that (assumption) "coming soon" - please join-up or keep an eye 
> on PySprings' Meetup ANNs: https://www.meetup.com/pysprings/
> 
> 
 On Mar 17, 2024, at 1:47 AM, dn via Python-list  
 wrote:
>>> 
>>> The Auckland Branch of NZPUG meets this Wednesday, 20 March at 1830 NZDT 
>>> (0530 UTC, midnight-ish Tue/Wed in American time-zones), for a virtual 
>>> meeting.
>>> 
>>> Part 1: Learn the basics of PyQt with code examples.
>>> Hannan Khan is currently consulting as a Data Scientist for the (US) 
>>> National Oceanic and Atmospheric Administration. He holds a Bachelor's 
>>> degree in Neuroscience as well as a Masters in Computer Science. As a keen 
>>> member of the PySprings Users' Group (Colorado), his contribution is part 
>>> of a collaboration between our two PUGs.
>>> 
>>> Part 2: Why use Dataclasses?
>>> - will be the question asked, and answered, by yours truly. After surveying 
>>> a number of groups, it seems most of us know that Dataclasses are 
>>> available, but we don't use them - mostly because we haven't ascertained 
>>> their place in our tool-box. By the end of this session you will, and will 
>>> have good reason to use (or not) Dataclasses!
>>> 
>>> Everyone is welcome from every location and any time-zone. The NZPUG Code 
>>> of Conduct applies. JetBrains have kindly donated a door-prize. Our 
>>> BigBlueButton web-conferencing instance is best accessed using Chromium, 
>>> Brave, Vivaldi, Safari, etc, (rather than Firefox - for now). A head-set 
>>> will facilitate asking questions but text-chat will be available.
>>> 
>>> Please RSVP at https://www.meetup.com/nzpug-auckland/events/299764049/
>>> See you there!
>>> =dn, Branch Leader
>>> --
>>> https://mail.python.org/mailman/listinfo/python-list
> 
> --
> Regards,
> =dn
> 
> --
> https://mail.python.org/mailman/listinfo/python-list

-- 
https://mail.python.org/mailman/listinfo/python-list