Re: Issue with Python

2020-10-23 Thread Mats Wichmann
On 10/23/20 3:52 AM, Ifeanyi Obinelo wrote: > Hello! I am a Python programmer and I love the language. However, I > installed Python 3.9 and suddenly, pip does not install Python libraries > anymore. It says that I need Visual Studio C++ 2014 and exits with: > > "ERROR: Command errored out with ex

Issue with Python

2020-10-23 Thread Ifeanyi Obinelo
Hello! I am a Python programmer and I love the language. However, I installed Python 3.9 and suddenly, pip does not install Python libraries anymore. It says that I need Visual Studio C++ 2014 and exits with: "ERROR: Command errored out with exit status 1:..error: Microsoft Visual C++ 14.0 is requ

Re: Issue with python 3.7.9 installation

2020-09-05 Thread MRAB
On 2020-09-05 21:12, Juanti VF wrote: Hey, I tried installing python 64 bit after uninstalling my 32 bit version. When I try to run python -v on the terminal I get an absolute TON of messages about frozen_importlib. I did add python to PATH during installation and I'm using a 64 bit win 10 ma

Issue with python 3.7.9 installation

2020-09-05 Thread Juanti VF
Hey, I tried installing python 64 bit after uninstalling my 32 bit version. When I try to run python -v on the terminal I get an absolute TON of messages about frozen_importlib. I did add python to PATH during installation and I'm using a 64 bit win 10 machine. This is the .exe file I ran for i

Re: (Issue resolved!) Issue with Python module downloads from Library for a beginner Python coder.

2020-08-02 Thread Sarvesh Poddar via Python-list
Hi terry, I am so happy to mention that your suggestion worked! I moved the file from Tkinter to Lib and I am suddenly able to import the file.  Thanks you so much @Bob, @Arjun, @Cameron for your suggestions. I can finally move forward. I hope to contribute to this community in future after gain

Re: Issue with Python module downloads from Library for a beginner Python coder.

2020-08-02 Thread Sarvesh Poddar via Python-list
Hello Dennis, Sorry for my copy-paste error and thanks for highlighting the same. I will make sure that from next time I will maintain the line breaks. I tried opening it in CMD and it did open with the skewed triangle figure although I am still not able to use it in my IDLE environment. Unfortu

Re: Issue with Python module downloads from Library for a beginner Python coder.

2020-08-02 Thread Terry Reedy
On 8/2/2020 2:36 AM, Sarvesh Poddar via Python-list wrote: [I downloaded] https://mcsp.wartburg.edu/zelle/python/graphics.py) I have unmangled the traceback and added explanations. Traceback (most recent call last):  File "", line 1, in     import graphics You typed this in IDLE Shell in r

Re: Issue with Python module downloads from Library for a beginner Python coder.

2020-08-02 Thread Bob van der Poel
Do you have tkinter installed? The graphics.py module needs it to run. On Sat, Aug 1, 2020 at 11:36 PM Sarvesh Poddar via Python-list < python-list@python.org> wrote: > Hi, > I am currently using Python 3.8.5 with IDLE environment that comes > pre-installed with the Python application. I am usin

Re: Issue with Python module downloads from Library for a beginner Python coder.

2020-08-02 Thread Cameron Simpson
Diverting replies to tu...@python.org, a better place for all this. It looks like the error is in graphics.py, not in your file. Your line: from graphics import * is syntacticly correct. Something has mangled the line breaks in your traceback, which here appears as: When I write a diff

Re: Issue with Python module downloads from Library for a beginner Python coder.

2020-08-01 Thread Sarvesh Poddar via Python-list
Hi, I am currently using Python 3.8.5 with IDLE environment that comes pre-installed with the Python application. I am using the book "An Introduction to computer science" by John Zelle as my reference. The problem I am facing is "There is a python program named "graphics.py" that is used as re

Re: Issue with Python installation for a beginner Python coder.

2020-07-31 Thread boB Stepp
On Thu, Jul 30, 2020 at 9:24 AM Sarvesh Poddar via Python-list wrote: > I re-installed Python in my Windows system as the earlier one was not able to > import modules... You do not provide much detail to diagnose what your problem(s) is(are). By the "earlier one" is it the same version as the

Issue with Python installation for a beginner Python coder.

2020-07-30 Thread Sarvesh Poddar via Python-list
Hi, I re-installed Python in my Windows system as the earlier one was not able to import modules. But now I am not able to open IDLE after multiple tries.  Can you guys help me? I am a beginner and tried out a lot of solutions provided on the internet and it's just not getting fixed. Please help.

Re: Issue with Python installation

2019-09-11 Thread Rhodri James
On 11/09/2019 17:48, Manasiz Paul wrote: Dear Sir/Madam, I have installed the latest version of Python but while running it, I am facing this issue continuously. [image: Untitled.png] I'm afraid the mailing list stripped off your attachment. Please copy and paste the error messages into the

Issue with Python installation

2019-09-11 Thread Manasiz Paul
Dear Sir/Madam, I have installed the latest version of Python but while running it, I am facing this issue continuously. [image: Untitled.png] Kindly let me know how to resolve this issue. -- https://mail.python.org/mailman/listinfo/python-list

RE: libxml2 installation/binding issue with Python 3.6.4

2018-02-06 Thread Priest, Matt
bounces+matt.priest=intel@python.org] On Behalf Of dieter Sent: Tuesday, February 6, 2018 12:57 AM To: python-list@python.org Subject: Re: libxml2 installation/binding issue with Python 3.6.4 "Priest, Matt" writes: > ... > I've successfully (?) installed Python 3.6.4 and libxml

Re: libxml2 installation/binding issue with Python 3.6.4

2018-02-05 Thread dieter
"Priest, Matt" writes: > ... > I've successfully (?) installed Python 3.6.4 and libxml2, with the ultimate > goal of installing GTK+ 3.22.0. You might also try "lxml" - which is an alternative for "libxml2". > However, I'm running into this error: > ... > import libxml2mod > ImportError: >

Re: libxml2 installation/binding issue with Python 3.6.4

2018-02-05 Thread Terry Reedy
On 2/5/2018 6:11 PM, Priest, Matt wrote: Hello, I am not sure if this is the correct place to post an issue/question like this, but here goes... I've successfully (?) installed Python 3.6.4 and libxml2, with the ultimate goal of installing GTK+ 3.22.0. However, I'm running into this error:

libxml2 installation/binding issue with Python 3.6.4

