Re: Errors and some bugs

2021-08-09 Thread dn via Python-list
On 09/08/2021 15.12, Himanshu Gupta wrote: > While running some pip command to install spacy package for ver3.9 I always > face trouble can you provide a solution The short answer is "yes", but what is the problem? Please copy-paste the install command and the (full) error message, from the termi

Re: Errors in python\3.8.3\Lib\nntplib.py

2020-04-29 Thread G Connor
On 4/29/2020 5:29 PM, Chris Angelico wrote: > Try opening the file in binary mode instead. Changed: f = open(postfile,'r')to : f = open(postfile,'rb') and it worked. Thanks man! -- https://mail.python.org/mailman/listinfo/python-list

Re: Errors in python\3.8.3\Lib\nntplib.py

2020-04-29 Thread Chris Angelico
On Thu, Apr 30, 2020 at 7:18 AM G Connor wrote: > > module: python\3.8.2\Lib\nntplib.py > lines 903-907 > --- > for line in f: > if not line.endswith(_CRLF): > line = line.rstrip(b"\r\n") + _CRLF > if line.startswith(b'.'): > line = b

Re: Re: errors with json.loads

2017-09-21 Thread john polo
On 9/21/2017 10:11 AM, Ned Batchelder wrote: I can only assume that the actual data being read is different than the data they put into the message here. --Ned. There was a typo in the file that I had made and saved; an extra comma before one of the ":". Apologies to the list for not catchi

Re: errors with json.loads

2017-09-21 Thread Ned Batchelder
On 9/21/17 12:18 PM, john polo wrote: Bill, Thanks for the reply. I wasn't sure how to get Python 2 through the cmd or IPython, so I went through ArcGIS, but it's mostly the same result: >>> file = open('books.json','r') >>> text = file.read() >>> text = json.loads(text) After the file.read

Re: Re: errors with json.loads

2017-09-21 Thread john polo
On 9/21/2017 4:24 AM, Thomas Jollans wrote: It looks to me like the root cause of the problem was that they copied the code from a web page, and the web page contained invalid JSON. Thank you, Thomas. John -- https://mail.python.org/mailman/listinfo/python-list

Re: Re: errors with json.loads

2017-09-21 Thread john polo
On 9/20/2017 6:40 PM, Dennis Lee Bieber wrote: On Wed, 20 Sep 2017 17:13:41 -0500, john polo declaimed the following: and the example code for reading the file is: file = open('books.json','r') What encoding is the file? I did a cut&paste from your post into a file, and the content

Re: Re: errors with json.loads

2017-09-21 Thread john polo
On 9/20/2017 5:58 PM, Bill wrote: Interesting problem, John. I have probably even less experience with json than you do, so I'm taking this as an opportunity to learn with you. Suggestions: 1. Try your example with Python 2 rather than Python 3. Bill, Thanks for the reply. I wasn't sure how

Re: Re: errors with json.loads

2017-09-21 Thread john polo
On 9/20/2017 5:56 PM, John Gordon wrote: In john polo writes: JSONDecodeError: Expecting ':' delimiter: line 5 column 50 (char 161) ?json.loads says that the method is for deserializing "s", with "s" being a string, bytes, or bytearray. In [24]: type(text) Out[24]: str So "text" seems to be

Re: errors with json.loads

2017-09-21 Thread Ned Batchelder
On 9/20/17 10:35 PM, Bill wrote: Ned Batchelder wrote: On 9/20/17 8:22 PM, Bill wrote: Apparenty an \xa0 byte corresponds to a "non-breaking space". What sort of white space characters are allowed in a json file ( tabs and newlines?)?  Just curious. These things can be looked up.  From RFC

Re: errors with json.loads

2017-09-21 Thread Thomas Jollans
On 2017-09-21 04:35, Bill wrote: > Ned Batchelder wrote: >> >> On 9/20/17 8:22 PM, Bill wrote: >>> Apparenty an \xa0 byte corresponds to a "non-breaking space". What >>> sort of white space characters are allowed in a json file ( tabs and >>> newlines?)?  Just curious. >> >> These things can be lo

