I've written a graphing program using the PyQT4 and plot.ly libraries. I've tried packaging the program using py2exe, and everything compiled, but when the program reaches the point where the plot.ly library is being used, an error occurs.
File "Efficio.py", line 154, in generateGraph
File "plotly\offline\offline.pyc", line 283, in plot
File "plotly\offline\offline.pyc", line 47, in get_plotlyjs
File "pkg_resources\__init__.pyc", line 1173, in resource_string
File "pkg_resources\__init__.pyc", line 1605, in get_resource_string
File "pkg_resources\__init__.pyc", line 1683, in _get
IOError: [Errno 0] Error: 'plotly\\offline\\plotly.min.js'
Here's my imports:
import sys
from PyQt4 import QtGui
import plotly
import plotly.graph_objs as go
import webbrowser
And my setup file:
from distutils.core import setup
import py2exe
setup(windows=['Efficio.py'],
options = {
'py2exe' : {
'packages' : ['plotly'],
'dll_excludes' : ["MSVCP90.dll", "HID.DLL", "w9xpopen.exe"],
'includes' : ["sip", "requests", "six", "pytz"]
}
}
)
What did I do wrong?