Skip to content
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

Problems getting py4ami to run on my mac #85

Open
EmanuelFaria opened this issue May 16, 2022 · 3 comments
Open

Problems getting py4ami to run on my mac #85

EmanuelFaria opened this issue May 16, 2022 · 3 comments

Comments

@EmanuelFaria
Copy link

EmanuelFaria commented May 16, 2022

  1. As you'll see below, when trying to run py4ami on my 2012 Macbook Air running MacOS Catalina 10.15.7, even after attempting to force install py4ami pip3 install py4ami --force I'm still getting the same messages, namely:
Traceback (most recent call last):
  File "/usr/local/bin/py4ami", line 5, in <module>
    from py4ami.pyamix import main
  File "/usr/local/lib/python3.9/site-packages/py4ami/pyamix.py", line 13, in <module>
    from .dict_lib import AmiDictionary
  File "/usr/local/lib/python3.9/site-packages/py4ami/dict_lib.py", line 14, in <module>
    from .wikimedia import WikidataLookup, WikidataPage
  File "/usr/local/lib/python3.9/site-packages/py4ami/wikimedia.py", line 107, in <module>
    class WikidataBrowser:
  File "/usr/local/lib/python3.9/site-packages/py4ami/wikimedia.py", line 110, in WikidataBrowser
    from tkinter import scrolledtext
  File "/usr/local/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/__init__.py", line 37, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
  1. Perhaps also of note is that this error shows up several times while running the install:
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
Last login: Mon May 16 10:58:20 on ttys003
emanuelfarruda@Mannys-MacBook-Air-3 ~ % py4ami
Traceback (most recent call last):
  File "/usr/local/bin/py4ami", line 5, in <module>
    from py4ami.pyamix import main
  File "/usr/local/lib/python3.9/site-packages/py4ami/pyamix.py", line 13, in <module>
    from .dict_lib import AmiDictionary
  File "/usr/local/lib/python3.9/site-packages/py4ami/dict_lib.py", line 14, in <module>
    from .wikimedia import WikidataLookup, WikidataPage
  File "/usr/local/lib/python3.9/site-packages/py4ami/wikimedia.py", line 107, in <module>
    class WikidataBrowser:
  File "/usr/local/lib/python3.9/site-packages/py4ami/wikimedia.py", line 110, in WikidataBrowser
    from tkinter import scrolledtext
  File "/usr/local/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/__init__.py", line 37, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'

emanuelfarruda@Mannys-MacBook-Air-3 ~ % py4ami --help
Traceback (most recent call last):
  File "/usr/local/bin/py4ami", line 5, in <module>
    from py4ami.pyamix import main
  File "/usr/local/lib/python3.9/site-packages/py4ami/pyamix.py", line 13, in <module>
    from .dict_lib import AmiDictionary
  File "/usr/local/lib/python3.9/site-packages/py4ami/dict_lib.py", line 14, in <module>
    from .wikimedia import WikidataLookup, WikidataPage
  File "/usr/local/lib/python3.9/site-packages/py4ami/wikimedia.py", line 107, in <module>
    class WikidataBrowser:
  File "/usr/local/lib/python3.9/site-packages/py4ami/wikimedia.py", line 110, in WikidataBrowser
    from tkinter import scrolledtext
  File "/usr/local/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/__init__.py", line 37, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'

