-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error at Runnigng ./id2t #112
Comments
Did you follow the installation instructions to build the python environment? If so did you encounter any errors? Which linux distribution are you using? |
I have followed and installed all of the requirements and no! none any error occurred during installation any of them. |
Could you provide the output of the following commands:
This should install all the requirements in the virtual environment, including |
It appears id2t runs fine in github actions on |
shafqat@shafqat:~/ID2T-toolkit$ source .venv/bin/activate
(.venv) shafqat@shafqat:~/ID2T-toolkit$ pip3 install --upgrade pip
Collecting pip
Downloading pip-22.0.3-py3-none-any.whl (2.1 MB)
|████████████████████████████████| 2.1 MB 1.5 MB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.0.2
Uninstalling pip-20.0.2:
Successfully uninstalled pip-20.0.2
Successfully installed pip-22.0.3
(.venv) shafqat@shafqat:~/ID2T-toolkit$ pip3 install --no-cache-dir -r resources/requirements.txt
Collecting cairocffi==0.8.1
Downloading cairocffi-0.8.1.tar.gz (79 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 79.4/79.4 KB 347.8 kB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting cffi==1.11.5
Downloading cffi-1.11.5.tar.gz (438 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 438.5/438.5 KB 343.4 kB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting coverage==4.5.1
Downloading coverage-4.5.1.tar.gz (379 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 379.7/379.7 KB 228.8 kB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting cycler==0.10.0
Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting kiwisolver==1.0.1
Downloading kiwisolver-1.0.1.tar.gz (31 kB)
Preparing metadata (setup.py) ... done
Collecting lea==2.3.5
Downloading lea-2.3.5.tar.gz (64 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.5/64.5 KB 131.8 kB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting matplotlib==2.2.3
Downloading matplotlib-2.2.3.tar.gz (36.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 36.8/36.8 MB 133.9 kB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [63 lines of output]
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [2.2.3]
python: yes [3.8.10 (default, Nov 26 2021, 20:14:08) [GCC
9.3.0]]
platform: yes [linux]
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [not found. pip may install it below.]
install_requires: yes [handled by setuptools]
libagg: yes [pkg-config information for 'libagg' could not
be found. Using local copy.]
freetype: no [The C/C++ header for freetype2 (ft2build.h)
could not be found. You may need to install the
development package.]
png: no [pkg-config information for 'libpng' could not
be found.]
qhull: yes [pkg-config information for 'libqhull' could not
be found. Using local copy.]
OPTIONAL SUBPACKAGES
sample_data: yes [installing]
toolkits: yes [installing]
tests: no [skipping due to configuration]
toolkits_tests: no [skipping due to configuration]
OPTIONAL BACKEND EXTENSIONS
macosx: no [Mac OS-X only]
qt5agg: no [PySide2 not found; PyQt5 not found]
qt4agg: no [PySide not found; PyQt4 not found]
gtk3agg: no [Requires pygobject to be installed.]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-_s5fmj3j/matplotlib_9a1c19ed8a5b4a729141402e3ceacf05/setup.py", line 198, in <module>
msg = pkg.install_help_msg()
File "/tmp/pip-install-_s5fmj3j/matplotlib_9a1c19ed8a5b4a729141402e3ceacf05/setupext.py", line 592, in install_help_msg
release = platform.linux_distribution()[0].lower()
AttributeError: module 'platform' has no attribute 'linux_distribution'
gtk3cairo: no [Requires cairocffi or pycairo to be installed.]
gtkagg: no [Requires pygtk]
tkagg: yes [installing; run-time loading from Python Tcl /
Tk]
wxagg: no [requires wxPython]
gtk: no [Requires pygtk]
agg: yes [installing]
cairo: no [cairocffi or pycairo not found]
windowing: no [Microsoft Windows only]
OPTIONAL LATEX DEPENDENCIES
dvipng: no
ghostscript: yes [version 9.50]
latex: no
pdftops: yes [version 0.86.1]
OPTIONAL PACKAGE DATA
dlls: no [skipping due to configuration]
============================================================================
* The following required packages can not be built:
* freetype, png
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details. here is the output of the above code |
It appears matplotlib is missing some C/C++ dependencies on your system. Try installing them with this and repeat the process. It is missing
It is also missing
Also make sure you have the
EDIT: sorry for the heavy edit on this comment. |
I've installed all the requirements but with updated versions of each package and all installed perfectly but this time different errors has been generated such as below mentioned:
|
They might and obviously do in your case. You should install the dependencies from the unmodified (If necessary delete the virtual environment and create it again.) You can try to install dependencies manually and/or different versions, but this is not recommended or supported by us. |
This is my 3rd virtual box and I am still struggling with this so the problem I am facing in install Note: I have installed all the other packages according to the versions that are mentioned! |
I'm closing this issue, since this is not a bug with ID2T but clearly user error. Stay tuned for the final advice. |
As stated before, if you install packages manually, specifically other versions than we specify, we can not support you. We do not have the time or resources to debug every user's personal setup. This is why we have a build script included, that installs all required dependencies. I can not follow what you are doing over there, especially since you take huge steps before telling me your "next problem". Did the solution I posted for matplotlib work? If not, why not? Why did you start installing random package versions manually, while you state you have no experience with code? Why would you set up new virtual boxes? To be clear All you should have done was install the missing libs for matplotlib as described above and then reinstalled the pip dependencies, which should have worked by then. Either by doing it manually as I posted here or by running I will give you a last guide on how to get id2t to run, step by step, but this is the last thing I will do, afterwards you are on your own. |
Install ID2T on Ubuntu 20.04 VBox
I sincerely hope this helps you. Please let me know if you have any issues with this guide. Do not google smaller problems you encounter, do things manually, and then post a new unrelated problem! |
Thank you @pepper-jk Man thanks a lot! It finally work without any error. you were right I was actually manually installing all the dependencies and requirements without understanding the basics. Thank you again for your time! here is the final output:
|
Glad it worked out for you. Good luck with your research. |
Even though I have already install matplotlib i am getting this error again and again. I am stuck at this place
The text was updated successfully, but these errors were encountered: