UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2092: ordinal not in range(128) Complete output from command python setup.py egg_info:
Groupstheano-usersConversationsAboutpython3setupunicodeerror449viewsSkiptofirstunreadmessageLeeZamparounread,Sep13,2014,3:52:08AM9/13/14ReplytoauthorSignintoreplytoauthorForwardSignintoforwardDeleteYoudonothavepermissiontodeletemessagesinthisgroupLinkReportmessageasabuseSignintoreportmessageasabuseShoworiginalmessageEitheremailaddressesareanonymousforthisgrouporyouneedtheviewmemberemailaddressespermissiontoviewtheoriginalmessagetotheano...@googlegroups.comHifolks,I'vetriedtoinstallTheanounderpython3.3.4,andgetthefollowingerror:gpc-f102n084-ib0-$pipinstall--install-option="--prefix=${HOME}"--no-depsgit+git://github.com/Theano/Theano.git--userDownloading/unpackinggit+git://github.com/Theano/Theano.git Cloninggit://github.com/Theano/Theano.gitto/tmp/pip-_i5x5v-build Runningsetup.py(path:/tmp/pip-_i5x5v-build/setup.py)egg_infoforpackagefromgit+git://github.com/Theano/Theano.git Traceback(mostrecentcalllast): File"",line17,in File"/tmp/pip-_i5x5v-build/setup.py",line58,in open("NEWS.txt").read()) File"/scinet/gpc/tools/Python/Python334-shared-intel/lib/python3.3/encodings/ascii.py",line26,indecode returncodecs.ascii_decode(input,self.errors)[0] UnicodeDecodeError:'ascii'codeccan'tdecodebyte0xc3inposition2092:ordinalnotinrange(128) Completeoutputfromcommandpythonsetup.pyegg_info: Traceback(mostrecentcalllast): File"",line17,in File"/tmp/pip-_i5x5v-build/setup.py",line58,in open("NEWS.txt").read()) File"/scinet/gpc/tools/Python/Python334-shared-intel/lib/python3.3/encodings/ascii.py",line26,indecode returncodecs.ascii_decode(input,self.errors)[0]UnicodeDecodeError:'ascii'codeccan'tdecodebyte0xc3inposition2092:ordinalnotinrange(128)----------------------------------------Cleaningup...Commandpythonsetup.pyegg_infofailedwitherrorcode1in/tmp/pip-_i5x5v-buildStoringdebuglogforfailurein/home/z/zhaolei/lzamparo/.pip/pip.logThesameerroroccurswhenItrytoinstallthelatestversionviapipwith: pipinstall--install-option="--prefix=${HOME}"--no-depsTheanoThenoteintheinstructionsforinstallingthebleeding-edgeversionstate"doesnotworkonPython3asitdoesnotcalltheconverterfromPython2codetoPython3code" SoarethereinstructionsforinstallinginPython3? I'mlookinginto2to3portingnow,butI'llstillpostthisinthehopethatthisproblemhasalreadybeenovercomebysomeoneonthelist.Thanks,Lee.FrédéricBastienunread,Sep13,2014,4:28:27AM9/13/14ReplytoauthorSignintoreplytoauthorForwardSignintoforwardDeleteYoudonothavepermissiontodeletemessagesinthisgroupLinkReportmessageasabuseSignintoreportmessageasabuseShoworiginalmessageEitheremailaddressesareanonymousforthisgrouporyouneedtheviewmemberemailaddressespermissiontoviewtheoriginalmessagetotheano-usersHi,python3supporthadsomeproblemswiththeTheanorelease0.6.SoIwouldsuggesttousethedevelopmentversion.Personnaly,Idoacheckout,theninstallwithwith"python3setup.pyOPTIONS_I_NEED".Canyoutrythisandtellifitwork?Thenoteisspecificto"pythonsetup.pydevelop".Ifyoudo"pythonsetup.pybuild"or"pythonsetup.pyinstall",2to3iscalled.FredThesetup.pyfilenowcall2to3automatically.
--
---
YoureceivedthismessagebecauseyouaresubscribedtotheGoogleGroups"theano-users"group.
Tounsubscribefromthisgroupandstopreceivingemailsfromit,[email protected].
Formoreoptions,visithttps://groups.google.com/d/optout.
LeeZamparounread,Sep13,2014,5:51:50AM9/13/14ReplytoauthorSignintoreplytoauthorForwardSignintoforwardDeleteYoudonothavepermissiontodeletemessagesinthisgroupLinkReportmessageasabuseSignintoreportmessageasabuseShoworiginalmessageEitheremailaddressesareanonymousforthisgrouporyouneedtheviewmemberemailaddressespermissiontoviewtheoriginalmessagetotheano...@googlegroups.comHiFred,Afterabitofinvestigating,theissueiswiththedefaultvaluefortheenvironmentvariablePYTHONIOENCODING. Thedefault'ascii'doesnothandlenon-asciichars. There'sasimplefix:$exportPYTHONENCODING=utf_8andinsetup.py,readfromNEWS.txtlike:from__future__importunicode_literalsimportcodecsf=codecs.open("NEWS.txt",encoding='utf-8')news=f.read()...WantmetomakeaPR?Thanks,L.PascalLamblinunread,Sep16,2014,10:31:24AM9/16/14ReplytoauthorSignintoreplytoauthorForwardSignintoforwardDeleteYoudonothavepermissiontodeletemessagesinthisgroupLinkReportmessageasabuseSignintoreportmessageasabuseShoworiginalmessageEitheremailaddressesareanonymousforthisgrouporyouneedtheviewmemberemailaddressespermissiontoviewtheoriginalmessagetotheano...@googlegroups.comOnFri,Sep12,2014,LeeZamparowrote:
>HiFred,
>
>Afterabitofinvestigating,theissueiswiththedefaultvalueforthe
>environmentvariablePYTHONIOENCODING.Thedefault'ascii'doesnothandle
>non-asciichars.There'sasimplefix:
>
>$exportPYTHONENCODING=utf_8
>
>andinsetup.py,readfromNEWS.txtlike:
>
>from__future__importunicode_literals
>importcodecs
>
>f=codecs.open("NEWS.txt",encoding='utf-8')
>news=f.read()
>...
>
>WantmetomakeaPR?
APRwouldbegreat,thanks!
Though,isthe"from__future__"statementnecessary?Itmaybreakthingsfromolderversions.
Couldwesimplyreplacethe".read()"statementsby".read().decode('utf-8')"?
>>>
>>>state"doesnotworkonPython3*asitdoesnotcalltheconverterfrom
>>>Python2codetoPython3code*"
>>>SoarethereinstructionsforinstallinginPython3?I'mlookinginto
>>>2to3portingnow,butI'llstillpostthisinthehopethatthisproblem
>>>hasalreadybeenovercomebysomeoneonthelist.
>>>
>>>Thanks,
>>>
>>>Lee.
>>>
>>>--
>>>
>>>---
>>>YoureceivedthismessagebecauseyouaresubscribedtotheGoogleGroups
>>>"theano-users"group.
>>>Tounsubscribefromthisgroupandstopreceivingemailsfromit,sendan
>>>[email protected].
>>>Formoreoptions,visithttps://groups.google.com/d/optout.
>>>
>>
>>
>
>--
>
>---
>YoureceivedthismessagebecauseyouaresubscribedtotheGoogleGroups"theano-users"group.
>Tounsubscribefromthisgroupandstopreceivingemailsfromit,[email protected].
>Formoreoptions,visithttps://groups.google.com/d/optout.
--
Pascal
LeeZamparounread,Oct16,2014,6:04:59AM10/16/14ReplytoauthorSignintoreplytoauthorForwardSignintoforwardDeleteYoudonothavepermissiontodeletemessagesinthisgroupLinkReportmessageasabuseSignintoreportmessageasabuseShoworiginalmessageEitheremailaddressesareanonymousforthisgrouporyouneedtheviewmemberemailaddressespermissiontoviewtheoriginalmessagetotheano...@googlegroups.comOnMonday,September15,201410:31:24PMUTC-4,PascalLamblinwrote:OnFri,Sep12,2014,LeeZamparowrote:
>HiFred,
>
>Afterabitofinvestigating,theissueiswiththedefaultvalueforthe
>environmentvariablePYTHONIOENCODING. Thedefault'ascii'doesnothandle
>non-asciichars. There'sasimplefix:
>
>$exportPYTHONENCODING=utf_8
>
>andinsetup.py,readfromNEWS.txtlike:
>
>from__future__importunicode_literals
>importcodecs
>
>f=codecs.open("NEWS.txt",encoding='utf-8')
>news=f.read()
>...
>
>WantmetomakeaPR?
APRwouldbegreat,thanks!
Though,isthe"from__future__"statementnecessary?Itmaybreakthingsfromolderversions.
Couldwesimplyreplacethe".read()"statementsby".read().decode('utf-8')"?
codecs.open("NEWS.txt",encoding='utf-8').read()worksformeonboth3.3.4and2.7.3. I'llsubmitthisasaPR.FrédéricBastienunread,Oct16,2014,8:05:39AM10/16/14ReplytoauthorSignintoreplytoauthorForwardSignintoforwardDeleteYoudonothavepermissiontodeletemessagesinthisgroupLinkReportmessageasabuseSignintoreportmessageasabuseShoworiginalmessageEitheremailaddressesareanonymousforthisgrouporyouneedtheviewmemberemailaddressespermissiontoviewtheoriginalmessagetotheano-usersWeneedtokeepsupportforpython2.6.travis-ciwillfailonthePRisitdon'tworkwiththatpythonversion.Thisway,youdon'tneedtoinstallittotestit.thanksFredPascalLamblinunread,Oct16,2014,9:34:42AM10/16/14ReplytoauthorSignintoreplytoauthorForwardSignintoforwardDeleteYoudonothavepermissiontodeletemessagesinthisgroupLinkReportmessageasabuseSignintoreportmessageasabuseShoworiginalmessageEitheremailaddressesareanonymousforthisgrouporyouneedtheviewmemberemailaddressespermissiontoviewtheoriginalmessagetotheano...@googlegroups.comOnWed,Oct15,2014,FrédéricBastienwrote:
>Weneedtokeepsupportforpython2.6.travis-ciwillfailonthePRisit
>don'tworkwiththatpythonversion.Thisway,youdon'tneedtoinstallit
>totestit.
TraviswashappywiththePR,soImergedit.
--
Pascal
ReplyallReplytoauthorForward0newmessages