You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Ahmet Arslan <io...@yahoo.com.INVALID> on 2015/09/23 19:06:50 UTC
checkJavadocLinks.py fails with Python 3.5.0
Hi,
In effort to run "ant precommit" I have installed Python 3.5.0.
However, it fails with the following :
[exec] File "/Volumes/data/workspace/solr-trunk/dev-tools/scripts/checkJavadocLinks.py", line 20, in <module>
[exec] from html.parser import HTMLParser, HTMLParseError
[exec] ImportError: cannot import name 'HTMLParseError'
Python 3.5.0 (v3.5.0:374f501f4567, Sep 12 2015, 11:00:19)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
I tried to solve this by myself, found something like :
"HTMLParserError have been removed from python3.5"
Any suggestions given that i am python ignorant?
Thanks,
Ahmet
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: checkJavadocLinks.py fails with Python 3.5.0
Posted by Michael McCandless <lu...@mikemccandless.com>.
You're welcome!
Mike McCandless
http://blog.mikemccandless.com
On Wed, Sep 23, 2015 at 4:33 PM, Ahmet Arslan <io...@yahoo.com.invalid> wrote:
> Thanks Mike, its working now.
>
> Ahmet
>
>
>
> On Wednesday, September 23, 2015 10:10 PM, Michael McCandless <lu...@mikemccandless.com> wrote:
> Looks like you can't be strict when parsing HTML anymore in Python3.5:
> http://bugs.python.org/issue15114
>
> I'll fix checkJavadocLinks...
>
> Mike McCandless
>
> http://blog.mikemccandless.com
>
>
> On Wed, Sep 23, 2015 at 2:58 PM, Alan Woodward <al...@flax.co.uk> wrote:
>> I hit this a couple of weeks back, when homebrew automatically upgraded me
>> to python 3.5. I have a separate python 3.2 installation, and added this
>> line to ~/build.properties:
>>
>> python32.exe=/path/to/python3.2
>>
>> Alan Woodward
>> www.flax.co.uk
>>
>>
>> On 23 Sep 2015, at 18:06, Ahmet Arslan wrote:
>>
>> Hi,
>>
>> In effort to run "ant precommit" I have installed Python 3.5.0.
>> However, it fails with the following :
>>
>> [exec] File
>> "/Volumes/data/workspace/solr-trunk/dev-tools/scripts/checkJavadocLinks.py",
>> line 20, in <module>
>> [exec] from html.parser import HTMLParser, HTMLParseError
>> [exec] ImportError: cannot import name 'HTMLParseError'
>>
>>
>> Python 3.5.0 (v3.5.0:374f501f4567, Sep 12 2015, 11:00:19)
>> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
>>
>> I tried to solve this by myself, found something like :
>> "HTMLParserError have been removed from python3.5"
>>
>> Any suggestions given that i am python ignorant?
>>
>> Thanks,
>> Ahmet
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: checkJavadocLinks.py fails with Python 3.5.0
Posted by Ahmet Arslan <io...@yahoo.com.INVALID>.
Thanks Mike, its working now.
Ahmet
On Wednesday, September 23, 2015 10:10 PM, Michael McCandless <lu...@mikemccandless.com> wrote:
Looks like you can't be strict when parsing HTML anymore in Python3.5:
http://bugs.python.org/issue15114
I'll fix checkJavadocLinks...
Mike McCandless
http://blog.mikemccandless.com
On Wed, Sep 23, 2015 at 2:58 PM, Alan Woodward <al...@flax.co.uk> wrote:
> I hit this a couple of weeks back, when homebrew automatically upgraded me
> to python 3.5. I have a separate python 3.2 installation, and added this
> line to ~/build.properties:
>
> python32.exe=/path/to/python3.2
>
> Alan Woodward
> www.flax.co.uk
>
>
> On 23 Sep 2015, at 18:06, Ahmet Arslan wrote:
>
> Hi,
>
> In effort to run "ant precommit" I have installed Python 3.5.0.
> However, it fails with the following :
>
> [exec] File
> "/Volumes/data/workspace/solr-trunk/dev-tools/scripts/checkJavadocLinks.py",
> line 20, in <module>
> [exec] from html.parser import HTMLParser, HTMLParseError
> [exec] ImportError: cannot import name 'HTMLParseError'
>
>
> Python 3.5.0 (v3.5.0:374f501f4567, Sep 12 2015, 11:00:19)
> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
>
> I tried to solve this by myself, found something like :
> "HTMLParserError have been removed from python3.5"
>
> Any suggestions given that i am python ignorant?
>
> Thanks,
> Ahmet
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: checkJavadocLinks.py fails with Python 3.5.0
Posted by Michael McCandless <lu...@mikemccandless.com>.
Looks like you can't be strict when parsing HTML anymore in Python3.5:
http://bugs.python.org/issue15114
I'll fix checkJavadocLinks...
Mike McCandless
http://blog.mikemccandless.com
On Wed, Sep 23, 2015 at 2:58 PM, Alan Woodward <al...@flax.co.uk> wrote:
> I hit this a couple of weeks back, when homebrew automatically upgraded me
> to python 3.5. I have a separate python 3.2 installation, and added this
> line to ~/build.properties:
>
> python32.exe=/path/to/python3.2
>
> Alan Woodward
> www.flax.co.uk
>
>
> On 23 Sep 2015, at 18:06, Ahmet Arslan wrote:
>
> Hi,
>
> In effort to run "ant precommit" I have installed Python 3.5.0.
> However, it fails with the following :
>
> [exec] File
> "/Volumes/data/workspace/solr-trunk/dev-tools/scripts/checkJavadocLinks.py",
> line 20, in <module>
> [exec] from html.parser import HTMLParser, HTMLParseError
> [exec] ImportError: cannot import name 'HTMLParseError'
>
>
> Python 3.5.0 (v3.5.0:374f501f4567, Sep 12 2015, 11:00:19)
> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
>
> I tried to solve this by myself, found something like :
> "HTMLParserError have been removed from python3.5"
>
> Any suggestions given that i am python ignorant?
>
> Thanks,
> Ahmet
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: checkJavadocLinks.py fails with Python 3.5.0
Posted by Alan Woodward <al...@flax.co.uk>.
I hit this a couple of weeks back, when homebrew automatically upgraded me to python 3.5. I have a separate python 3.2 installation, and added this line to ~/build.properties:
python32.exe=/path/to/python3.2
Alan Woodward
www.flax.co.uk
On 23 Sep 2015, at 18:06, Ahmet Arslan wrote:
> Hi,
>
> In effort to run "ant precommit" I have installed Python 3.5.0.
> However, it fails with the following :
>
> [exec] File "/Volumes/data/workspace/solr-trunk/dev-tools/scripts/checkJavadocLinks.py", line 20, in <module>
> [exec] from html.parser import HTMLParser, HTMLParseError
> [exec] ImportError: cannot import name 'HTMLParseError'
>
>
> Python 3.5.0 (v3.5.0:374f501f4567, Sep 12 2015, 11:00:19)
> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
>
> I tried to solve this by myself, found something like :
> "HTMLParserError have been removed from python3.5"
>
> Any suggestions given that i am python ignorant?
>
> Thanks,
> Ahmet
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>