Any experience with Python for GraalVM ?

2020-11-05 Thread Marek Mosiewicz
Hello,

Does somebody have any experience with GraalVM [1]
It is new VM from Oracle which is said to have
ability to run Python 3

I have idea to try to run Odoo [2] on it [3]. Odoo is
ERP system written in Python. 

Odoo is big piece of software with many dependencies,
but from my understanding of it most important to
have something working on Graal would by werkzung
and have some working implementation of psycopg2
(Postgresql API)

Any ideas ?

[1] http://www.graal.org
[2] http://odoo.com
[2] https://github.com/marekmosiewicz/goblet


Marek Mosiewicz
http://marekmosiewicz.pl

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


Re: Seeking guidance to start a career in python programming

2020-11-05 Thread Cousin Stanley
ankur gupta wrote:

> Good Morning to All,

> My name is Ankur Gupta and I wish to seek guidance from you. 
> 
> I belong to a non-computer science background 
> but have always been attracted to this field. 
> 
> I had computer science in class 12th ( Where I learned C++ 
> and Python ) but I did Mechanical Engineering instead in college. 
> 
> I wish to pursue a career in Python programming 
> and therefore undertook 2 online certification courses 
> in python but besides this, my progress is almost stalled.
> 
> Request you all to please guide how I can move forward 
> with my current learning of the language and also steps 
> that I can take to pursue a career in this field.

  Mechanical Engineers are needed 
  in an almost endlessly wide array
  of applications ...

from  nano-bots in bio-engineering
  to space-bots sampling soil samples on asteroids

  You might consider applying the Python knowledge
  that you have acquired to endeavors in the field
  that you are most familar with.


-- 
Stanley C. Kitching
Human Being
Phoenix, Arizona

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


Re: songbird's ngfp

2020-11-05 Thread flaskee via Python-list
Hey songbird,

Just the tiniest of tips.

You might want to add the full venv setup link:

https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/

somewhere in
https://github.com/flowerbug/ngfp/blob/master/README.md


~

ngfp did not install for me:
(python 3.7 | debian 10.6 | venv)

But, it could be me.
I'll try it again.
I look forward to seeing your game.

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


Re: Please help test astral char display in tkinter Text (especially *nix)

2020-11-05 Thread Terry Reedy

On 11/4/2020 7:47 AM, Menno Holscher wrote:

Op 03-11-2020 om 04:04 schreef Terry Reedy:
Perhaps half of the assigned chars in the first plane are printed 
instead of being replaced with a narrow box. This includes emoticons 
as foreground color outlines on background color.  Maybe all of the 
second plane of extended CJK chars are printed.  The third plane is 
unassigned and prints as unassigned boxes (with an X).


If you get errors, how many.  If you get a hang or crash, how far did 
the program get?



openSuse Linux 15.2 Leap, Python 3.6.10, tcl and tk 8.6.7

The program runs fine, but complains in the text scrollbox:
0x1 character U+1 is above the range (U+-U+) allowed by Tcl

until

0x3ffe0 character U+3ffe0 is above the range (U+-U+) allowed by Tcl


Thank you.  I assume that this message replaces the line of 32, which 
tcl did not attempt to print.  Much better than crashing.


I should have specified that not printing is likely for any python older 
than about year.  I have no idea what would happen with current Python 
and tcl/tk older than the 8.6.8 provided with the Windows installer.


--
Terry Jan Reedy


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


Re: IDEL from Windows It does not work

2020-11-05 Thread Terry Reedy

On 11/4/2020 4:38 PM, Igor Korot wrote:

Hi,

On Wed, Nov 4, 2020 at 2:47 PM David Ruíz Domínguez
 wrote:


IDEL from Windows It does not work, started the program and won’t open it.
I already uninstalled and reinstalled it and it still does not open


When you installed, did you ask for tcl/tk to be installed so tkinter 
and IDLE would work?

Does python run?
If so, does "import tkinter" run?


Do you mean IDLE?
If yes - please define "does not work". Are you trying to start it
from the Desktop? Start Menu?


In particular, try starting from CommandPrompt with
C:...> python -m idlelib


Does it give you any error? Which one?
Are you trying to execute some script with it?


Try starting first without a script (python program).


Please five us more info...

I also presume you are working under Windows 10.


--
Terry Jan Reedy


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


Re: Any experience with Python for GraalVM ?

2020-11-05 Thread Marek Mosiewicz
W dniu czw, 05.11.2020 o godzinie 11∶02 -0500, użytkownik Dennis Lee
Bieber napisał:
> On Thu, 05 Nov 2020 11:10:03 +0100, Marek Mosiewicz
>  declaimed the following:
> 
> > Does somebody have any experience with GraalVM [1]
> > It is new VM from Oracle which is said to have
> > ability to run Python 3
> > 
> Based upon https://www.graalvm.org/reference-
> manual/python/ that
> capability is rather minimum...
I just downloaded GraalVM and Werkzeug is being installed
successfully.

Maybe it is worth to try.
> 
> -- 
> Wulfraed Dennis Lee Bieber AF6VN
> [email protected]   
> http://wlfraed.microdiversity.freeddns.org/
> 
--
Marek Mosiewicz
http://marekmosiewicz.pl

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


Is there a conflict of libraries here?

2020-11-05 Thread Steve
In my program, I have the following lines of code: 

import random

import re

import time

import datetime

from datetime import timedelta

from time import gmtime, strftime ##define strftime as time/date right
now

import winsound as ws  

import sys

These may or may not affect my new program code but here is the issue:

 

If I add the code:

  from datetime import datetime

these new lines work:

   dt = datetime.fromisoformat(ItemDateTime)

   dt_string = dt.strftime(' at %H:%M on %A %d %B %Y')

and will fail without that "datetime import datetime" line

 

however;

 

With that "datetime import datetime" line included,

all of the lines of code throughout the program that contain
"datetime.datetime" fail.  
These have been in use for over three years and there are at least a dozen
of them.

The error produced is:


time1  = datetime.datetime.strptime(T1, date_format)

AttributeError: type object 'datetime.datetime' has no attribute
'datetime'

 

How do I have my cake and eat it too?

Steve

 

 

 

Footnote:
Some mornings it just isn't worth chewing through the leather straps.

 

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


Re: Is there a conflict of libraries here?

2020-11-05 Thread Frank Millman

On 2020-11-06 9:25 AM, Steve wrote:

In my program, I have the following lines of code:

 import random

 import re

 import time

 import datetime

 from datetime import timedelta

 from time import gmtime, strftime ##define strftime as time/date right
now

 import winsound as ws

 import sys

These may or may not affect my new program code but here is the issue:

  


If I add the code:

   from datetime import datetime

these new lines work:

dt = datetime.fromisoformat(ItemDateTime)

dt_string = dt.strftime(' at %H:%M on %A %d %B %Y')

and will fail without that "datetime import datetime" line

  


however;

  


With that "datetime import datetime" line included,

all of the lines of code throughout the program that contain
"datetime.datetime" fail.
These have been in use for over three years and there are at least a dozen
of them.

The error produced is:


 time1  = datetime.datetime.strptime(T1, date_format)

 AttributeError: type object 'datetime.datetime' has no attribute
'datetime'



I think all you have to do is -

1. Remove the line 'from datetime import datetime'.

2. Change dt = datetime.fromisoformat(ItemDateTime) to
  dt = datetime.datetime.fromisoformat(ItemDateTime)

Unless I have missed something, that should work.

Frank Millman

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