Error: PyCryptodome is required -- Chat with RTX

I hit this error in nearly every other PDF document. The majority are not encrypted.

Does anyone have any suggestions on how to integrate pycroptodome into this project so that I can read more of my PDFs?

I have seen a few others on these forums with the same error.

Failed to load file D:\Shark\Archives\AI + Strategy\2015CF_Crowdfunding_Industry_Report (1).pdf with error: PyCryptodome is required for AES algorithm. Skipping...


2 Likes

I have the same problem, and this video helped me fix it.

2 Likes

Thanks for sharing, I’ll try it out later tonight.

Thanks so much for this. It instantly worked and now the majority of my PDFs are readable.

I followed the directions and was able to install (using pip) the pycryptodome, and even run tests in IDLE, but for some reason, Chat with RTX doesn’t see that. How were you guys able to get Chat with RTX to see and use the Crypto module? I tried checking app.py and including “import Crypto” but it doesn’t find it. Maybe it’s a virtual environment? Any tips?

There seems to be an issue here, I noticed this a few days ago as well. A workaround the workaround is to make sure that your local instance of Python is running, before starting Chat with RTX. On my machine this solves the problem.

Did you happen to have steps for making that work? I have Python 3.12 installed and all of the modules are loaded but I know it’s using a virtual environment with miniconda so…how did you get it all to work?

In addition to the directions in the video above, once you have pycryptodome installed from powershell I did a pip show pycryptodome and navigated to the Location: it showed in File Explorer and copied the folder Crypto to the site-packages folder used by Chat with RTX located at C:\Users\%USERPROFILE%\AppData\Local\NVIDIA\ChatWithRTX\env_nvd_rag\Lib\site-packages. Mine is still scanning my directory but seems to be working now.

This worked for me, thanks. However, I only used the Python that is packaged with Chat with RTX and I opened up the Anaconda command window, activated the environment (otherwise the server would not launch) and installed the crypto package there

what was the name of the activated environment?

The name of my environment was “base” which was activated on launch of Anaconda Powershell Prompt (Miniconda), which I’m guessing is Anaconda’s default launch environment. I installed pycryptodome and I’m still having issues, I even copied the pycryptodome-3.20.0.dist-info file into C:\Users%USERPROFILE%\AppData\Local\NVIDIA\ChatWithRTX\env_nvd_rag\Lib\site-packages and had no luck .

Thank you. Crystal clear concise instructions. Worked like a charm.