Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Jetson Nano pytorch/fastai/matplotlib issue #2

Open
mockbot opened this issue Jan 31, 2021 · 1 comment
Open

Jetson Nano pytorch/fastai/matplotlib issue #2

mockbot opened this issue Jan 31, 2021 · 1 comment

Comments

@mockbot
Copy link

mockbot commented Jan 31, 2021

as user I like to use fastai at Jetson Nano 4GB, but install failed:
Looking in links: https://torch.maku.ml/whl/stable.html
Collecting fastai
Using cached fastai-2.2.5-py3-none-any.whl (191 kB)
Collecting fastprogress>=0.2.4
Downloading fastprogress-1.0.0-py3-none-any.whl (12 kB)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from fastai) (2.18.4)
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from fastai) (3.12)
Requirement already satisfied: scipy in /usr/lib/python3/dist-packages (from fastai) (0.19.1)
Requirement already satisfied: pillow>6.0.0 in /usr/local/lib/python3.6/dist-packages (from fastai) (8.1.0)
Collecting scikit-learn
Downloading scikit-learn-0.24.1.tar.gz (7.4 MB)
|████████████████████████████████| 7.4 MB 3.4 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: torch<1.8,>=1.7.0 in /usr/local/lib/python3.6/dist-packages (from fastai) (1.7.1)
Requirement already satisfied: pandas in /usr/lib/python3/dist-packages (from fastai) (0.22.0)
Requirement already satisfied: torchvision<0.9,>=0.8 in /usr/local/lib/python3.6/dist-packages (from fastai) (0.8.2)
Collecting matplotlib
Using cached matplotlib-3.3.4.tar.gz (37.9 MB)
ERROR: Command errored out with exit status -4:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1dobxfj1/matplotlib_26be673922654e7c99d4190d61bf226f/setup.py'"'"'; file='"'"'/tmp/pip-install-1dobxfj1/matplotlib_26be673922654e7c99d4190d61bf226f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ocp_8rcy
cwd: /tmp/pip-install-1dobxfj1/matplotlib_26be673922654e7c99d4190d61bf226f/
Complete output (19 lines):

Edit setup.cfg to change the build options; suppress output with --quiet.

BUILDING MATPLOTLIB
  matplotlib: yes [3.3.4]
      python: yes [3.6.9 (default, Oct  8 2020, 12:12:24)  [GCC 8.4.0]]
    platform: yes [linux]
 sample_data: yes [installing]
       tests: no  [skipping due to configuration]
      macosx: no  [Mac OS-X only]

running egg_info
creating /tmp/pip-pip-egg-info-ocp_8rcy/matplotlib.egg-info
writing /tmp/pip-pip-egg-info-ocp_8rcy/matplotlib.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-ocp_8rcy/matplotlib.egg-info/dependency_links.txt
writing namespace_packages to /tmp/pip-pip-egg-info-ocp_8rcy/matplotlib.egg-info/namespace_packages.txt
writing requirements to /tmp/pip-pip-egg-info-ocp_8rcy/matplotlib.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-ocp_8rcy/matplotlib.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-ocp_8rcy/matplotlib.egg-info/SOURCES.txt'
----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/22/d4/e7ca532e68a9357742604e1e4ae35d9c09a4a810de39a9d80402bd12f50f/matplotlib-3.3.4.tar.gz#sha256=3e477db76c22929e4c6876c44f88d790aacdf3c3f8f3a90cb1975c0bf37825b0 (from https://pypi.org/simple/matplotlib/) (requires-python:>=3.6). Command errored out with exit status -4: python setup.py egg_info Check the logs for full command output.
Using cached matplotlib-3.3.3.tar.gz (37.9 MB)
....
same procedure with all versions < 3.3.3
Any idea, to use pytorch/fastai aarch64 ???

@mockbot mockbot changed the title Jetson Nano matplotlib issue Jetson Nano pytorch/fastai/matplotlib issue Jan 31, 2021
@KumaTea
Copy link
Owner

KumaTea commented Feb 1, 2021

Hi, I just reproduced the error.

matplotlib does not depend on torch, so I executed pip install -v matplotlib to see detailed log. It shows:

...
  creating tmp
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.9 -c /tmp/tmpg5e7kta3.cpp -o tmp/tmpg5e7kta3.o -fvisibility=hidden
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.9 -c /tmp/tmpq1msf3hh.cpp -o tmp/tmpq1msf3hh.o -fvisibility-inlines-hidden
  Extracting freetype-2.6.1.tar.gz
  Building freetype in build/freetype-2.6.1
  GNU make (>= 3.80) or makepp (>= 1.19) is required to build FreeType2.
  Please try

    MAKE=<GNU make command name> ./configure

  or

    MAKE="makepp --norc-substitution" ./configure
  Traceback (most recent call last):
...

Which means that it did not find a building tool.

You could try apt update && apt install build-essential, and install matplotlib again to see if it works.


P.S.: I would suggest that you could build locally for much better performance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants