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

Missing dependency 'pygtrie' #12

Open
joaomdsc opened this issue Sep 5, 2021 · 3 comments
Open

Missing dependency 'pygtrie' #12

joaomdsc opened this issue Sep 5, 2021 · 3 comments

Comments

@joaomdsc
Copy link

joaomdsc commented Sep 5, 2021

I installed the betacode module with pip install betacode. Installation goes fine, but when I try to use it, it complains about a missing package 'pygtrie':

c:\a\src\py\tools\tei-xml>py tei.py
Traceback (most recent call last):
File "c:\a\src\py\tools\tei-xml\tei.py", line 3, in
import betacode.conv
File "C:\Program Files\Python39\lib\site-packages\betacode\conv.py", line 4, in
import pygtrie
ModuleNotFoundError: No module named 'pygtrie'

I was expecting pip to handle this sort of thing, installing dependencies as required.

I'm running python 3.9.1 on Windows 10.

@matgrioni
Copy link
Owner

Hi joaomdsc,

Thanks for your patience and repro description. I'm planning to take a look at this this weekend. Should have a resolution for you by then.

@kristoffer-paulsson
Copy link

The same thing applies on macOs in IntelliJ IDEA:

Traceback (most recent call last):
File "/Users//PycharmProjects/bible-analyzer/classics.py", line 29, in
from betacode.conv import beta_to_uni
File "/Users//.local/share/virtualenvs/bible-analyzer/lib/python3.8/site-packages/betacode/conv.py", line 4, in
import pygtrie
ModuleNotFoundError: No module named 'pygtrie'

@matgrioni
Copy link
Owner

Hi @kristoffer-paulsson , thanks for resurfacing this. I clearly forgot about it. I'll take a look this weekend.

Likely I didn't properly specify dependencies. You could also get around it by installing pygtrie the same way you installed betacode.

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

3 participants