Re: errors with json.loads

2017-09-20 Thread Bill
Ned Batchelder wrote: On 9/20/17 8:22 PM, Bill wrote: Apparenty an \xa0 byte corresponds to a "non-breaking space". What sort of white space characters are allowed in a json file ( tabs and newlines?)? Just curious. These things can be looked up. From RFC 7159 (https://tools.ietf.org/htm

Re: errors with json.loads

2017-09-20 Thread Christopher Reimer
> On Sep 20, 2017, at 5:03 PM, Stefan Ram wrote: > > Dennis Lee Bieber writes: >> After removing all the \xa0 bytes >> and trying to decode it I get... > > I did the same here, before I read your post. > I got the same results, but did not post them. > > Someone has posted programs with \xA

Re: errors with json.loads

2017-09-20 Thread Ned Batchelder
On 9/20/17 8:22 PM, Bill wrote: Apparenty an \xa0 byte corresponds to a "non-breaking space". What sort of white space characters are allowed in a json file ( tabs and newlines?)?  Just curious. These things can be looked up.  From RFC 7159 (https://tools.ietf.org/html/rfc7159): Insign

Re: errors with json.loads

2017-09-20 Thread Bill
Stefan Ram wrote: Dennis Lee Bieber writes: After removing all the \xa0 bytes and trying to decode it I get... Apparenty an \xa0 byte corresponds to a "non-breaking space". What sort of white space characters are allowed in a json file ( tabs and newlines?)? Just curious. Bill I did

Re: errors with json.loads

2017-09-20 Thread Bill
john polo wrote: Greetings, I am using IPython 6.1.0 with Python 3.6.2 on a Windows 7 machine. I am not a programmer. I am using a book called Python Data Analytics to try to learn some of Python. I am at a section for reading and writing JSON data. The example JSON file is: Listing 5-13.

Re: errors with json.loads

2017-09-20 Thread John Gordon
In john polo writes: > JSONDecodeError: Expecting ':' delimiter: line 5 column 50 (char 161) > ?json.loads says that the method is for deserializing "s", with "s" > being a string, bytes, or bytearray. > In [24]: type(text) > Out[24]: str > So "text" seems to be a string. Why does json.load

Re: errors with json.loads

2017-09-20 Thread Bill
Interesting problem, John. I have probably even less experience with json than you do, so I'm taking this as an opportunity to learn with you. Suggestions: 1. Try your example with Python 2 rather than Python 3. 2. Take your file and make it into a string literal in your program, and try cal

Re: Errors in installation of matplotlib and pandas on Macbook

2016-06-30 Thread tommy yama
Hi there, Why you would not use pip and anaconda for panda installation? It seems much easier to do the same. https://www.continuum.io/downloads#_macosx *Tomomi

Re: Errors in installation of matplotlib and pandas on Macbook

2016-06-30 Thread Chris Angelico
On Thu, Jun 30, 2016 at 4:21 PM, Madhavan Bomidi wrote: > How should I modify the profile/configuration of locale permanently? Is it > possible to do this on terminal other than using 'export' command always and > including the commands in .bash_profile? > > How does this locale configuration af

Re: Errors in installation of matplotlib and pandas on Macbook

2016-06-29 Thread Madhavan Bomidi
Hello ChrisA, Thanks for your suggestion. I have typed the following on Terminal: $ locale LANG= LC_COLLATE="C" LC_CTYPE="C" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL="C" How should I modify the profile/configuration of locale permanently? Is it possible to do this on te

Re: Errors in installation of matplotlib and pandas on Macbook

2016-06-29 Thread Chris Angelico
On Thu, Jun 30, 2016 at 3:54 PM, Madhavan Bomidi wrote: > > Thanks for your suggestion. My script works fine when I run the command > 'export LC_ALL=en_AU.utf8' before starting python. > > I am from India and using US English and international keyboard. I also tried > using the command 'export L

Re: Errors in installation of matplotlib and pandas on Macbook

2016-06-29 Thread Madhavan Bomidi
Hello ChrisA, Thanks for your suggestion. My script works fine when I run the command 'export LC_ALL=en_AU.utf8' before starting python. I am from India and using US English and international keyboard. I also tried using the command 'export LC_ALL=en_USA.utf8' and the python script works fine.

Re: Errors in installation of matplotlib and pandas on Macbook

2016-06-29 Thread Chris Angelico
On Thu, Jun 30, 2016 at 1:51 PM, Madhavan Bomidi wrote: > File > "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", > line 475, in _parse_localename > raise ValueError, 'unknown locale: %s' % localename > ValueError: unknown locale: UTF-8 T

Re: Errors in installation of matplotlib and pandas on Macbook

2016-06-29 Thread Madhavan Bomidi
Can you please suggest me what I shall do to make sure all the libraries that I have indicated above work in python? I don't know how I can get back to obsolete version of Python. Please suggest me the commands or references of previous posts, if any. Thanks and regards, Madhavan -- https://m

Re: Errors in installation of matplotlib and pandas on Macbook

2016-06-29 Thread Lawrence D’Oliveiro
On Thursday, June 30, 2016 at 3:51:56 PM UTC+12, Madhavan Bomidi wrote: > Bomidis-MacBook-Pro:~ madhavan$ which python > /usr/local/bin/python Apple already includes a(n obsolete) version of Python with its OS. Trying to override this with a newer version could easily lead to conflicts. -- http

Re: Errors installing xmiparser with Python 3.4 and windows - any help?

2015-10-10 Thread Gary Hanyzewski
Laura, Thanks for the pointer to PyXB, I think this will work for my purposes and it appears to be Python 3.4 / Windows compatible. Thank you to all who helped. On Friday, October 9, 2015 at 1:14:32 PM UTC-5, Laura Creighton wrote: > In a message of Fri, 09 Oct 2015 10:24:34 -0700, Gary Hanyze

Re: Errors installing xmiparser with Python 3.4 and windows - any help?

2015-10-09 Thread Mark Lawrence
On 09/10/2015 18:24, Gary Hanyzewski wrote: I am trying to install xmiparser-1.5.dev-r124826 into python 3.4.0 on a windows machine. When I try and install (either with pip or setup.py install) I get a number of syntax errors in the code ( below) Has anyone managed to install and use the xmipa

Re: Errors installing xmiparser with Python 3.4 and windows - any help?

2015-10-09 Thread Zachary Ware
On Fri, Oct 9, 2015 at 12:47 PM, Laura Creighton wrote: > In a message of Fri, 09 Oct 2015 10:24:34 -0700, Gary Hanyzewski writes: >>I am trying to install xmiparser-1.5.dev-r124826 into python 3.4.0 on a >>windows machine. >>When I try and install (either with pip or setup.py install) I get a nu

Re: Errors installing xmiparser with Python 3.4 and windows - any help?

2015-10-09 Thread Laura Creighton
In a message of Fri, 09 Oct 2015 10:24:34 -0700, Gary Hanyzewski writes: >I am trying to install xmiparser-1.5.dev-r124826 into python 3.4.0 on a >windows machine. >When I try and install (either with pip or setup.py install) I get a number of >syntax errors in the code ( below) > >Has anyone ma

Re: Errors installing xmiparser with Python 3.4 and windows - any help?

2015-10-09 Thread Laura Creighton
In a message of Fri, 09 Oct 2015 10:24:34 -0700, Gary Hanyzewski writes: >I am trying to install xmiparser-1.5.dev-r124826 into python 3.4.0 on a >windows machine. >When I try and install (either with pip or setup.py install) I get a number of >syntax errors in the code ( below) > >Has anyone ma

Re: Errors on text.get()

2014-03-26 Thread eneskristo
On Tuesday, March 25, 2014 2:15:11 PM UTC-7, enesk...@gmail.com wrote: > Exception in Tkinter callback > > Traceback (most recent call last): > > File "C:\Python33\lib\tkinter\__init__.py", line 1475, in __call__ > > return self.func(*args) > > File "C:/Users/User/PycharmProjects/Cesari

Re: Errors on text.get()

2014-03-25 Thread Peter Otten
eneskri...@gmail.com wrote: > Exception in Tkinter callback > Traceback (most recent call last): > File "C:\Python33\lib\tkinter\__init__.py", line 1475, in __call__ > return self.func(*args) > File "C:/Users/User/PycharmProjects/Cesarian Codes/project.py", line 43, > in gen_random >

Re: errors building python 2.7.3

2012-03-30 Thread Alexey Luchko
On 29.03.2012 21:29, David Robinow wrote: Have you included the patch to Include/py_curses.h ? If you don't know what that is, download the cygwin src package for Python-2.6 and look at the patches. Not all of them are still Thanks for the hint. With cygwin's 2.6.5-ncurses-abi6.patch it wor

Re: errors building python 2.7.3

2012-03-29 Thread David Robinow
On Thu, Mar 29, 2012 at 6:55 AM, Alexey Luchko wrote: > On 28.03.2012 18:42, David Robinow wrote: >> On Wed, Mar 28, 2012 at 7:50 AM, Alexey Luchko  wrote: >>> I've tried to build Python 2.7.3rc2 on cygwin and got the following >>> errors: >>> >>> $ CFLAGS=-I/usr/include/ncursesw/ CPPFLAGS=-I/usr/

Re: errors building python 2.7.3

2012-03-29 Thread Alexey Luchko
On 28.03.2012 18:42, David Robinow wrote: > On Wed, Mar 28, 2012 at 7:50 AM, Alexey Luchko wrote: >> I've tried to build Python 2.7.3rc2 on cygwin and got the following errors: >> >> $ CFLAGS=-I/usr/include/ncursesw/ CPPFLAGS=-I/usr/include/ncursesw/ >> ./configure > I haven't tried 2.7.3 yet,

Re: errors building python 2.7.3

2012-03-29 Thread Alexey Luchko
JFI Reported as http://bugs.python.org/issue14437 http://bugs.python.org/issue14438 -- Regars, Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: errors building python 2.7.3

2012-03-28 Thread David Robinow
On Wed, Mar 28, 2012 at 7:50 AM, Alexey Luchko wrote: > I've tried to build Python 2.7.3rc2 on cygwin and got the following errors: > > $ CFLAGS=-I/usr/include/ncursesw/ CPPFLAGS=-I/usr/include/ncursesw/ > ./configure I haven't tried 2.7.3 yet, so I'll describe my experience with 2.7.2 I use /us

Re: errors building python 2.7.3

2012-03-28 Thread Colton Myers
> > Reporting here, because bugs.python.org refuses connections currently. > bugs.python.org seems to be back up, I'd repost there if you haven't already. -- Colton Myers -- http://mail.python.org/mailman/listinfo/python-list

Re: errors building python 2.7.3

2012-03-28 Thread Alexey Luchko
On 28.03.2012 14:50, Alexey Luchko wrote: Hi! I've tried to build Python 2.7.3rc2 on cygwin and got the following errors: $ CFLAGS=-I/usr/include/ncursesw/ CPPFLAGS=-I/usr/include/ncursesw/ ./configure $ make ... gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin-1.7.11-i686-2.7/Python-

Re: Errors installing mod_python with apache

2011-12-27 Thread Mark Seger
I did try yum and got this: [root@rhel53 tmp]# yum install mod_python Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled. Setting up Install Process Parsing package install arguments No package mod_python available. Nothing to do after further

Re: Errors installing mod_python with apache

2011-12-27 Thread Rami Chowdhury
On Tue, Dec 27, 2011 at 13:32, Mark Seger wrote: > I've tried this on both RHEL5.5 and RHEL 6.0, using the default apache that > comes with the environment and itself isn't configured with mod_python. > > The first thing I noticed when mod_python wouldn't install was that apsx > wasn't installed e

Re: Errors while using strip and remove on a variable.

2011-02-03 Thread Stephen Hansen
On 2/3/11 7:21 AM, anand jeyahar wrote: > Hi, > I am trying to strip a string and then remove on the resulting list > to remove a set of characters. It works fine with the python shell. > > But after remove the list becomes None, when i am running it from within > a script. > > I am guessing

Re: Errors while using strip and remove on a variable.

2011-02-03 Thread Gary Herron
On 02/03/2011 07:21 AM, anand jeyahar wrote: Hi, I am trying to strip a string and then remove on the resulting list to remove a set of characters. It works fine with the python shell. But after remove the list becomes None, when i am running it from within a script. I am guessing it ha

Re: Errors while using strip and remove on a variable.

2011-02-03 Thread Benjamin Kaplan
On Thu, Feb 3, 2011 at 10:21 AM, anand jeyahar wrote: > Hi, >     I am trying to strip a string and then remove on the resulting list to > remove a set of characters. It works fine with the python shell. > > But after remove the list becomes None, when i am running it from within a > script. > > I

Re: Errors with PyPdf

2010-09-27 Thread flebber
On Sep 27, 2:46 pm, Dave Angel wrote: > On 2:59 PM, flebber wrote: > > > > > Traceback (most recent call last): > >    File "C:/Python26/Pdfread", line 16, in > >      open('x.txt', 'w').write(content) > > NameError: name 'content' is not defined > > When i use. > > > import pyPdf > > > def getPD

Re: Errors with PyPdf

2010-09-26 Thread Dave Angel
On 2:59 PM, flebber wrote: Traceback (most recent call last): File "C:/Python26/Pdfread", line 16, in open('x.txt', 'w').write(content) NameError: name 'content' is not defined When i use. import pyPdf def getPDFContent(path): content =C:\Components-of-Dot-NET.txt" # Load P

Re: Errors with PyPdf

2010-09-26 Thread Tim Roberts
flebber wrote: > >okay thanks I thought that when I set content here > >def getPDFContent(path): >content = "C:\Components-of-Dot-NET.pdf" You have a backslash problem here. You need need to say: content = "C:\\Components-of-Dot-NET.pdf" or content = "C:/Components-of-Dot-NET.pdf" or

Re: Errors with PyPdf

2010-09-26 Thread flebber
On Sep 27, 12:49 pm, MRAB wrote: > On 27/09/2010 01:39, flebber wrote: > > > > > On Sep 27, 9:38 am, "w.g.sned...@gmail.com" > > wrote: > >> On Sep 26, 7:10 pm, flebber  wrote: > > >>> I was trying to use Pypdf following a recipe from the Activestate > >>> cookbooks. However I cannot get it too wo

Re: Errors with PyPdf

2010-09-26 Thread MRAB
On 27/09/2010 01:39, flebber wrote: On Sep 27, 9:38 am, "w.g.sned...@gmail.com" wrote: On Sep 26, 7:10 pm, flebber wrote: I was trying to use Pypdf following a recipe from the Activestate cookbooks. However I cannot get it too work. Unsure if it is me or it is beacuse sets are deprecated.

Re: Errors with PyPdf

2010-09-26 Thread flebber
On Sep 27, 12:08 pm, flebber wrote: > On Sep 27, 10:39 am, flebber wrote: > > > > > On Sep 27, 9:38 am, "w.g.sned...@gmail.com" > > wrote: > > > > On Sep 26, 7:10 pm, flebber wrote: > > > > > I was trying to use Pypdf following a recipe from the Activestate > > > > cookbooks. However I cannot g

Re: Errors with PyPdf

2010-09-26 Thread flebber
On Sep 27, 10:39 am, flebber wrote: > On Sep 27, 9:38 am, "w.g.sned...@gmail.com" > wrote: > > > > > On Sep 26, 7:10 pm, flebber wrote: > > > > I was trying to use Pypdf following a recipe from the Activestate > > > cookbooks. However I cannot get it too work. Unsure if it is me or it > > > is b

Re: Errors with PyPdf

2010-09-26 Thread flebber
On Sep 27, 9:38 am, "w.g.sned...@gmail.com" wrote: > On Sep 26, 7:10 pm, flebber wrote: > > > I was trying to use Pypdf following a recipe from the Activestate > > cookbooks. However I cannot get it too work. Unsure if it is me or it > > is beacuse sets are deprecated. > > > I have placed a pdf i

Re: Errors with PyPdf

2010-09-26 Thread w.g.sned...@gmail.com
On Sep 26, 7:10 pm, flebber wrote: > I was trying to use Pypdf following a recipe from the Activestate > cookbooks. However I cannot get it too work. Unsure if it is me or it > is beacuse sets are deprecated. > > I have placed a pdf in my C:\ drive. it is called "Components-of-Dot- > NET.pdf" You

Re: Errors with PyPdf

2010-09-26 Thread MRAB
On 27/09/2010 00:10, flebber wrote: I was trying to use Pypdf following a recipe from the Activestate cookbooks. However I cannot get it too work. Unsure if it is me or it is beacuse sets are deprecated. The 'sets' module pre-dates the built-in 'set' class. The warning is just to inform you tha

Re: errors and exception

2010-08-16 Thread Chris Rebert
On Mon, Aug 16, 2010 at 12:29 AM, Gary Herron wrote: > On 08/16/2010 12:06 AM, Alan wrote: >> Hello, >> I am using things like: >> with open("myfile.txt") as f: >> for line in f: >> print line > > You don't need the new fangled with statement if you want to be compatible > with older

Re: errors and exception

2010-08-16 Thread Daniel Urban
> f = open("myfile.txt") > for line in f: >   print line > f.close()   # This is what the "with" statement guarantees; so now just do > it yourself Not exactly. More like: f = open("myfile.txt") try: for line in f: print line finally: f.close() Daniel -- http://mail.python.org/

Re: errors and exception

2010-08-16 Thread Gary Herron
On 08/16/2010 12:06 AM, Alan wrote: Hello, I am using things like: except Exception as inst: and The old syntax for exceptions still works in Python2.x (all versions). The new syntax works in Python2.6+ and Python3. try: whatever except Exception,msg: # Old syntax

Re: errors while building a program with Python

2007-10-21 Thread jeffstatin
On Oct 21, 1:31 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sun, 21 Oct 2007 13:52:43 -0300, <[EMAIL PROTECTED]> escribi?: > > > I'm trying to build a program (MixMinion) with Python 2.5.1, MSVS 2003 > > SP1 and Windows XP Home SP2 but I'm getting a couple of errors. > > > Here are the

Re: errors while building a program with Python

2007-10-21 Thread Gabriel Genellina
En Sun, 21 Oct 2007 13:52:43 -0300, <[EMAIL PROTECTED]> escribi�: > I'm trying to build a program (MixMinion) with Python 2.5.1, MSVS 2003 > SP1 and Windows XP Home SP2 but I'm getting a couple of errors. > > Here are the two errors I am getting: > (1) .\contrib\OpenSSL\lib\Builder5\ssleay32.lib :

Re: Errors testing m2crypto

2005-12-16 Thread Heikki Toivonen
morphex wrote: > I get the following messages running the testall.py script with > m2crypto 0.13, can anyone tell me what's wrong? Those happened either because of SWIG or OpenSSL incompatibility. They have been fixed since. Either get the latest release (0.15) or the fresh bits from Subversion. T

RE: errors

2005-02-03 Thread Joel Eusebio
Tried looking for the misspelled oldmtime on apache.py but can't find it. Joel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kartic Sent: Thursday, February 03, 2005 4:00 AM To: python-list@python.org Subject: Re: errors Joel Eusebio sai

Re: errors

2005-02-03 Thread Kartic
Joel Eusebio said the following on 2/2/2005 4:53 PM: Can someone help me on this, I don' know where the "testmptest" came from but the mptest.py is at the /usr/local/apache2/htdocs/test directory and this error came from apache's error_log PythonHandler mod_python.publisher: ImportError: No module