Hit "NameError: name 'unicode' is not defined" for python 3 #217

文章推薦指數: 80 %
投票人數:10人

Hit "NameError: name 'unicode' is not defined" for python 3 #217. Open. yvetterowe opened this issue on Aug 17, 2021 · 2 comments. Skiptocontent {{message}} hozn / stravalib Public Notifications Fork 164 Star 627 Code Issues 45 Pullrequests 3 Actions Projects 0 Wiki Security Insights More Code Issues Pullrequests Actions Projects Wiki Security Insights Newissue Haveaquestionaboutthisproject?SignupforafreeGitHubaccounttoopenanissueandcontactitsmaintainersandthecommunity. Pickausername EmailAddress Password SignupforGitHub Byclicking“SignupforGitHub”,youagreetoourtermsofserviceand privacystatement.We’lloccasionallysendyouaccountrelatedemails. AlreadyonGitHub? Signin toyouraccount Jumptobottom Hit"NameError:name'unicode'isnotdefined"forpython3 #217 Open yvetteroweopenedthisissue Aug18,2021 ·2comments Open Hit"NameError:name'unicode'isnotdefined"forpython3 #217 yvetteroweopenedthisissue Aug18,2021 ·2comments Comments Copylink yvetterowe commented Aug18,2021 Hitthefollowingerrorafterbumpingto0.10.3 File"/opt/hostedtoolcache/Python/3.6.14/x64/lib/python3.6/site-packages/stravalib/client.py",line1658,in__next__ returnself.next() File"/opt/hostedtoolcache/Python/3.6.14/x64/lib/python3.6/site-packages/stravalib/client.py",line1664,innext self._fill_buffer() File"/opt/hostedtoolcache/Python/3.6.14/x64/lib/python3.6/site-packages/stravalib/client.py",line1639,in_fill_buffer entities.append(self.entity.deserialize(raw,bind_client=self.bind_client)) File"/opt/hostedtoolcache/Python/3.6.14/x64/lib/python3.6/site-packages/stravalib/model.py",line135,indeserialize o.from_dict(v) File"/opt/hostedtoolcache/Python/3.6.14/x64/lib/python3.6/site-packages/stravalib/model.py",line68,infrom_dict setattr(self,k,v) File"/opt/hostedtoolcache/Python/3.6.14/x64/lib/python3.6/site-packages/stravalib/attributes.py",line57,in__set__ self.data[obj]=self.unmarshal(val) File"/opt/hostedtoolcache/Python/3.6.14/x64/lib/python3.6/site-packages/stravalib/attributes.py",line237,inunmarshal ifisinstance(v,str)orisinstance(v,unicode): NameError:name'unicode'isnotdefined Istheidealfixheretoreplaceunicodebystr?WillthatbreakthesupportforPython2.7?HappytoopenaPRifitmakessense. Thetextwasupdatedsuccessfully,buttheseerrorswereencountered: Allreactions yvetterowe mentionedthisissue Aug18,2021 StravaAPIchangeforactivitieswithoutGPSleadtodeserializationerror #215 Closed Copylink Author yvetterowe commented Aug18,2021 https://github.com/yvetterowe/running_page/actions/runs/1141306749Gotagreenrunnowwith#218! Allreactions Sorry,somethingwentwrong. Copylink Owner hozn commented Aug18,2021 Thankssomuch!Ineedtofixmylocaltestenv.I'llgetthisfixed.Must haveacceptedanMRthatdidn'tusesix.text_type. … OnTue,Aug17,2021,20:35HaoLuo***@***.***>wrote: https://github.com/yvetterowe/running_page/actions/runs/1141306749Gota greenrunnowwith#218! — Youarereceivingthisbecauseyouaresubscribedtothisthread. Replytothisemaildirectly,viewitonGitHub ,or unsubscribe . TriagenotificationsonthegowithGitHubMobileforiOS orAndroid . 👍 1 yvetterowereactedwiththumbsupemoji Allreactions 👍 1reaction Sorry,somethingwentwrong. hozn addedacommit thatreferenced thisissue Aug18,2021 Tweaktofixforunicodebugwithpython3(#217,#218) b76e14e Signupforfree tojointhisconversationonGitHub. Alreadyhaveanaccount? Signintocomment Assignees Nooneassigned Labels Noneyet Projects Noneyet Milestone Nomilestone Development Nobranchesorpullrequests 2participants Youcan’tperformthatactionatthistime. Yousignedinwithanothertaborwindow.Reloadtorefreshyoursession. Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.



請為這篇文章評分?