Sorry. What we need is the version of the twitter uploader. Look in file
bin/user/twitter.py for a line that looks something like

VERSION = "0.15"

If it's a lesser version, the first thing I'd try is upgrading to V0.15

-tk


On Mon, Apr 4, 2022 at 6:11 AM Andrey Mihaylov <andrey.mihaylo...@gmail.com>
wrote:

> Hello,
>
> Twitter uploader is twython==3.7.0
> on Python 2.7.
>
>
>
>
>
> На пн, 4.04.2022 г. в 15:28 ч. Tom Keffer <tkef...@gmail.com> написа:
>
>> Hello,
>>
>> A couple questions:
>>
>> What version of the twitter uploader are you using? You want v0.15.
>>
>> What version of Python are you using?
>>
>>
>> On Mon, Apr 4, 2022 at 2:47 AM Andrey Mihaylov <
>> andrey.mihaylo...@gmail.com> wrote:
>>
>>>  I have made some progress, but  now Ascii encoding issue appears.
>>>
>>> how this could be fixed?
>>>
>>> thanks,
>>>
>>>
>>> Apr  4 12:35:41 neo-rp1 weewx[7933] ERROR weewx.restx: Twitter:
>>> Unexpected exception of type <type 'exceptions.UnicodeEncodeError'>
>>> Apr  4 12:35:42 neo-rp1 weewx[7933] DEBUG weewx.cheetahgenerator: Using
>>> search list ['weewx.cheetahgenerator.Almanac',
>>> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current',
>>> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo',
>>> 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.JSONHelpers',
>>> u'user.forecast.ForecastVariables']
>>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: *** Traceback
>>> (most recent call last):
>>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***   File
>>> "/usr/share/weewx/weewx/restx.py", line 381, in run_loop
>>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***
>>>  self.process_record(_record, dbmanager)
>>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***   File
>>> "/usr/share/weewx/user/twitter.py", line 322, in process_record
>>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***     (ntries,
>>> self.max_tries, e))
>>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***
>>> UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in
>>> position 172: ordinal not in range(128)
>>> Apr  4 12:35:42 neo-rp1 weewx[7933] CRITICAL weewx.restx: Twitter:
>>> Thread terminating. Reason: 'ascii' codec can't encode character u'\u2019'
>>> in position 172: ordinal not in range(128)
>>>
>>>
>>> На пт, 1.04.2022 г. в 15:19 ч. Andrey Mihaylov <
>>> andrey.mihaylo...@gmail.com> написа:
>>>
>>>> Hello Guys,
>>>>
>>>> all day im trying to make my weather station to report data to twitter
>>>> but without success. Something is wrong with the credentials and really
>>>> don't know what.  I created APP at developer.twitter.com, OAuth 1.0a
>>>> is set with permissions Read and write, callback uri is
>>>> http://localhost, access token and Secret are added into weewx.conf,
>>>> but still same error in the log .
>>>>
>>>>  ERROR weewx.restx: Twitter: Failed to publish record 2022-04-01
>>>> 14:55:00 EEST (1648814100): Authorization failed: Twitter API returned a
>>>> 401 (Unauthorized), Invalid or expired token.
>>>>
>>>> [[Twitter]]
>>>>
>>>>         oauth_token_secret = Access Secret
>>>>
>>>>         oauth_token = Access Token
>>>>
>>>>         app_key_secret = API Key
>>>>
>>>>         app_key = API Secret
>>>>
>>>> what can be wrong ?
>>>>
>>>> Thanks,
>>>>
>>>> A,
>>>>
>>>>
>>>>
>>>> [image: Twitter Developers.png]
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "weewx-user" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to weewx-user+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/weewx-user/00340311-9214-44e2-b58d-fb7cee0b8675n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/weewx-user/00340311-9214-44e2-b58d-fb7cee0b8675n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "weewx-user" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to weewx-user+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/CAObD2BTMOHA5LfTgrf%3DOOr9_OnLg134VRCVMnuTQ9m6brV_obg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/weewx-user/CAObD2BTMOHA5LfTgrf%3DOOr9_OnLg134VRCVMnuTQ9m6brV_obg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to weewx-user+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/CAPq0zEBOOiENn6zBidVcvmorWWD8CijMa04dfzgP7%3DBMvQT0BA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEBOOiENn6zBidVcvmorWWD8CijMa04dfzgP7%3DBMvQT0BA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/CAObD2BT4br%2BtbsfBXAXKRiiK3E4tcXZs%3DHSV-nLNBjMvtNiHVA%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAObD2BT4br%2BtbsfBXAXKRiiK3E4tcXZs%3DHSV-nLNBjMvtNiHVA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEAtjD%3Dz92F5VtEFRUajhB6SS3yJ%2BdEtmkPgX2R%2BU-g6OA%40mail.gmail.com.

Reply via email to