Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#4892 closed defect (fixed)

Debbie can't compile GDAL Master (GDAL 3.3)

Reported by: robe Owned by: robe
Priority: blocker Milestone: Website Management, Bots
Component: QA/buildbots Version: master
Keywords: Cc:

Description

Different issue from GDAL 3.2 that was just fixed by EvenR.

This has been going on sometime between March 1st and March 19th (I have a huge gap of missing builds for some reason) but I've been distracted with other things.

for dir in python ; do (cd $dir; make build) || exit; done
make[2]: Entering directory '/var/lib/jenkins/workspace/gdal/branches/3.3/gdal/swig/python'
rm -f setup_vars.ini
echo 'GNM_ENABLED=yes' >> setup_vars.ini
python setup.py build
WARNING: numpy not available!  Array support will not be enabled
Traceback (most recent call last):
  File "setup.py", line 348, in <module>
    readme = open('README.rst', encoding="utf-8").read()
TypeError: 'encoding' is an invalid keyword argument for this 

So I'm assuming maybe a newer Python or something is required for than what Debbie has installed.

Change History (3)

comment:1 by robe, 4 years ago

This stackoverflow suggests it's because of Python 2 and only supported in Python 3

https://stackoverflow.com/questions/12541370/typeerror-encoding-is-an-invalid-keyword-argument-for-this-function


The terminal you are trying to run this on probably uses Python 2.x as standard.

Try using the command "Python3" specifically in the terminal:

$ Python3 yourfile.py

(Tested and confirmed that 2.7 will give that error and that Python3 handles it just fine.)

comment:2 by robe, 4 years ago

Resolution: fixed
Status: newclosed

Just disabled python building for now. Don't really need it.

comment:3 by robe, 4 years ago

I should add debbie does have python and python3 installed, but tried to make it the default with

alias python='/usr/bin/python3'

but didn't seem to work

Note: See TracTickets for help on using tickets.