emanuelfarruda@Mannys-MacBook-Air-3 ~ % pip3 install py4ami --force
Collecting py4ami
  Downloading py4ami-0.0.19.tar.gz (10.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.9/10.9 MB 2.4 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting beautifulsoup4
  Downloading beautifulsoup4-4.11.1-py3-none-any.whl (128 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 128.2/128.2 kB 2.6 MB/s eta 0:00:00
Collecting braceexpand
  Using cached braceexpand-0.1.7-py2.py3-none-any.whl (5.9 kB)
Collecting lxml
  Using cached lxml-4.8.0-cp310-cp310-macosx_10_15_x86_64.whl (4.6 MB)
Collecting matplotlib
  Downloading matplotlib-3.5.2-cp310-cp310-macosx_10_9_x86_64.whl (7.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/7.3 MB 2.9 MB/s eta 0:00:00
Collecting nltk
  Downloading nltk-3.7-py3-none-any.whl (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 3.2 MB/s eta 0:00:00
Collecting pdfminer3
  Using cached pdfminer3-2018.12.3.0.tar.gz (5.0 MB)
  Preparing metadata (setup.py) ... done
Collecting Pillow
  Downloading Pillow-9.1.0-cp310-cp310-macosx_10_9_x86_64.whl (3.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 3.4 MB/s eta 0:00:00
Collecting psutil
  Downloading psutil-5.9.0-cp310-cp310-macosx_10_9_x86_64.whl (238 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 238.6/238.6 kB 4.5 MB/s eta 0:00:00
Collecting PyPDF2
  Downloading PyPDF2-1.27.12-py3-none-any.whl (80 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.0/80.0 kB 2.0 MB/s eta 0:00:00
Collecting python-rake
  Using cached python_rake-1.5.0-py3-none-any.whl (14 kB)
Collecting setuptools
  Using cached setuptools-62.2.0-py3-none-any.whl (1.1 MB)
Collecting SPARQLWrapper
  Using cached SPARQLWrapper-2.0.0-py3-none-any.whl (28 kB)
Collecting tkinterhtml
  Using cached tkinterhtml-0.7.zip (930 kB)
  Preparing metadata (setup.py) ... done
Collecting tkinterweb
  Downloading tkinterweb-3.13.2.tar.gz (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 3.2 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting soupsieve>1.2
  Downloading soupsieve-2.3.2.post1-py3-none-any.whl (37 kB)
Collecting numpy>=1.17
  Using cached numpy-1.22.3-cp310-cp310-macosx_10_14_x86_64.whl (17.6 MB)
Collecting pyparsing>=2.2.1
  Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.3/98.3 kB 1.1 MB/s eta 0:00:00
Collecting fonttools>=4.22.0
  Downloading fonttools-4.33.3-py3-none-any.whl (930 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 930.9/930.9 kB 2.1 MB/s eta 0:00:00
Collecting kiwisolver>=1.0.1
  Downloading kiwisolver-1.4.2-cp310-cp310-macosx_10_9_x86_64.whl (65 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.3/65.3 kB 2.5 MB/s eta 0:00:00
Collecting python-dateutil>=2.7
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting cycler>=0.10
  Using cached cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting packaging>=20.0
  Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting click
  Downloading click-8.1.3-py3-none-any.whl (96 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 kB 2.6 MB/s eta 0:00:00
Collecting tqdm
  Using cached tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
Collecting regex>=2021.8.3
  Downloading regex-2022.4.24-cp310-cp310-macosx_10_9_x86_64.whl (288 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 289.0/289.0 kB 1.5 MB/s eta 0:00:00
Collecting joblib
  Using cached joblib-1.1.0-py2.py3-none-any.whl (306 kB)
Collecting pycryptodome
  Using cached pycryptodome-3.14.1-cp35-abi3-macosx_10_9_x86_64.whl (1.5 MB)
Collecting sortedcontainers
  Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Collecting chardet
  Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting rdflib>=6.1.1
  Using cached rdflib-6.1.1-py3-none-any.whl (482 kB)
Collecting six>=1.5
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting isodate
  Using cached isodate-0.6.1-py2.py3-none-any.whl (41 kB)
Using legacy 'setup.py install' for py4ami, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pdfminer3, since package 'wheel' is not installed.
Using legacy 'setup.py install' for tkinterhtml, since package 'wheel' is not installed.
Using legacy 'setup.py install' for tkinterweb, since package 'wheel' is not installed.
Installing collected packages: tkinterhtml, sortedcontainers, braceexpand, tqdm, soupsieve, six, setuptools, regex, python-rake, PyPDF2, pyparsing, pycryptodome, psutil, Pillow, numpy, lxml, kiwisolver, joblib, fonttools, cycler, click, chardet, tkinterweb, python-dateutil, pdfminer3, packaging, nltk, isodate, beautifulsoup4, rdflib, matplotlib, SPARQLWrapper, py4ami
  Running setup.py install for tkinterhtml ... done
  Attempting uninstall: tqdm
    Found existing installation: tqdm 4.64.0
    Uninstalling tqdm-4.64.0:
      Successfully uninstalled tqdm-4.64.0
  Attempting uninstall: six
    Found existing installation: six 1.16.0
    Uninstalling six-1.16.0:
      Successfully uninstalled six-1.16.0
  Attempting uninstall: setuptools
    Found existing installation: setuptools 58.1.0
    Uninstalling setuptools-58.1.0:
      Successfully uninstalled setuptools-58.1.0
  Attempting uninstall: numpy
    Found existing installation: numpy 1.22.3
    Uninstalling numpy-1.22.3:
      Successfully uninstalled numpy-1.22.3
  Attempting uninstall: lxml
    Found existing installation: lxml 4.8.0
    Uninstalling lxml-4.8.0:
      Successfully uninstalled lxml-4.8.0
  Running setup.py install for tkinterweb ... done
  Attempting uninstall: python-dateutil
    Found existing installation: python-dateutil 2.8.2
    Uninstalling python-dateutil-2.8.2:
      Successfully uninstalled python-dateutil-2.8.2
  Running setup.py install for pdfminer3 ... done
  Running setup.py install for py4ami ... done
Successfully installed Pillow-9.1.0 PyPDF2-1.27.12 SPARQLWrapper-2.0.0 beautifulsoup4-4.11.1 braceexpand-0.1.7 chardet-4.0.0 click-8.1.3 cycler-0.11.0 fonttools-4.33.3 isodate-0.6.1 joblib-1.1.0 kiwisolver-1.4.2 lxml-4.8.0 matplotlib-3.5.2 nltk-3.7 numpy-1.22.3 packaging-21.3 pdfminer3-2018.12.3.0 psutil-5.9.0 py4ami-0.0.19 pycryptodome-3.14.1 pyparsing-3.0.9 python-dateutil-2.8.2 python-rake-1.5.0 rdflib-6.1.1 regex-2022.4.24 setuptools-62.2.0 six-1.16.0 sortedcontainers-2.4.0 soupsieve-2.3.2.post1 tkinterhtml-0.7 tkinterweb-3.13.2 tqdm-4.64.0

emanuelfarruda@Mannys-MacBook-Air-3 ~ % py4ami
Traceback (most recent call last):
  File "/usr/local/bin/py4ami", line 5, in <module>
    from py4ami.pyamix import main
  File "/usr/local/lib/python3.9/site-packages/py4ami/pyamix.py", line 13, in <module>
    from .dict_lib import AmiDictionary
  File "/usr/local/lib/python3.9/site-packages/py4ami/dict_lib.py", line 14, in <module>
    from .wikimedia import WikidataLookup, WikidataPage
  File "/usr/local/lib/python3.9/site-packages/py4ami/wikimedia.py", line 107, in <module>
    class WikidataBrowser:
  File "/usr/local/lib/python3.9/site-packages/py4ami/wikimedia.py", line 110, in WikidataBrowser
    from tkinter import scrolledtext
  File "/usr/local/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/__init__.py", line 37, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
emanuelfarruda@Mannys-MacBook-Air-3 ~ % 
@petermr
Copy link
Owner

petermr commented May 16, 2022 via email

@EmanuelFaria
Copy link
Author

(B) Manny, can you checkout pmr1 branch and retry.

@petermr I don't know where to find pmr1 branch. Can you point me to it please?

@petermr
Copy link
Owner

petermr commented May 19, 2022 via email

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

No branches or pull requests

2 participants