Hit "NameError: name 'unicode' is not defined" for python 3 #217
文章推薦指數: 80 %
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
延伸文章資訊
- 1成功解决NameError: name 'unicode' is not defined - 51CTO博客
成功解决NameError: name 'unicode' is not defined,成功解决NameError:name'unicode'isnotdefined目录解决问题解决思路解决方...
- 2Error NameError: name 'unicode' is not defined in Python
I get an exception throw NameError: name 'unicode' is not defined in Python 3.8.2 when I trying t...
- 3Hit "NameError: name 'unicode' is not defined" for python 3 #217
Hit "NameError: name 'unicode' is not defined" for python 3 #217. Open. yvetterowe opened this is...
- 4NameError: global name 'unicode' is not defined - in Python 3
Python Bag of Words NameError: name 'unicode' is not defined
- 5NameError: name 'unicode' is not defined in Python | bobbyhadz
The Python "NameError name 'unicode' is not defined" occurs when using the unicode object in Pyth...