Jul-14-2018, 12:35 AM
Hi All,
I had a script which I use to scrape a website, which has been working reliably for months. I installed TensorFlow just over a week ago, and a day or so later, my script stopped working. The issue is that I'm getting import errors in some of the modules.
In order to try to fault find, I have written this script to find which modules are causing the error.
What I have tried so far:
As I said, I'm stumped. I've spent a week trying to resolve this
If anyone knows what's gone wrong, I'd appreciate your help.
I had a script which I use to scrape a website, which has been working reliably for months. I installed TensorFlow just over a week ago, and a day or so later, my script stopped working. The issue is that I'm getting import errors in some of the modules.
In order to try to fault find, I have written this script to find which modules are causing the error.
try:
import sys
except:
print("sys " + str(ImportError))
try:
import os
except:
print("os " + str(ImportError))
try:
import urllib
except:
print("urllib " + str(ImportError))
try:
import win32clipboard
except:
print("win32clipboard " + str(ImportError))
try:
import re
except:
print("re " + str(ImportError))
try:
import webbrowser
except:
print("webbrowser, " + str(ImportError))
try:
import fnmatch
except:
print("fnmatch " + str(ImportError))
print ()
print(sys.version)
finalClose = input("Press any key")which gives me:Output:win32clipboard <class 'ImportError'>
re <class 'ImportError'>
webbrowser <class 'ImportError'>
fnmatch <class 'ImportError'>
3.6.6 (v3.6.6.6:4c41f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)]
Press any keyI'm stumped as to how to resolve this.What I have tried so far:
- Repairing Python
- Re-installing Python
- Re-installing Python Windows extensions
- Removing Tensorflow
- Un-installing python completely, and cleaned the registry
- read every thread I can find
As I said, I'm stumped. I've spent a week trying to resolve this
If anyone knows what's gone wrong, I'd appreciate your help.
