<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: PyeongGang Ha</title>
    <description>The latest articles on DEV Community by PyeongGang Ha (@ctrlcctrlv).</description>
    <link>https://dev.to/ctrlcctrlv</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3644772%2Fea0ba799-ba50-4d38-a6d7-a5b16a21c345.png</url>
      <title>DEV Community: PyeongGang Ha</title>
      <link>https://dev.to/ctrlcctrlv</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ctrlcctrlv"/>
    <language>en</language>
    <item>
      <title>Seeking advice on a Python venv issue blocking my AI productivity tools (built with 'Vibe Coding'!) S</title>
      <dc:creator>PyeongGang Ha</dc:creator>
      <pubDate>Thu, 04 Dec 2025 02:51:47 +0000</pubDate>
      <link>https://dev.to/ctrlcctrlv/seeking-advice-on-a-python-venv-issue-blocking-my-ai-productivity-tools-built-with-vibe-coding-38k3</link>
      <guid>https://dev.to/ctrlcctrlv/seeking-advice-on-a-python-venv-issue-blocking-my-ai-productivity-tools-built-with-vibe-coding-38k3</guid>
      <description>&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;I've been hearing the term 'vibe coding' recently, and somehow I found myself riding that wave. After a few days of just tinkering with an AI, I managed to build and even publish two small apps to the Microsoft Store. It's been a truly amazing and surprising experience!&lt;/p&gt;

&lt;p&gt;Riding that high, I got ambitious and started on a third program, but I've hit an unexpected wall and would love to get your advice.&lt;/p&gt;




&lt;h3&gt;
  
  
  The Tools I'm Building
&lt;/h3&gt;

&lt;p&gt;My goal is to make the PC experience smarter using voice commands and AI.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;OmniVoiceKey:&lt;/strong&gt; A free voice recognition utility I built out of frustration with the native voice recognition in Windows 10. It lets you use a hotkey to recognize your voice and preview the text, and it works directly in the Windows environment without needing any special APIs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;QuickAskAI:&lt;/strong&gt; A utility that lets you instantly ask an AI a question with a hotkey and get a quick answer.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;(Both of these are already on the Microsoft Store!)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;And now, I'm working on a &lt;strong&gt;'personal search engine' called ContextIndexer&lt;/strong&gt; to tie them all together. It's a system that automatically saves my voice commands and AI search history locally, allowing the AI to reference these logs for smarter, context-aware answers in the future.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Motivation: Solving My Own Problem
&lt;/h3&gt;

&lt;p&gt;Honestly, this search engine project started because I was trying to solve a problem I was personally facing while working with AIs.&lt;/p&gt;

&lt;p&gt;I rely heavily on AI for development, but I found myself having to create a new chat session more than 10 times a day because I thought longer chats cost more in tokens as the AI re-reads the whole context. As a result, the conversation context was constantly being lost, which was incredibly frustrating. On top of that, the token costs for re-explaining the context were growing exponentially—I spent over $50 in just three days.&lt;/p&gt;

&lt;p&gt;So, I decided, &lt;em&gt;"Why not build a database of all my development logs and let the AI search it when needed?"&lt;/em&gt; And that's how the &lt;code&gt;ContextIndexer&lt;/code&gt; project was born.&lt;/p&gt;

&lt;p&gt;The irony is, while building this very system meant to save costs, I've run into a technical roadblock.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Current Problem: Python Virtual Environment
&lt;/h3&gt;

&lt;p&gt;The core logic of this search system is being developed in Python, but for some reason, my Python 3.12 virtual environment isn't working correctly, and it's blocking my progress.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;OS:&lt;/strong&gt; Windows 10&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Execution Method:&lt;/strong&gt; An &lt;code&gt;index.bat&lt;/code&gt; batch file that directly calls the &lt;code&gt;python.exe&lt;/code&gt; from inside the &lt;code&gt;.venv&lt;/code&gt; folder.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Even though I'm sure I created the &lt;code&gt;.venv&lt;/code&gt; with Python 3.12, running the &lt;code&gt;index.bat&lt;/code&gt; file &lt;strong&gt;keeps calling a Python 3.14 version&lt;/strong&gt;, which causes an error.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;(Most Importantly!) My Debugging Journey So Far:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here is a log of the steps I've taken to try and solve this on my own:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
text
# Python Environment Debug Log (2025-12-04)

## Final Goal
Get the ContextIndexer project to run correctly in a stable Python 3.12 environment.

## Troubleshooting Timeline

### Attempt 1: Modify System PATH
- Hypothesis: The system's default Python version was incorrectly set to 3.14.
- Action: Elevated the priority of the Python 3.12 path in the system PATH variables. Confirmed `python --version` showed 3.12 in a new terminal.
- Result: Failure. Running index.bat led to other errors, like not finding `pip`.
- Analysis: Discovered that index.bat references the project's virtual environment (.venv) regardless of the system PATH.

### Attempt 2: Recreate Virtual Environment (.venv) - 1st time
- Hypothesis: The existing .venv might be corrupted.
- Action: Created a fresh venv using `python -m venv .venv` and installed libraries.
- Result: Failure. `ModuleNotFoundError`.

### Attempt 3: Resolving Dependencies (Dependency Hell)
- Hypothesis: Version conflicts between libraries, likely `langchain-google-genai` and `google-generativeai`.
- Action: Tried reinstalling and realigning packages.
- Result: The installation itself succeeded, but the root problem remained.

### Attempt 4: Final Test and Root Cause Discovery
- Action: Ran `.\index.bat` again.
- Result: Critical Failure. `TypeError: Metaclasses with custom tp_new are not supported.`
- Final Conclusion: I finally noticed that the error log path referenced `Python314`. This means the command I used to create the venv (`python -m venv .venv`) was itself being run by the system's Python 3.14, not the intended 3.12, creating a contaminated virtual environment from the start.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>ai</category>
      <category>showdev</category>
      <category>discuss</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
