Hi all, anyone been getting ModuleNotFoundError is...
# getting-started
s
Hi all, anyone been getting ModuleNotFoundError issues when testing extractors? My tap-zendesk extractor worked fine yesterday and now I'm getting
ModuleNotFoundError: No module named 'urllib3.packages.six.moves'
Can't find anything online. I tried uninstalling meltano, creating a new project, etc. Plz help đź« 
âś… 1
e
Did you recently change Python versions?
s
No, I didn't. I'm on Python 3.12.3. I did uninstall and reinstall just in case but got the same issue
Hi @Edgar RamĂ­rez (Arch.dev) - it seems that python 3.12.3 had been giving me the problems with tap-zendesk as it was failing with the following:
Copy code
Traceback (most recent call last):
  File "/Users/stavros/Documents/projects/meltano-projects/test-project/.meltano/extractors/tap-zendesk/venv/bin/tap-zendesk", line 5, in <module>
    from tap_zendesk import main
  File "/Users/stavros/Documents/projects/meltano-projects/test-project/.meltano/extractors/tap-zendesk/venv/lib/python3.12/site-packages/tap_zendesk/__init__.py", line 5, in <module>
    from zenpy import Zenpy
  File "/Users/stavros/Documents/projects/meltano-projects/test-project/.meltano/extractors/tap-zendesk/venv/lib/python3.12/site-packages/zenpy/__init__.py", line 2, in <module>
    import requests
  File "/Users/stavros/Documents/projects/meltano-projects/test-project/.meltano/extractors/tap-zendesk/venv/lib/python3.12/site-packages/requests/__init__.py", line 43, in <module>
    import urllib3
  File "/Users/stavros/Documents/projects/meltano-projects/test-project/.meltano/extractors/tap-zendesk/venv/lib/python3.12/site-packages/urllib3/__init__.py", line 8, in <module>
    from .connectionpool import (
  File "/Users/stavros/Documents/projects/meltano-projects/test-project/.meltano/extractors/tap-zendesk/venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 11, in <module>
    from .exceptions import (
  File "/Users/stavros/Documents/projects/meltano-projects/test-project/.meltano/extractors/tap-zendesk/venv/lib/python3.12/site-packages/urllib3/exceptions.py", line 2, in <module>
    from .packages.six.moves.http_client import (
ModuleNotFoundError: No module named 'urllib3.packages.six.moves'
It seems that 3.12 had an issue with that package and even when trying to brew install it (and also requests and six) it didn't resolve it. What I did to resolve this was: • Install python 11 • Reinstall meltano with --python3.11 flag • meltano remove extractor tap-zendesk (this is because if I ran it without reinstalling it it was trying to run on 3.12 version and gave the same issue) • meltano add extractor tap-zendesk (I verified that the
myproject/.meltano/extractors/tap-zendesk/pyvenv.cfg
file was referencing 3.11 version •
meltano --environment=dev config tap-zendesk test
command actually worked successfully!
e
This is the twilio-labs variant right?
s
That's correct. I'm referring to: https://hub.meltano.com/extractors/tap-zendesk/
e
Ok, if you wanna give Python 3.12 a second chance, try changing the
pip_url
to
git+<https://github.com/twilio-labs/twilio-tap-zendesk.git@refs/pull/27/head>
(and reinstall the plugin)
s
got it, for now and because we are heavily time restricted I'll continue working with this setup but definitely give it another try. Thanks !
👍 1