[aprssig] PCsensor's TEMPerHUM as WX = Possible?

Tom Russo russo at bogodyn.org
Tue Sep 12 17:53:10 EDT 2017


It looks like even though you've installed Python 3, the "python" in your
path is still Python 2.

You can confirm that by typing "python --version".

The error message you're getting is what Python 2 says when it encounters
the "open" function with the "encoding" keyword.  

The Python 3 package you installed might install python with a suffix (e.g. 
"python3" or in an alternate path.)

What operating system and package management system are you running?

On Tue, Sep 12, 2017 at 10:09:58PM +0200, we recorded a bogon-computron collision of the <skoric at uns.ac.rs> flavor, containing:
> On 09/11/2017 12:01 AM, Tom Russo wrote:
> 
> >> root at localhost:/usr/local/src/temper-python-master# python setup.py install
> >> Traceback (most recent call last):
> >>     File "setup.py", line 10, in <module>
> >>       long_description=open('README.md', encoding='utf-8').read(),
> >> TypeError: 'encoding' is an invalid keyword argument for this function
> >>
> >>
> >> Any idea?
> > 
> > You've got python 2 (probably 2.7) installed, and the package is written
> > for python 3.
> > 
> 
> Tom, others ...
> 
> Ok, I installed python 3 (it also required its -minimal file as well as 
> python 3.2 and its minimal, or something like that). However, the result 
> was again:
> 
> root at localhost:/usr/local/src/temper-python-master# python setup.py install
> Traceback (most recent call last):
>    File "setup.py", line 10, in <module>
>      long_description=open('README.md', encoding='utf-8').read(),
> TypeError: 'encoding' is an invalid keyword argument for this function
> root at localhost:/usr/local/src/temper-python-master#
> 
> Any idea? Something is still wrong ...
> 
> Misko YT7MPB

-- 
Tom Russo    KM5VY   SAR502   DM64ux          http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236        http://kevan.org/brain.cgi?DDTNM
 echo "prpv_a'rfg_cnf_har_cvcr" | sed -e 's/_/ /g' | tr [a-m][n-z] [n-z][a-m]

 





More information about the aprssig mailing list