Error in PIP install packages

2020-06-08 Thread Devendra Dhond
R/sir,



I am facing too much errors during pip installing.

Deserialization error

And much more in red errors.

Pip upgrading error



Please help me out..



I want to uninstall complete python all pip and freshly download python and
install various packages.



Suggest me which version I need to download

And sequence of package installing.

I want to install all necessary packages..

I.e. playsound

Pygame

Face_recogntion

Wheel

Numpy

Dlib



Regards,

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


Installation Problems

2020-06-08 Thread purelyconstructive .
Hello,

I'm sorry if this isn't the correct email to send this to, but I am
new to Python and I am having a very hard time getting it installed
correctly no matter what version I try.

My computer specs are:

Toshiba Satellite C55t-B Laptop
Intel Celeron CPU N2830 @ 2.16GHz
4 GB RAM
64-bit Windows 8

First, I tried installing the 64-bit version of Python 3.8.3, but
anytime I try to open it, whether by clicking on its shortcut or
running it in a command line, a dialog box pops up with the following
error:

"The application was unable to start correctly (0xc07b). Click OK
to close the application."

After searching for a solution, I came across this Stack Overflow post
that covers what seems to be a similar problem:

https://stackoverflow.com/questions/20650596/cannot-open-python-error-0xc07b

I tried all of the solutions offered there to no avail (e.g.:
uninstalling and reinstalling it several times with various settings,
changing the PATH in Environmental Variables to point to Python38,
updating the Microsoft Visual C++ Redistributable Package, etc.).

None of it worked, so I eventually decided to try the 32-bit version
instead. This generally seems to work as Python will now open just
fine when I click on its shortcut or run it in a command line.
However, IDLE won't open. Nothing comes up when I click on its
shortcut...

I searched for a solution again and came across this Stack Overflow
post with what seems to be a similar problem:

https://stackoverflow.com/questions/7509579/python-idle-won%C2%B4t-start

I've tried all of these solutions too, but none of them worked (e.g.:
uninstalling and reinstalling several times with different settings,
checking PATH in Environmental Variables, adding a TCL_LIBRARY entry
to Environmental Variables that points to tcl8.6, "repairing" the
installation under Uninstall Programs in Windows, etc.).

After looking at the section on IDLE within the Python Documentation,
I came across the command:

"python -m idlelib"

When I try it I get the error:

"** IDLE can't import Tkinter.
Your Python may not be configured for Tk. **"

More searches on how to fix this problem have led me to try out all
sorts of different things similar to what I have described above, but
I feel like something on my computer is not allowing Python to install
correctly (even when it seems to) and I can't pin-point what exactly
it is. Any help in this matter would be greatly appreciated.

Sincerely,
Sage
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Can I have a class with property named "from"

2020-06-08 Thread zljubisic
Well the problem that I am facing with is, that I have to establish interface 
between python and outer system.

Original question was about creation of input object (data that I have received 
from outer system). If I accept recommendation to use "from_" instead of 
"from", it could work, for processing input, because processing is under my 
control.

However, my process will create output object that I should json serialize and 
return back to outer system as a response to the input. If I will have "from_" 
object property instead of "from", I believe that I should write a custom 
object to json serializer in order to support changing names from "from_" to 
"from".
-- 
https://mail.python.org/mailman/listinfo/python-list


Do I need setters/getters in python?

2020-06-08 Thread zljubisic
Consider this code:


class SetGet:

_x = 1

@property
def x(self):
return self._x

@x.setter
def x(self, value):
self._x = value


class Dynamic:

x = 1

if __name__ == '__main__':

a = SetGet()

print(f'x = {a.x}')
a.x = 2
print(f'x = {a.x}')

a = Dynamic()
print(f'x = {a.x}')
a.x = 2
print(f'x = {a.x}')


Output is the same:

x = 1
x = 2
x = 1
x = 2

If I have public property and I am not doing any transformation with data that 
is used to sat variable value... do I need a setter/getter at all?


Is there any difference if property "_x" is defined as class property as in the 
case in SetGet class, or if I have put it in the SetGet inite like:

class SetGet:
def __init__():
self._x = 1

(the rest is the same).

When I said "difference", I mean except the fact that in init I can change 
"_x"'s value at the time of class construction.

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


Re: Do I need setters/getters in python?

2020-06-08 Thread Terry Reedy

On 6/8/2020 4:10 PM, zljubi...@gmail.com wrote:

Consider this code:


class SetGet:

 _x = 1

 @property
 def x(self):
 return self._x

 @x.setter
 def x(self, value):
 self._x = value


class Dynamic:

 x = 1

if __name__ == '__main__':

 a = SetGet()

 print(f'x = {a.x}')
 a.x = 2
 print(f'x = {a.x}')

 a = Dynamic()
 print(f'x = {a.x}')
 a.x = 2
 print(f'x = {a.x}')


Output is the same:

x = 1
x = 2
x = 1
x = 2

If I have public property and I am not doing any transformation with data that 
is used to sat variable value... do I need a setter/getter at all?


No!


--
Terry Jan Reedy

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


Re: Error in PIP install packages

2020-06-08 Thread Souvik Dutta
Can you paste the complete error message that you got on running pip?

Souvik flutter dev

On Mon, Jun 8, 2020, 10:10 PM Devendra Dhond 
wrote:

> R/sir,
>
>
>
> I am facing too much errors during pip installing.
>
> Deserialization error
>
> And much more in red errors.
>
> Pip upgrading error
>
>
>
> Please help me out..
>
>
>
> I want to uninstall complete python all pip and freshly download python and
> install various packages.
>
>
>
> Suggest me which version I need to download
>
> And sequence of package installing.
>
> I want to install all necessary packages..
>
> I.e. playsound
>
> Pygame
>
> Face_recogntion
>
> Wheel
>
> Numpy
>
> Dlib
>
>
>
> Regards,
>
> Devendra Dhond
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list