matgrioni / betacode

A small python package to flexibly convert from betacode to unicode and back.
MIT License
20 stars 2 forks source link

Missing dependency 'pygtrie' #12

Open joaomdsc opened 3 years ago

joaomdsc commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

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 commented 2 years ago

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.