Traceback error - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: Traceback error (/thread-10502.html) |
RE: Traceback error - Larz60+ - May-25-2018 Looking back at the error message you had, I now see that you have a virtual environment set up. This is good, but also the reason that you are seeing errors, and an easy fix. Virtual environments isolate your project so that is has it's own environment. You have to install packages within that environment taht will be used by the project. This keeps the package as small as possible, and also keeps it immune to problems when the system changes. So, Here's what needs to be done. with your project loaded in PyCharm:
I will be on and off Friday, but please let me know how you make out. I will respond when I read posts. RE: Traceback error - tjnichols - May-25-2018 Ok great! There were no errors but nothing happened. I've retired the other versions so we are only working from one module. As always all help is very much appreciated! RE: Traceback error - Larz60+ - May-25-2018 Was there a populated apis.txt file in the text directory? This file drives the software, if not there, nothing will happen again file can be created with notepad, and the format for file is like (with api keys for the files you want to fetch): Did you get any error messages?
RE: Traceback error - tjnichols - May-25-2018 Hey Larz60+ - yes the text file is populated with (I think) 100 wells. They are formatted like this: “49009229900000”. Could the quotes be a problem? RE: Traceback error - Larz60+ - May-25-2018 eliminate the quotes RE: Traceback error - tjnichols - May-25-2018 Done - it had no effect. No errors but nothing magical either. RE: Traceback error - Larz60+ - May-26-2018 It works on my end. If you want to continue, I think the next step is to:
RE: Traceback error - tjnichols - May-26-2018 C:\Users\toliver\AppData\Local\Programs\Python\Python36\text\apis.txt C:\Users\toliver\AppData\Local\Programs\Python\Python36\WOGCC_File_Downloadstest.py I'm going to try this on my laptop at home. I'll see if it's different there too. RE: Traceback error - Larz60+ - May-26-2018 Oh, this is so wrong! I listed that the text directory had to be directly below the src directory, and you didn't even create a src directory. the directory structure is extremely important! This is why I created step by step instructions. Your programs should never be in the python directory. I don't even know what issues this may cause. you are going to have to start over by uninstalling python, reinstalling and then creating a separate work area It might be possible to create a few programs this way, but just think about this: what happens next time there is a python upgrade? All of your old programs will not be able to take advantage of the update. Don't put any of your code anywhere near the python interpreter! 1. uninstall python 3.6. Reinstall, following snippsats instructions for python installation here: https://python-forum.io/Thread-Basic-Part-1-Python-3-6-and-pip-installation-under-Windows Your programs need to be isolated from the interpreter, and preferably on another drive. You can go back and follow the step by step instructions for installation of the programs. RE: Traceback error - tjnichols - May-26-2018 Ok - can you give me your paths? The only path I have with that configuration is the one we were working with before we came back to this one. Can you post your code as well? Hopefully, if I have your code and I set it up with your path it will work for me as well? What is your OS? |