Newb - 2018.1 default Project folder structure?
I do "data analytics" work and was recently introduced to python and more specifically PyCharm. The quotes are because if data analytics is your thing, I play with brightly colored blocks by comparison. Regardless, I have had some pretty awesome success in this first month of use, that is until I accepted the upgrade.
Pre-Upgrade when I created a new project in Pycharm the folder structure would include the venv folder and all subs.
Since upgrading a new project splits the project folder and the venv. ie
where I used to have:
c:/folder1
| - Pycharm
| | - Project 1
| | | - venv (w Include, Lib, Scripts)
I now have:
c:/folder1
| - Pycharm
| | - Project 1 (new scripts get created here and in the PyCharm interface I don't even see the venv folder)
| - venv
| | - Project 1 (w Include, Lib, Scripts)
Did I do something wrong in my install?
I tried copying some code from an old project to a new project but I'm getting errors and I have a feeling it is because the venv folder is not a sub of the current pycharm/project folder where my script is being written.
Hopefully that made sense.
Please sign in to leave a comment.
For giggles I copied the code to a prior project and it runs as I expect.
As an example I am using pyodbc to connect to a database. According to Pycharm it is installed but I am getting "pyodbc.Error ('HY000', 'The driver did not supply an error!')". I dumbed down the connection string to a test connection that work in project A but not B. "A" being a project built from 2017.3 and B being built after the upgrade to 2018.1.
So if Project A works, but project B doesn't what should I compare to identify why B does not. One thing I have discovered is the in the new version, the virtual environment is not being built in the project folder but in a different folder. I have since tried to re build the virtual environment in the project folder by creating a new virt env via project settings. I think I am getting closer?