11-27-2019, 12:49 PM
Hello,
I'm trying to install PULP-SDK following the instructions provided in GitHub, but I get an error I can't understand and for which I haven't found any solution.
I'm starting from a clean Ubuntu 16.04 install, and the sequence of steps I follow (first I install the riscv gnu toolchain and then the PULP SDK) is:
1 - sudo -s
2 - apt install git python3-pip python-pip gawk texinfo libgmp-dev libmpfr-dev libmpc-dev swig3.0 libjpeg-dev lsb-core doxygen python-sphinx sox graphicsmagick-libmagick-dev-compat libsdl2-dev libswitch-perl libftdi1-dev cmake scons libsndfile1-dev
3 - pip3 install artifactory twisted prettytable sqlalchemy pyelftools openpyxl xlsxwriter pyyaml numpy configparser pyvcd
4 - sudo pip2 install configparser
5 - cd /opt
6 - mkdir riscv
7 - cd riscv
8 - git clone https://github.com/pulp-platform/pulp-ri...-toolchain
9 - cd pulp-riscv-gnu-toolchain
10 - git submodule update --init --recursive
11 - apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev
12 - export PATH=$PATH:/opt/riscv/bin
13 - ./configure --prefix=/opt/riscv --with-arch=rv32imc --with-cmodel=medlow --enable-multilib
14 - make
15 - export PULP_RISCV_GCC_TOOLCHAIN=/opt/riscv
16 - export VSIM_PATH=/opt/riscv/pulpissimo/sim
17 - cd ..
18 - git clone https://github.com/pulp-platform/pulp-sdk.git -b master
19 - cd pulp-sdk
20 - source configs/pulpissimo.sh
21 - make all
After this last command I get the following error:
Configuring Pulp project at /opt/riscv/pulp-sdk
Traceback (most recent call last):
File "./pulp-tools/bin/plpbuild", line 3, in <module>
import plptools as plp
File "/opt/riscv/pulp-sdk/pulp-tools/bin/plptools.py", line 27, in <module>
from plpobjects import *
File "/opt/riscv/pulp-sdk/pulp-tools/bin/plpobjects.py", line 32, in <module>
from openpyxl import Workbook
File "/usr/local/lib/python3.5/dist-packages/openpyxl/__init__.py", line 6, in <module>
from openpyxl.workbook import Workbook
File "/usr/local/lib/python3.5/dist-packages/openpyxl/workbook/__init__.py", line 4, in <module>
from .workbook import Workbook
File "/usr/local/lib/python3.5/dist-packages/openpyxl/workbook/workbook.py", line 7, in <module>
from openpyxl.worksheet.worksheet import Worksheet
File "/usr/local/lib/python3.5/dist-packages/openpyxl/worksheet/worksheet.py", line 392
return f"{get_column_letter(min_col)}{min_row}:{get_column_letter(max_col)}{max_row}"
^
SyntaxError: invalid syntax
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 1
Following the instructions provided in GitHub I check the versions of both python and pip. What I get is:
root@VBox:/opt/riscv/pulp-sdk# pip --version
pip 19.3.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
root@VBox:/opt/riscv/pulp-sdk# python3 --version
Python 3.5.2
Then I execute the commands suggested in GitHub:
python3 -m pip install --upgrade pip
python3 -m pip install artifactory twisted prettytable sqlalchemy pyelftools openpyxl xlsxwriter pyyaml numpy configparser pyvcd
However, when I run again 'make all' I get the same error. Since after looking for a solution I haven't found any clue how to fix it, could you provide me any hint to overcome this problem? Thank you very much in advance for your help.
Best regards,
Manuel
I'm trying to install PULP-SDK following the instructions provided in GitHub, but I get an error I can't understand and for which I haven't found any solution.
I'm starting from a clean Ubuntu 16.04 install, and the sequence of steps I follow (first I install the riscv gnu toolchain and then the PULP SDK) is:
1 - sudo -s
2 - apt install git python3-pip python-pip gawk texinfo libgmp-dev libmpfr-dev libmpc-dev swig3.0 libjpeg-dev lsb-core doxygen python-sphinx sox graphicsmagick-libmagick-dev-compat libsdl2-dev libswitch-perl libftdi1-dev cmake scons libsndfile1-dev
3 - pip3 install artifactory twisted prettytable sqlalchemy pyelftools openpyxl xlsxwriter pyyaml numpy configparser pyvcd
4 - sudo pip2 install configparser
5 - cd /opt
6 - mkdir riscv
7 - cd riscv
8 - git clone https://github.com/pulp-platform/pulp-ri...-toolchain
9 - cd pulp-riscv-gnu-toolchain
10 - git submodule update --init --recursive
11 - apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev
12 - export PATH=$PATH:/opt/riscv/bin
13 - ./configure --prefix=/opt/riscv --with-arch=rv32imc --with-cmodel=medlow --enable-multilib
14 - make
15 - export PULP_RISCV_GCC_TOOLCHAIN=/opt/riscv
16 - export VSIM_PATH=/opt/riscv/pulpissimo/sim
17 - cd ..
18 - git clone https://github.com/pulp-platform/pulp-sdk.git -b master
19 - cd pulp-sdk
20 - source configs/pulpissimo.sh
21 - make all
After this last command I get the following error:
Configuring Pulp project at /opt/riscv/pulp-sdk
Traceback (most recent call last):
File "./pulp-tools/bin/plpbuild", line 3, in <module>
import plptools as plp
File "/opt/riscv/pulp-sdk/pulp-tools/bin/plptools.py", line 27, in <module>
from plpobjects import *
File "/opt/riscv/pulp-sdk/pulp-tools/bin/plpobjects.py", line 32, in <module>
from openpyxl import Workbook
File "/usr/local/lib/python3.5/dist-packages/openpyxl/__init__.py", line 6, in <module>
from openpyxl.workbook import Workbook
File "/usr/local/lib/python3.5/dist-packages/openpyxl/workbook/__init__.py", line 4, in <module>
from .workbook import Workbook
File "/usr/local/lib/python3.5/dist-packages/openpyxl/workbook/workbook.py", line 7, in <module>
from openpyxl.worksheet.worksheet import Worksheet
File "/usr/local/lib/python3.5/dist-packages/openpyxl/worksheet/worksheet.py", line 392
return f"{get_column_letter(min_col)}{min_row}:{get_column_letter(max_col)}{max_row}"
^
SyntaxError: invalid syntax
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 1
Following the instructions provided in GitHub I check the versions of both python and pip. What I get is:
root@VBox:/opt/riscv/pulp-sdk# pip --version
pip 19.3.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
root@VBox:/opt/riscv/pulp-sdk# python3 --version
Python 3.5.2
Then I execute the commands suggested in GitHub:
python3 -m pip install --upgrade pip
python3 -m pip install artifactory twisted prettytable sqlalchemy pyelftools openpyxl xlsxwriter pyyaml numpy configparser pyvcd
However, when I run again 'make all' I get the same error. Since after looking for a solution I haven't found any clue how to fix it, could you provide me any hint to overcome this problem? Thank you very much in advance for your help.
Best regards,
Manuel