Installation to shared network folder
Posted: 2016-11-03T09:08:51-07:00
Hi All !
I need some advice on non-standard installation.
I'm writing a python script using image magick. It's working OK on my machine, but now I'd like to distribute it to other users in office.
If I run the script on onther computers I get errors like this:
and more...
Here are some facts:
1. my script works on my machine (windows7).
2. I Installed imagick locally from .exe installator, however I don't see any paths in PATH envvar. Also I don't have MAGICK_HOME envvar
3. I copied C:\Program Files\ImageMagick-7.0.3-Q16 to a network drive and inside my python script I set envvars like this:
4. I use full paths to magick.exe
5. error from first line is for this command (executed from python script):
I'd like to avoid manually installing imagemagick on each machine. Is there any method to have it setup with just envvars ?
thanks !
-michal
I need some advice on non-standard installation.
I'm writing a python script using image magick. It's working OK on my machine, but now I'd like to distribute it to other users in office.
If I run the script on onther computers I get errors like this:
Code: Select all
magick.exe: unable to open image 'xc:black': No such file or directory @ error/blob.c/OpenBlob/2695.
magick.exe: no decode delegate for this image format `' @ error/constitute.c/ReadImage/508.
magick.exe: no image to apply a property "%w" @ warning/property.c/GetMagickPropertyLetter/2550.
magick.exe: unknown image property "%w" @ warning/property.c/InterpretImageProperties/3488.
magick.exe: no image to apply a property "%h" @ warning/property.c/GetMagickPropertyLetter/2438.
magick.exe: unknown image property "%h" @ warning/property.c/InterpretImageProperties/3488.
magick.exe: no image to apply a property "%m" @ warning/property.c/GetMagickPropertyLetter/2469.
magick.exe: unknown image property "%m" @ warning/property.c/InterpretImageProperties/3488.
Here are some facts:
1. my script works on my machine (windows7).
2. I Installed imagick locally from .exe installator, however I don't see any paths in PATH envvar. Also I don't have MAGICK_HOME envvar
3. I copied C:\Program Files\ImageMagick-7.0.3-Q16 to a network drive and inside my python script I set envvars like this:
Code: Select all
os.environ['PATH'] = '//hal/Apps/ImageMagick/nt64/7.0.3;' + os.environ['PATH']
os.environ['MAGICK_HOME'] = '//hal/Apps/ImageMagick/nt64/7.0.3/modules/coders'
5. error from first line is for this command (executed from python script):
Code: Select all
//hal/Apps/ImageMagick/nt64/7.0.3/magick.exe -size 1020x204 xc:black //fs2/Projects/test.jpg
thanks !
-michal