Re: [RELEASE] Python 3.9.0b1 is now available for testing

2020-05-20 Thread Robin Becker

On 19/05/2020 23:41, Robin Becker wrote:

..

robin@minikat:~/devel/reportlab
$ $HOME/LOCAL/3.9b1/bin/python3.9
Python 3.9.0b1 (default, May 19 2020, 12:50:30) [GCC 10.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import distutils
/home/robin/LOCAL/3.9b1/lib/python3.9/distutils/__init__.py:15: UserWarning: The virtualenv distutils package at %s appears to be in the same location as the system distutils? 


  warnings.warn("The virtualenv distutils package at %s appears to be in the same 
location as the system distutils?")

distutils.__path__

['/home/robin/LOCAL/3.9b1/lib/python3.9/distutils']

distutils.__file__

'/home/robin/LOCAL/3.9b1/lib/python3.9/distutils/__init__.py'


it seems installing virtualenv 16.2.0 into my python3.9 and then using it to create a venv modifies the base 
distutils/__init__.py so the problem seems to lie with virtualenv (or at least the older version).

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


A python meme...

2020-05-20 Thread Souvik Dutta
Hi,
If you guys see an attachment, then probably this list now supports
attachment. And I am the successful founder of it. If you don't see then
okay I am wrong and please ignore it.
Note:- I already know that the list does not support attachments. This
experiment was funded by a glitch...
-- 
https://mail.python.org/mailman/listinfo/python-list


Fwd: Python not uninstalling

2020-05-20 Thread Tushar Upadhyay
-- Forwarded message -
From: Tushar Upadhyay 
Date: Wed, 20 May 2020 at 22:57
Subject: Python not uninstalling
To: 


Sir I had uninstalled my python from control pannel but it shows again and
again.I tried multiple times  but it does not uninstalling

Please help me asap.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: python3 - Import python file as module

2020-05-20 Thread Shivani Shinde
Hi Peter,

Thank you for your inputs. This really helped me.

Thanks!

-- 


CONFIDENTIALITY. This email and any attachments are confidential to Alef 
Edge Inc., and may also be privileged, except where the email states it can 
be disclosed. If this email is received in error, please do not disclose 
the contents to anyone, notify the sender by return email, and delete this 
email (and any attachments) from your system.
-- 
https://mail.python.org/mailman/listinfo/python-list


Software Developer for the Digital Ocean Applications | Job position at CMCC Foundation, Italy

2020-05-20 Thread CMCC Info

/Please, feel free to circulate //to anyone you think may be interested.///
--

Software Developer for the Digital Ocean Applications (Code: 10822) 


*Deadline**31/05/2020*

The CMCC is taking into consideration the possibility to hire a 
talented, motivated and proactive Software Developer to support research 
and development activities. This job announcement is a public invitation 
to express interest for the above mentioned CMCC Position.


The location is CMCC Headquarters in*Lecce, Italy*.

The primary purposes for this position is to support the Applications 
Research Unit of the OPA Division of CMCC 
, 
in activities based on both observed and model maritime data. Candidates 
will be engaged in:


 * supporting VISIR model (visir-model.net
   ) developments
 * porting/recoding/re-engineering/developing new numerical procedures
   based on heterogeneous maritime data
 * developing/maintaining and improving operational chains components.

The desired qualifications are:

 * M.Sc. degree in Computer Science, Engineering, Physics, or Mathematics
 * Good knowledge of scientific programming languages (preferably
   Python, Matlab, R)
 * knowledge of version control systems (e.g., git)
 * Knowledge of UNIX/Linux operating systems
 * fluency in the English language
 * knowledge of workflow management platforms
 * experience in managing/manipulating NetCDF data//

Belonging to legally protected categories (ex Italian Law 68/99) will 
constitute a preferential condition.


The initial appointment is for 24 months starting from July 2020 at an 
annual salary ranging from 22 K to 38K Euros for junior research 
associates and from 32K to 48K Euros for senior research associates*, 
comprehensive of benefits*, depending on qualification and experience.


*How to Apply*
Applicants should register to CMCC JAM (Job Application Manager) website.

For further information on CMCC Job Opportunities, please visit our 
website https://www.cmcc.it/work-with-us.


--

Fondazione Centro Euro-Mediterraneo sui Cambiamenti Climatici
Web: www.cmcc.it  - Contact us: i...@cmcc.it 



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


Re: Missing python curses functions?

2020-05-20 Thread Alan Gauld via Python-list
On 20/05/2020 01:48, Cameron Simpson wrote:

> It may be that the person who wrote the curses module simply got tired.  

That was my assumption. Although the implementation includes some
functions that are a lot more obscure. Usually when one is missing there
is an alternative with the same effect, but in this case I can't find
any way of finding out the attributes of a piece of text. You can read
the text with instr() but it does not include the attributes.

I confess I've never needed this functionality and only realized it
was missing by working through the HOWO document. But I can see
where it might be useful, say to toggle from bold to dim or
somesuch.

> Or it predates the get_attr calls (not sure now old they are).

>From the man page it looks like its been there since SVR3 at least.

But in browsing the man pages I came across another function
that returns the attributes for a single character - inch().
That is supported in Python.

To get the current settings you would need to write a
character to the window(addch), fetch its attributes using
inch() then delete the character just written (delch).
Clunky but it should work. I'll try it and see if I
can create an attr_get(win)->int  function in Python...

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


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


Solved: Re: Missing python curses functions?

2020-05-20 Thread Alan Gauld via Python-list
On 19/05/2020 20:53, Alan Gauld via Python-list wrote:

> One of the functions discussed that does not appear to have
> a Python equivalent is attr_get() which gets the current
> attributes.

OK, Using inch() I've written the following function:


def attr_get(win):
""" return current window attributes.
If a character exists at the bottom right position it will be lost!
"""
y,x = win.getmaxyx() # how many lines in the window?
win.insch(y-1,0,' ') # insert a space at bottom left
ch = win.inch(y-1,0) # now read the char (including attributes)
win.delch(y-1,0) # remove the char from window
return ch

And it can be used like:

import curses
scr = curses.initscr()
# uncomment next line to test
# scr.attrset(curses.A_UNDERLINE)

atts = attr_get(scr)
if atts & cur.A_UNDERLINE:
scr.addstr("Underline is on")
else:
scr.addstr("Underline is off")

scr.refresh()
scr.getch()
curses.endwin()

Just in case its useful to anyone else...
-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


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


Python not running

2020-05-20 Thread Supriyo Roy
I have installed the latest version of python which is 3.8.3. However, when
I try to run a sample program, a small python icon appears on my taskbar
for a split second and then disappears. Nothing else happens. Please advise
me on how to get python up and running.
Thank you in advance. Regards.

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


Re: Python not running

2020-05-20 Thread DL Neil via Python-list

On 21/05/20 2:22 AM, Supriyo Roy wrote:

I have installed the latest version of python which is 3.8.3. However, when
I try to run a sample program, a small python icon appears on my taskbar
for a split second and then disappears. Nothing else happens. Please advise
me on how to get python up and running.
Thank you in advance. Regards.



Please advise if the following reference is accurate, and works for you:
https://docs.python.org/3/using/windows.html
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list


Re: Can't run program

2020-05-20 Thread DL Neil via Python-list

On 21/05/20 7:16 AM, Dennis Lee Bieber wrote:

On Tue, 19 May 2020 20:31:28 -0400, Ryan Harrington
 declaimed the following:


Hi - I'm not the least bit technical. Trying to learn through YouTube. I've
gotten exit code 1, 2, 106. Tried setting up the project interpreter and
can't figure it out. Tried uninstalling and reinstalling everything and
still having problems. Any feedback appreciated.



Information... We want... Information

What OS?

What installer package (and where did you obtain it)?



Assuming MS-Windows:
Please advise if the following reference is accurate, and works for you:
https://docs.python.org/3/using/windows.html
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list


Re: Python not running

2020-05-20 Thread Michael Torrie
On 2020-05-20 8:22 a.m., Supriyo Roy wrote:
> I have installed the latest version of python which is 3.8.3. However, when
> I try to run a sample program, a small python icon appears on my taskbar
> for a split second and then disappears. Nothing else happens. Please advise
> me on how to get python up and running.
> Thank you in advance. Regards.

Always state your operating system!

Python is simply an interpreter, not a graphical application, and is
normally run from the command prompt.  Your program is in fact running,
but after it finishes, the window goes away, as it does for all console
programs.  If you run it from a command prompt you will see the complete
output from your program.  Please read the link that DL Neil helpfully
provided to get you up and running on Windows.
-- 
https://mail.python.org/mailman/listinfo/python-list


Display, EasyProcess

2020-05-20 Thread Larry Martell
I have some code that uses the pyvirtualdisplay package and it works fine.

pyvirtualdisplay,Display calls EasyProcess like this:

   @classmethod
   def check_installed(cls):
   EasyProcess([PROGRAM, '-help'], url=URL,
   ubuntu_package=PACKAGE).check_installed()

I made a branch and made some changes. In the branch, when I
instantiate Display and it gets to this point it fails with:

TypeError: __init__() got an unexpected keyword argument 'url'

There are no changes in my branch related to using Display. What's
very odd is that the __init__() function for EasyProcess has this
signature, and the call to it from Display is the same in my master
branch and it works:

def __init__(
self, cmd, cwd=None, use_temp_files=True, env=None,
):

So that url param must be getting passed to something else.

I did some googling and found a post on SO where someone was having
the same issue, and the answer was that they overrode the EasyProcess
__init__ with their own init. If I am doing that I have no clue how
that could be. I did inspect EasyProcess just before the call and it
was the correct code.

Here is the end of the stack trace:

-> display = Display(visible=0, size=(800, 600))
> /usr/local/lib/python3.7/site-packages/pyvirtualdisplay/display.py(33)__init__()
-> self._obj = self.display_class(
  
/usr/local/lib/python3.7/site-packages/pyvirtualdisplay/display.py(51)display_class()
-> cls.check_installed()
  
/usr/local/lib/python3.7/site-packages/pyvirtualdisplay/xvfb.py(38)check_installed()
-> ubuntu_package=PACKAGE).check_installed()



Anyone have any thoughts on what could be causing this or how I can
debug it further?
-- 
https://mail.python.org/mailman/listinfo/python-list