Skip to content

Instantly share code, notes, and snippets.

View tarrzan33's full-sized avatar

Zack Tarr tarrzan33

  • Indianapolis Indiana
View GitHub Profile
public class BarChartData
{
public string x { get; set; }
public double? y { get; set; }
public double? y1 { get; set; }
}
[HttpGet]
public List<BarChartData> TeamTicketCountsList()
{
Random random = new Random();
var result = new List<BarChartData>
{
new BarChartData {x="EBA Dev", y = random.Next(0, 60),y1 = random.Next(0, 40) },
new BarChartData {x="EBA Support", y = random.Next(0, 60),y1 = random.Next(0, 40) },
new BarChartData {x="EBA Application Support", y = random.Next(0, 60),y1 = random.Next(0, 40) }
};
jQuery('.form--ssn-submit', namespace).on('submit', function (e) {
//Tons of code
});
Spec file:
# -*- mode: python -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=['C:\\Users\\ztarr\\Desktop\\Exe Test - Copy'],
binaries=[],
datas=[],
C:\Users\ztarr\Desktop\Exe Test>py -3.5 setup.py py2exe
running py2exe
1 missing Modules
------------------
? readline imported from cmd, code, pdb
Building 'dist\main.exe'.
error: [Errno 2] No such file or directory: 'C:\\Python35-32\\lib\\site-packages\\py2exe\\run-py3.5-win32.exe'
C:\Users\ztarr\Desktop\Exe Test>
*************Error Message when main.exe is ran*************
Traceback (most recent call last):
File "main.py", line 4, in <module>
File "c:\python36-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
exec(bytecode, module.__dict__)
File "makeAHK.py", line 1, in <module>
File "c:\python36-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\pahk.py", line 4, in <module>
ImportError: cannot import name 'getsitepackages'