Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

PDF Reader Tool error

mmurph200
7 - Meteor

I downloaded the below macro from the community and got the below error when I ran it. Anyone know why?

 

 

https://community.alteryx.com/t5/Community-Gallery/PDF-Reader-Tool/ta-p/937908?lightbox-message-imag...

 

 

 

 

 

Read in PDF Macro (1) Record #1: Tool #1: ---------------------------------------------------------------------------¶CalledProcessError Traceback (most recent call last)¶<ipython-input-1-9c0b9b0a65a0> in <module>¶ 8 #################################¶ 9 from ayx import Alteryx¶---> 10 Alteryx.installPackages(package='PyPDF2', install_type="install --user")¶ 11 import pandas as pd¶ 12 import PyPDF2¶c:\program files\alteryx\bin\miniconda3\envs\designerbasetools_venv\lib\site-packages\ayx\export.py in installPackage(package, install_type, debug, **kwargs)¶ 131 This function will install a package or list of packages into the virtual environment used by the Python tool. If using an admin installation of Alteryx, you must run Alteryx as administrator in order to use this function and install packages.¶ 132 """¶--> 133 __installPackages__(package, install_type=install_type, debug=debug, **kwargs)¶ 134 ¶ 135 ¶c:\program files\alteryx\bin\miniconda3\envs\designerbasetools_venv\lib\site-packages\ayx\Package.py in installPackages(package, install_type, debug)¶ 200 print(pip_install_result["msg"])¶ 201 if not pip_install_result["success"]:¶--> 202 raise pip_install_result["err"]¶c:\program files\alteryx\bin\miniconda3\envs\designerbasetools_venv\lib\site-packages\ayx\Utils.py in runSubprocess(args_list, debug)¶ 118 ¶ 119 try:¶--> 120 result = subprocess.check_output(args_list, stderr=subprocess.STDOUT)¶ 121 if debug:¶ 122 print("[Subprocess success!]")¶c:\program files\alteryx\bin\miniconda3\envs\designerbasetools_venv\lib\subprocess.py in check_output(timeout, *popenargs, **kwargs)¶ 409 kwargs['input'] = '' if kwargs.get('universal_newlines', False) else b''¶ 410 ¶--> 411 return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,¶ 412 **kwargs).stdout¶ 413 ¶c:\program files\alteryx\bin\miniconda3\envs\designerbasetools_venv\lib\subprocess.py in run(input, capture_output, timeout, check, *popenargs, **kwargs)¶ 510 retcode = process.poll()¶ 511 if check and retcode:¶--> 512 raise CalledProcessError(retcode, process.args,¶ 513 output=stdout, stderr=stderr)¶ 514 return CompletedProcess(process.args, retcode, stdout, stderr)¶CalledProcessError: Command '['c:\\program files\\alteryx\\bin\\miniconda3\\envs\\designerbasetools_venv\\python.exe', '-I', '-m', 'pip', 'install', '--user', 'PyPDF2']' returned non-zero exit status 1.¶

2 REPLIES 2
gabrielvilella
14 - Magnetar

Try opening Designer as admin, right click on it > run as admin. Then try running the workflow.

mmurph200
7 - Meteor

I did so and it still did not work.

Labels