It would really be great to have this script working. However, I encountered an error.
I did not run the script from terminal (using "python3 gen-badges") because it didn't work. I ran the script from within the Visual Code editor. I already tried using the full path name, but it didn't work. Please help :)
The output can be seen below:
FileNotFoundError Traceback (most recent call last)
g:\My Drive\Onderneming\klanten\unizo\buro international\namebadge-generator\gen-namebadges.py in
35 build_tex('namebadges-orga')
36
---> 37 main()
g:\My Drive\Onderneming\klanten\unizo\buro international\namebadge-generator\gen-namebadges.py in main()
30 if os.path.isfile('attendees.csv'):
31 generate_tex_from_csv('attendees.csv','attendees.tex')
---> 32 build_tex('namebadges')
33 if os.path.isfile('orga.csv'):
34 generate_tex_from_csv('orga.csv','orga.tex')
g:\My Drive\Onderneming\klanten\unizo\buro international\namebadge-generator\gen-namebadges.py in build_tex(name)
25 def build_tex(name):
26 # subprocess.run(['pdflatex', name]).check_returncode()
---> 27 subprocess.run(['pdflatex', name]).check_returncode()
28
29 def main():
~\Anaconda3\envs\dataminingenv\lib\subprocess.py in run(input, capture_output, timeout, check, *popenargs, **kwargs)
487 kwargs['stderr'] = PIPE
488
--> 489 with Popen(*popenargs, **kwargs) as process:
490 try:
491 stdout, stderr = process.communicate(input, timeout=timeout)
~\Anaconda3\envs\dataminingenv\lib\subprocess.py in init(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
852 encoding=encoding, errors=errors)
853
--> 854 self._execute_child(args, executable, preexec_fn, close_fds,
855 pass_fds, cwd, env,
856 startupinfo, creationflags, shell,
~\Anaconda3\envs\dataminingenv\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)
1305 # Start the process
1306 try:
-> 1307 hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
1308 # no special security
1309 None, None,
FileNotFoundError: [WinError 2] The system cannot find the file specified
It would really be great to have this script working. However, I encountered an error.
I did not run the script from terminal (using "python3 gen-badges") because it didn't work. I ran the script from within the Visual Code editor. I already tried using the full path name, but it didn't work. Please help :)
The output can be seen below:
FileNotFoundError Traceback (most recent call last)
g:\My Drive\Onderneming\klanten\unizo\buro international\namebadge-generator\gen-namebadges.py in
35 build_tex('namebadges-orga')
36
---> 37 main()
g:\My Drive\Onderneming\klanten\unizo\buro international\namebadge-generator\gen-namebadges.py in main()
30 if os.path.isfile('attendees.csv'):
31 generate_tex_from_csv('attendees.csv','attendees.tex')
---> 32 build_tex('namebadges')
33 if os.path.isfile('orga.csv'):
34 generate_tex_from_csv('orga.csv','orga.tex')
g:\My Drive\Onderneming\klanten\unizo\buro international\namebadge-generator\gen-namebadges.py in build_tex(name)
25 def build_tex(name):
26 # subprocess.run(['pdflatex', name]).check_returncode()
---> 27 subprocess.run(['pdflatex', name]).check_returncode()
28
29 def main():
~\Anaconda3\envs\dataminingenv\lib\subprocess.py in run(input, capture_output, timeout, check, *popenargs, **kwargs)
487 kwargs['stderr'] = PIPE
488
--> 489 with Popen(*popenargs, **kwargs) as process:
490 try:
491 stdout, stderr = process.communicate(input, timeout=timeout)
~\Anaconda3\envs\dataminingenv\lib\subprocess.py in init(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
852 encoding=encoding, errors=errors)
853
--> 854 self._execute_child(args, executable, preexec_fn, close_fds,
855 pass_fds, cwd, env,
856 startupinfo, creationflags, shell,
~\Anaconda3\envs\dataminingenv\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)
1305 # Start the process
1306 try:
-> 1307 hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
1308 # no special security
1309 None, None,
FileNotFoundError: [WinError 2] The system cannot find the file specified