2018-02-05 Thread Priest, Matt
Hello, I am not sure if this is the correct place to post an issue/question like this, but here goes... I've successfully (?) installed Python 3.6.4 and libxml2, with the ultimate goal of installing GTK+ 3.22.0. However, I'm running into this error: python3 Python 3.6.4 (default, Feb 5 2018,

Re: Installation issue with Python 3.6.2.

2017-09-05 Thread Thomas Jollans
On 2017-09-05 15:24, V Vishwanathan wrote: > For the past 8/10 hours I have been trying to install the above version > without any success. > > My O/S is windows 10 free upgrade from win 8.1 > > Every time I try to install, I simply get a message as per screen grab > attached. This list is te

Installation issue with Python 3.6.2.

2017-09-05 Thread V Vishwanathan
For the past 8/10 hours I have been trying to install the above version without any success. My O/S is windows 10 free upgrade from win 8.1 Every time I try to install, I simply get a message as per screen grab attached. I did have a version of 3.61 installed prior to upgrade to win 10, but so

Re: Installation issue with Python 3.6.1 for 64 bit Windows

2017-03-26 Thread Arjun Janah
Thank you, Eryk Sun. On Mar 26, 2017 12:40 PM, "eryk sun" wrote: > On Sun, Mar 26, 2017 at 4:01 AM, arjun.janah > wrote: > > > > I ran the file and it appeared to install properly. But when I tried to > run Python from > > the Windows All Programs menu tab, I got the following message, in a > s

Re: Installation issue with Python 3.6.1 for 64 bit Windows

2017-03-26 Thread eryk sun
On Sun, Mar 26, 2017 at 4:01 AM, arjun.janah wrote: > > I ran the file and it appeared to install properly. But when I tried to run > Python from > the Windows All Programs menu tab, I got the following message, in a small > window by the window with a black screen: >

Re: Installation issue with Python 3.6.1 for 64 bit Windows

2017-03-26 Thread Sibylle Koczian
Am 26.03.2017 um 06:01 schrieb arjun.janah: Hello, I am using an HP PC, brought in 2009, which currently has on it Windows 7 Ultimate, Service Pack 1. Did you do all Windows updates? System type is 64-bit operating system. I went to https://www.python.org/downloads/windows/ and chose the f

Installation issue with Python 3.6.1 for 64 bit Windows

2017-03-26 Thread arjun.janah
Sent from my T-Mobile 4G LTE Device Hello, I am using an HP PC, brought in 2009, which currently has on it Windows 7 Ultimate, Service Pack 1. The processor is an AMD Turion 64 X2 Mobile Technology TL-62 2.10 GHz. Installed memory is 4.00 GB (3.75 GB usable) System type is 64-bit operating sy

Re: Unicode issue with Python v3.3

2013-04-19 Thread Νίκος Γκρ33κ
Hello Cameron, Did you received my yesterday's mail? -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode issue with Python v3.3

2013-04-17 Thread Νίκος Γκρ33κ
Τη Πέμπτη, 18 Απριλίου 2013 2:00:48 π.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: > Reply to this message. I will email you my ssh public key. Please make me an > _ordinary_ user account called "cameron" and send me the ssh details of your > VPS. Thank you very much Cameron, i appreciate all yo

Re: Unicode issue with Python v3.3

2013-04-17 Thread Cameron Simpson
On 14Apr2013 04:22, nagia.rets...@gmail.com wrote: | > | Cameron would it be too much to ask to provide you with root | > | access to my VPS server so you can have a look there too? | > | i can pay you if you like if you wait a few days to gather some money. | > | > I really do not recommend that

Re: Unicode issue with Python v3.3

2013-04-17 Thread Chris Angelico
On Wed, Apr 17, 2013 at 4:56 PM, wrote: > can you help please or tell me what else i need to try? You need to try trimming quoted text in replies, not double-spacing, and paying for help. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode issue with Python v3.3

2013-04-17 Thread Chris Angelico
On Wed, Apr 17, 2013 at 4:56 PM, wrote: > can you help please or tell me what else i need to try? You need to try trimming quoted text in replies, not double-spacing, and paying for help. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode issue with Python v3.3

2013-04-17 Thread nagia . retsina
Τη Κυριακή, 14 Απριλίου 2013 12:28:32 μ.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: > On 13Apr2013 23:00, nagia.rets...@gmail.com wrote: > > | root@nikos [/home/nikos/public_html/foo-py]# pwd > > | /home/nikos/public_html/foo-py > > | root@nikos [/home/nikos/public_html/foo-py]# cat foo.py >

Re: Unicode issue with Python v3.3

2013-04-15 Thread Νίκος Γκρ33κ
Hello, can you still help me please? -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode issue with Python v3.3

2013-04-14 Thread nagia . retsina
Τη Κυριακή, 14 Απριλίου 2013 12:28:32 μ.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: > On 13Apr2013 23:00, nagia.rets...@gmail.com wrote: > > | root@nikos [/home/nikos/public_html/foo-py]# pwd > > | /home/nikos/public_html/foo-py > > | root@nikos [/home/nikos/public_html/foo-py]# cat foo.py >

Re: Unicode issue with Python v3.3

2013-04-14 Thread Cameron Simpson
On 13Apr2013 23:00, nagia.rets...@gmail.com wrote: | root@nikos [/home/nikos/public_html/foo-py]# pwd | /home/nikos/public_html/foo-py | root@nikos [/home/nikos/public_html/foo-py]# cat foo.py | #!/bin/sh | exec 2>>/home/nikos/cgi.err.out | echo "$0 $*" >&2 | id >&2 | env | sort >&2 | set -x | ex

Re: Unicode issue with Python v3.3

2013-04-13 Thread nagia . retsina
Τη Τετάρτη, 10 Απριλίου 2013 12:10:13 π.μ. UTC+3, ο χρήστης Νίκος Γκρ33κ έγραψε: > Hello, iam still trying to alter the code form python 2.6 => 3.3 > > > > Everyrging its setup except that unicode error that you can see if you go to > http://superhost.gr > > > > Can anyone help with this? >

Re: Unicode issue with Python v3.3

2013-04-13 Thread Cameron Simpson
On 13Apr2013 07:16, nagia.rets...@gmail.com wrote: | root@macgyver [/home/nikos/public_html/cgi-bin]# ls ../cgi.err.out | ../cgi.err.out I prefer "ls -ld" myself. | root@macgyver [/home/nikos/public_html/cgi-bin]# cat ../cgi.err.out | | Also i have foudn the error log and i tried to view it b

Re: Unicode issue with Python v3.3

2013-04-13 Thread Chris Angelico
On Sun, Apr 14, 2013 at 12:16 AM, wrote: > Also i have foudn the error log and i tried to view it but it was empty and > then i removed it and then run the script both from shell and broswer but it > didnt reappeared. > > root@macgyver [/home/nikos/public_html/cgi-bin]# cat /var/log/httpd/error

Re: Unicode issue with Python v3.3

2013-04-13 Thread nagia . retsina
Τη Σάββατο, 13 Απριλίου 2013 1:28:07 μ.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: > On 12Apr2013 21:50, nagia.rets...@gmail.com wrote: > > | Ookey after that is corrected, i then tried the plain solution and i got > this response back form the shell: > > | > > | Traceback (most recent call

Re: Unicode issue with Python v3.3

2013-04-13 Thread Cameron Simpson
On 12Apr2013 21:50, nagia.rets...@gmail.com wrote: | Ookey after that is corrected, i then tried the plain solution and i got this response back form the shell: | | Traceback (most recent call last): | File "metrites.py", line 213, in | htmldata = f.read() | File "/root/.local/l

Re: Unicode issue with Python v3.3

2013-04-12 Thread nagia . retsina
Τη Σάββατο, 13 Απριλίου 2013 4:41:57 π.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: > On 11Apr2013 09:55, Nikos wrote: > > | Τη Πέμπτη, 11 Απριλίου 2013 1:45:22 μ.μ. UTC+3, ο χρήστης Cameron Simpson > έγραψε: > > | > On 10Apr2013 21:50, nagia.rets...@gmail.com > wrote: > > | > | the doctype

Re: Unicode issue with Python v3.3

2013-04-12 Thread Cameron Simpson
On 11Apr2013 09:55, Nikos wrote: | Τη Πέμπτη, 11 Απριλίου 2013 1:45:22 μ.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: | > On 10Apr2013 21:50, nagia.rets...@gmail.com wrote: | > | the doctype is coming form the attempt of script metrites.py to open and read the 'index.html' file. | > | But i don'

Re: Unicode issue with Python v3.3

2013-04-12 Thread nagia . retsina
Τη Παρασκευή, 12 Απριλίου 2013 9:37:29 μ.μ. UTC+3, ο χρήστης Ian έγραψε: > On Fri, Apr 12, 2013 at 8:36 AM, wrote: > > > Τη Παρασκευή, 12 Απριλίου 2013 4:29:51 μ.μ. UTC+3, ο χρήστης rusi έγραψε: > > >> On Apr 12, 6:18 pm, nagia.rets...@gmail.com wrote: > > >> > Well, instead of being a smartas

Re: Unicode issue with Python v3.3

2013-04-12 Thread Roy Smith
In article , Ian Kelly wrote: > I would also recommend that in the future you should stop deploying > untested code to your production website. Set up a development > environment for yourself, make the changes there, and only deploy when > you know that everything is working. But that takes al

Re: Unicode issue with Python v3.3

2013-04-12 Thread Ian Kelly
On Fri, Apr 12, 2013 at 8:36 AM, wrote: > Τη Παρασκευή, 12 Απριλίου 2013 4:29:51 μ.μ. UTC+3, ο χρήστης rusi έγραψε: >> On Apr 12, 6:18 pm, nagia.rets...@gmail.com wrote: >> > Well, instead of being a smartass it would be nice if you could actually >> > help for once. >> >> Interesting! >> >> Amo

Re: Unicode issue with Python v3.3

2013-04-12 Thread nagia . retsina
Τη Παρασκευή, 12 Απριλίου 2013 4:29:51 μ.μ. UTC+3, ο χρήστης rusi έγραψε: > On Apr 12, 6:18 pm, nagia.rets...@gmail.com wrote: > > > Τη Παρασκευή, 12 Απριλίου 2013 4:14:39 μ.μ. UTC+3, ο χρήστης Chris Angelico > > έγραψε: > > > > > > > On Fri, Apr 12, 2013 at 10:50 PM,   wrote: > > > > > > > >

Re: Unicode issue with Python v3.3

2013-04-12 Thread rusi
On Apr 12, 6:18 pm, nagia.rets...@gmail.com wrote: > Τη Παρασκευή, 12 Απριλίου 2013 4:14:39 μ.μ. UTC+3, ο χρήστης Chris Angelico > έγραψε: > > > On Fri, Apr 12, 2013 at 10:50 PM,   wrote: > > > > Someone HEELP ME!! > > >http://youtu.be/VxMYwjp8t0o > > > ChrisA > > Well, instead of

Re: Unicode issue with Python v3.3

2013-04-12 Thread Chris Angelico
On Fri, Apr 12, 2013 at 11:18 PM, wrote: > Τη Παρασκευή, 12 Απριλίου 2013 4:14:39 μ.μ. UTC+3, ο χρήστης Chris Angelico > έγραψε: >> On Fri, Apr 12, 2013 at 10:50 PM, wrote: >> >> > Someone HEELP ME!! >> >> http://youtu.be/VxMYwjp8t0o >> >> ChrisA > > > Well, instead of being a

Re: Unicode issue with Python v3.3

2013-04-12 Thread nagia . retsina
Τη Παρασκευή, 12 Απριλίου 2013 4:14:39 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Fri, Apr 12, 2013 at 10:50 PM, wrote: > > > Someone HEELP ME!! > > > > http://youtu.be/VxMYwjp8t0o > > > > ChrisA Well, instead of being a smartass it would be nice if you could actu

Re: Unicode issue with Python v3.3

2013-04-12 Thread Chris Angelico
On Fri, Apr 12, 2013 at 10:50 PM, wrote: > Someone HEELP ME!! http://youtu.be/VxMYwjp8t0o ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode issue with Python v3.3

2013-04-12 Thread nagia . retsina
Someone HEELP ME!! -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode issue with Python v3.3

2013-04-11 Thread alex23
On Apr 12, 2:36 pm, nagia.rets...@gmail.com wrote: > Well, can somebody else propose somehting plz? Pay for a professional. -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode issue with Python v3.3

2013-04-11 Thread nagia . retsina
Well, can somebody else propose somehting plz? i have paste the whole script and even the necessary snippet that perhaps causing this encoding confusion in 3.3 -- http://mail.python.org/mailman/listinfo/python-list

Re: People in the python community [was Re: Unicode issue with Python v3.3]

2013-04-11 Thread Michael Torrie
On 04/10/2013 10:50 AM, Νίκος Γκρ33κ wrote: > I'am not sure i follow you. How did my topic changed?! Is this > possible? This is a mailing list/nntp newsgroup. The subject line can be changed arbitrarily by anyone replying to another message. Normally this is done to indicate a natural progressi

Re: Unicode issue with Python v3.3

2013-04-11 Thread Nikos
Τη Πέμπτη, 11 Απριλίου 2013 1:45:22 μ.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: > On 10Apr2013 21:50, nagia.rets...@gmail.com wrote: > > | Firtly thank uou for taking a look into the code. > > | the doctype is coming form the attempt of script metrites.py to open and > read the 'index.html'

Re: Unicode issue with Python v3.3

2013-04-11 Thread nagia . retsina
Of course here is how it look like: if page.endswith('.html'): f = open( "/home/nikos/www/" + page, encoding="utf-8" ) htmldata = f.read() htmldata = htmldata % (quote, music) counter = '''

Re: Unicode issue with Python v3.3

2013-04-11 Thread Cameron Simpson
On 10Apr2013 21:50, nagia.rets...@gmail.com wrote: | Firtly thank uou for taking a look into the code. | the doctype is coming form the attempt of script metrites.py to open and read the 'index.html' file. | But i don't know how to try to open it as a byte file instead of an tetxt file. I think

Re: Unicode issue with Python v3.3

2013-04-11 Thread Lele Gaifax
nagia.rets...@gmail.com writes: > metrites.py tries to open that script so we must tell it to open as > utf-8 text and not as a binary file. One way is the following: from codecs import open with open('index.html', encoding='utf-8') as f: content = f.read() ciao, lele. -- nick

Re: Unicode issue with Python v3.3

2013-04-11 Thread nagia . retsina
Τη Πέμπτη, 11 Απριλίου 2013 11:20:47 π.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: > On Thu, 11 Apr 2013 07:50:19 +, Steven D'Aprano wrote: > > > > > On Thu, 11 Apr 2013 00:13:46 -0700, nagia.retsina wrote: > > > > > >> Since now we k ow the problem maybe we can tell metrites.py to open

Re: Unicode issue with Python v3.3

2013-04-11 Thread Steven D'Aprano
On Thu, 11 Apr 2013 07:50:19 +, Steven D'Aprano wrote: > On Thu, 11 Apr 2013 00:13:46 -0700, nagia.retsina wrote: > >> Since now we k ow the problem maybe we can tell metrites.py to open >> index.html using utf-8 encoding rather as binary, dont you think? > > What makes you think it is UTF-8

Re: Unicode issue with Python v3.3

2013-04-11 Thread Steven D'Aprano
On Thu, 11 Apr 2013 00:13:46 -0700, nagia.retsina wrote: > Since now we k ow the problem maybe we can tell metrites.py to open > index.html using utf-8 encoding rather as binary, dont you think? What makes you think it is UTF-8? Last time you tried decoding content as UTF-8, you got an error tha

Re: Unicode issue with Python v3.3

2013-04-11 Thread nagia . retsina
Since now we k ow the problem maybe we can tell metrites.py to open index.html using utf-8 encoding rather as binary, dont you think? -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode issue with Python v3.3

2013-04-10 Thread nagia . retsina
Firtly thank uou for taking a look into the code. the doctype is coming form the attempt of script metrites.py to open and read the 'index.html' file. But i don't know how to try to open it as a byte file instead of an tetxt file. -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode issue with Python v3.3

2013-04-10 Thread Cameron Simpson
On 10Apr2013 01:06, Νίκος Γκρ33κ wrote: | Here is the whole code for metrites.py in case someone wants to take allok. | | Everything is correct after altering it to meet python 3.3, | everythign aprt from the weird unicode error thing. | | http://pastebin.com/5Mpjx5Fd | | please take a look. F

Re: Unicode issue with Python v3.3

2013-04-10 Thread Arnaud Delobelle
On 10 April 2013 09:28, Steven D'Aprano wrote: > On Tue, 09 Apr 2013 23:04:35 -0700, rusi wrote: [...] > I think it is quite unfair of you to mischaracterise the entire community > response in this way. One person made a light-hearted, silly, unhelpful > response. (As sarcasm, I'm afraid it missed

Re: Unicode issue with Python v3.3

2013-04-10 Thread Ian Kelly
On Wed, Apr 10, 2013 at 12:25 PM, Νίκος Γκρ33κ wrote: > Τη Τετάρτη, 10 Απριλίου 2013 9:08:38 μ.μ. UTC+3, ο χρήστης Nobody έγραψε: >> On Wed, 10 Apr 2013 00:23:46 -0700, nagia.retsina wrote: >> >> >> >> > Look at what 'python3 metrites.py' gives me >> >> >> >> > File "/root/.local/lib/python2.7/l

Re: Unicode issue with Python v3.3

2013-04-10 Thread Νίκος Γκρ33κ
Τη Τετάρτη, 10 Απριλίου 2013 9:08:38 μ.μ. UTC+3, ο χρήστης Nobody έγραψε: > On Wed, 10 Apr 2013 00:23:46 -0700, nagia.retsina wrote: > > > > > Look at what 'python3 metrites.py' gives me > > > > > File "/root/.local/lib/python2.7/lib/python3.3/os.py", line 669, ... > >

Re: Unicode issue with Python v3.3

2013-04-10 Thread Nobody
On Wed, 10 Apr 2013 00:23:46 -0700, nagia.retsina wrote: > Look at what 'python3 metrites.py' gives me > File "/root/.local/lib/python2.7/lib/python3.3/os.py", line 669, ... ^^^ ^^^ -- http://mail.python.org/mailman/listinfo/python-list

Re: People in the python community [was Re: Unicode issue with Python v3.3]

2013-04-10 Thread Νίκος Γκρ33κ
I'am not sure i follow you. How did my topic changed?! Is this possible? How about the oce i posted at patebin.com. Did anyone by any chnace had a look into? It's only a single thing iam missing for the encoding and the the script will load properly with python 3.3 -- http://mail.python.org/mai

Re: People in the python community [was Re: Unicode issue with Python v3.3]

2013-04-10 Thread Chris Angelico
On Thu, Apr 11, 2013 at 1:15 AM, Mark Lawrence wrote: > On 10/04/2013 15:43, Νίκος Γκρ33κ wrote: >> >> Anyone please? >> > > I have already shown my support for Peter Otten on this thread. Are you > asking for more people to do so? Sure, I can! He's one of the people who keeps this list/ng produ

Re: People in the python community [was Re: Unicode issue with Python v3.3]

2013-04-10 Thread Mark Lawrence
On 10/04/2013 15:43, Νίκος Γκρ33κ wrote: Anyone please? I have already shown my support for Peter Otten on this thread. Are you asking for more people to do so? -- If you're using GoogleCrap™ please read this http://wiki.python.org/moin/GoogleGroupsPython. Mark Lawrence -- http://mail.

Re: People in the python community [was Re: Unicode issue with Python v3.3]

2013-04-10 Thread Νίκος Γκρ33κ
Anyone please? -- http://mail.python.org/mailman/listinfo/python-list

Re: People in the python community [was Re: Unicode issue with Python v3.3]

2013-04-10 Thread Peter Otten
Mark Lawrence wrote: > On 10/04/2013 09:34, Steven D'Aprano wrote: >> >> On that note, I think I'll take the opportunity to give thanks to Peter >> Otten, who (if I remember correctly) has been here for longer than I >> have, and I've been here for a long time. In all that time, I don't think >> I

Re: People in the python community [was Re: Unicode issue with Python v3.3]

2013-04-10 Thread Peter Otten
Steven D'Aprano wrote: > On Wed, 10 Apr 2013 08:28:55 +, Steven D'Aprano wrote: > >> If you want to be helpful, how about leading by example and taking on >> some of the less coherent newbie questions > [...] > > > On that note, I think I'll take the opportunity to give thanks to Peter > Ot

Re: People in the python community [was Re: Unicode issue with Python v3.3]

2013-04-10 Thread Νίκος Γκρ33κ
Thank you just altered it but i still get the same encoding issues. please its only a matter of simple alternation that iam not able to see. When you have the time plz take a look. Thank you! -- http://mail.python.org/mailman/listinfo/python-list

Re: People in the python community [was Re: Unicode issue with Python v3.3]

2013-04-10 Thread Νίκος Γκρ33κ
os.environ['HTTP_USER_AGENT'] is only set when running from browser. so i faked it by using: userinfo = os.environ.get('HTTP_USER_AGENT', 'some default') but the encoding issues are still there. -- http://mail.python.org/mailman/listinfo/python-list

Re: People in the python community [was Re: Unicode issue with Python v3.3]

2013-04-10 Thread Mark Lawrence
On 10/04/2013 09:34, Steven D'Aprano wrote: On that note, I think I'll take the opportunity to give thanks to Peter Otten, who (if I remember correctly) has been here for longer than I have, and I've been here for a long time. In all that time, I don't think I've ever seen him snap at or be rude

People in the python community [was Re: Unicode issue with Python v3.3]

2013-04-10 Thread Steven D'Aprano
On Wed, 10 Apr 2013 08:28:55 +, Steven D'Aprano wrote: > If you want to be helpful, how about leading by example and taking on > some of the less coherent newbie questions [...] On that note, I think I'll take the opportunity to give thanks to Peter Otten, who (if I remember correctly) has

Re: Unicode issue with Python v3.3

2013-04-10 Thread Steven D'Aprano
On Tue, 09 Apr 2013 23:04:35 -0700, rusi wrote: > Hmm I see some cut-paste goofup on my part. I was meaning to juxtapose > this thread where we put up with inordinate amount of nonsense from OP > along with the recent thread in which a newcomer who thinks he has found > a bug in pdb is made fun of

Re: Unicode issue with Python v3.3

2013-04-10 Thread Νίκος Γκρ33κ
Here is the whole code for metrites.py in case someone wants to take allok. Everything is correct after altering it to meet python 3.3, everythign aprt from the weird unicode error thing. http://pastebin.com/5Mpjx5Fd please take a look. Thank you. -- http://mail.python.org/mailman/listinfo/py

Re: Unicode issue with Python v3.3

2013-04-10 Thread nagia . retsina
Τη Τετάρτη, 10 Απριλίου 2013 7:25:21 π.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: > What does os.environ['REMOTE_ADDR'] give? Until you answer that question, > you won't make any progress. I insists stevv. Look at what 'python3 metrites.py' gives me -- http://mail.python.org/mailman/listi

Re: Unicode issue with Python v3.3

2013-04-10 Thread Antoine Pitrou
rusi gmail.com> writes: > > Hmm I see some cut-paste goofup on my part. > I was meaning to juxtapose this thread where we put up with inordinate > amount of nonsense from OP > along with the recent thread in which a newcomer who thinks he has > found a bug in pdb is made fun of. > > Then thought

Re: Unicode issue with Python v3.3

2013-04-09 Thread rusi
On Apr 10, 10:06 am, rusi wrote: > An interesting case of two threads: > > On Apr 10, 9:46 am, Chris Angelico wrote: > > > On Wed, Apr 10, 2013 at 2:25 PM, Steven D'Aprano > > > Obviously you know what the problem is much better than the Python > > > interpreter. > > > I just went to the page and

Re: Unicode issue with Python v3.3

2013-04-09 Thread rusi
An interesting case of two threads: On Apr 10, 9:46 am, Chris Angelico wrote: > On Wed, Apr 10, 2013 at 2:25 PM, Steven D'Aprano > > Obviously you know what the problem is much better than the Python > > interpreter. > > I just went to the page and it started playing sound. Between that and > th

Re: Unicode issue with Python v3.3

2013-04-09 Thread Chris Angelico
On Wed, Apr 10, 2013 at 2:25 PM, Steven D'Aprano wrote: > On Tue, 09 Apr 2013 20:16:12 -0700, nagia.retsina wrote: > >> Τη Τετάρτη, 10 Απριλίου 2013 12:34:25 π.μ. UTC+3, ο χρήστης Ian έγραψε: >>> On Tue, Apr 9, 2013 at 3:10 PM, Νίκος Γκρ33κ >>> wrote: >>> >>> > Hello, iam still trying to alter th

Re: Unicode issue with Python v3.3

2013-04-09 Thread Steven D'Aprano
On Tue, 09 Apr 2013 20:16:12 -0700, nagia.retsina wrote: > Τη Τετάρτη, 10 Απριλίου 2013 12:34:25 π.μ. UTC+3, ο χρήστης Ian έγραψε: >> On Tue, Apr 9, 2013 at 3:10 PM, Νίκος Γκρ33κ >> wrote: >> >> > Hello, iam still trying to alter the code form python 2.6 => 3.3 >> > >> > Everyrging its setup exc

Re: Unicode issue with Python v3.3

2013-04-09 Thread nagia . retsina
Τη Τετάρτη, 10 Απριλίου 2013 12:34:25 π.μ. UTC+3, ο χρήστης Ian έγραψε: > On Tue, Apr 9, 2013 at 3:10 PM, Νίκος Γκρ33κ wrote: > > > Hello, iam still trying to alter the code form python 2.6 => 3.3 > > > > > > Everyrging its setup except that unicode error that you can see if you go > > to http

Re: Unicode issue with Python v3.3

2013-04-09 Thread Ian Kelly
On Tue, Apr 9, 2013 at 3:10 PM, Νίκος Γκρ33κ wrote: > Hello, iam still trying to alter the code form python 2.6 => 3.3 > > Everyrging its setup except that unicode error that you can see if you go to > http://superhost.gr > > Can anyone help with this? > I even tried to change print() with sys.st

Unicode issue with Python v3.3

2013-04-09 Thread Νίκος Γκρ33κ
Hello, iam still trying to alter the code form python 2.6 => 3.3 Everyrging its setup except that unicode error that you can see if you go to http://superhost.gr Can anyone help with this? I even tried to change print() with sys.stdout.buffer() but still i get the same unicode issue. I don't k

Re: Facing issue with Python loggin logger for printing object value

2012-12-29 Thread Roy Smith
In article , Morten Engvoldsen wrote: > It is able to log the message with: > logger.debug("value of payment_line is " +repr(payment_line)) As a side note, a better way to write that is logger.debug("value of payment_line is %r", payment_line) The difference is that the first way, repr(paymen

Re: Facing issue with Python loggin logger for printing object value

2012-12-29 Thread Mitya Sirenef
On 12/29/2012 03:50 PM, Morten Engvoldsen wrote: Hi Dave, > It is able to log the message with: > logger.debug("value of payment_line is " +repr(payment_line)) > > The output is: > value of payment_line is [] > > So it means payment_line is an empty list, so may be it could be reason it's not a

Re: Facing issue with Python loggin logger for printing object value

2012-12-29 Thread Morten Engvoldsen
Hi Dave, It is able to log the message with: logger.debug("value of payment_line is " +repr(payment_line)) The output is: value of payment_line is [] So it means payment_line is an empty list, so may be it could be reason it's not able to enter into the loop since the message in the for loop is n

Re: Facing issue with Python loggin logger for printing object value

2012-12-29 Thread Morten Engvoldsen
Hi Dev, Thanks a lot Dev for your reply. It is really a great help. Yes i have fixed what was wrong in the create method like log.debug. I have declared line_counter=1 before the for loop. i will try now to chcek the value of payment_line. Thanks again a lot. I am greateful be a member of this f

Re: Facing issue with Python loggin logger for printing object value

2012-12-29 Thread Dave Angel
On 12/29/2012 11:54 AM, Morten Engvoldsen wrote: > Hi Dave, > Thanks a lot for your reply. I have used logging.setLevel(logger.DEBUG) > because of threshold as you said. > > I didn't copy paste the entire program since it was very huge. The "batch " > which value i am trying to retrieve is in a a

Re: Facing issue with Python loggin logger for printing object value

2012-12-29 Thread Chris Angelico
On Sun, Dec 30, 2012 at 3:54 AM, Morten Engvoldsen wrote: > but here payment_line has null value since it was not able to retrieve > payment line value from the payment object. Specifically what value? Is it an empty string? An empty list? The singleton None? ChrisA -- http://mail.python.org/ma

Re: Facing issue with Python loggin logger for printing object value

2012-12-29 Thread Morten Engvoldsen
Hi Dave, Thanks a lot for your reply. I have used logging.setLevel(logger.DEBUG) because of threshold as you said. I didn't copy paste the entire program since it was very huge. The "batch " which value i am trying to retrieve is in a a for loop : for payment in payment_line: but here payment_li

Re: Facing issue with Python loggin logger for printing object value

2012-12-29 Thread Dave Angel
On 12/29/2012 07:39 AM, Morten Engvoldsen wrote: > Hi Dave, > Thanks for reply. I will really appreciate if you reply to my mail id and > keep python list in cc, since everytime you reply my query i need to search > the reply in the forwarding message of python list. I won't be able to remember to

Re: Facing issue with Python loggin logger for printing object value

2012-12-29 Thread Chris Angelico
On Sat, Dec 29, 2012 at 11:39 PM, Morten Engvoldsen wrote: > Hi Dave, > Thanks for reply. I will really appreciate if you reply to my mail id and > keep python list in cc, since everytime you reply my query i need to search > the reply in the forwarding message of python list. The normal thing to

Re: Facing issue with Python loggin logger for printing object value

2012-12-29 Thread Morten Engvoldsen
Hi Dave, Thanks for reply. I will really appreciate if you reply to my mail id and keep python list in cc, since everytime you reply my query i need to search the reply in the forwarding message of python list. Using logger.setLevel(logging.DEBUG) will log only debug message in the log file and di

Re: Facing issue with Python loggin logger for printing object value

2012-12-28 Thread Dave Angel
On 12/28/2012 09:27 AM, Morten Engvoldsen wrote: > Hi Team, > i am new to python and i am using python loggin for log the value of the > object. Below is my code : > > class field: > field_name = "" > length = 0 > type = 0 > value = "" > > def __init__(self, field_name, length,

Re: Facing issue with Python loggin logger for printing object value

2012-12-28 Thread Dave Angel
On 12/28/2012 09:27 AM, Morten Engvoldsen wrote: > Hi Team, > i am new to python Welcome. > and i am using python loggin for log the value of the > object. Below is my code : > > class field: > field_name = "" > length = 0 > type = 0 > value = "" > > def __init__(self, field_

Facing issue with Python loggin logger for printing object value

2012-12-28 Thread Morten Engvoldsen
Hi Team, i am new to python and i am using python loggin for log the value of the object. Below is my code : class field: field_name = "" length = 0 type = 0 value = "" def __init__(self, field_name, length, type, value): self.field_name = field_name self.lengt

  1   2   >