thisisparker / cursewords

:pencil: Terminal-based crossword puzzle solving interface
GNU Affero General Public License v3.0
248 stars 28 forks source link

failed to install properly #11

Closed rchrdlln closed 5 years ago

rchrdlln commented 5 years ago

I'm on OSX 10.9.5

originally when it installed I got this warning:

The script cursewords is installed in '/Users/[USERNAME]/Library/Python/3.7/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

so I tried

cp /Users/fullname/Library/Python/3.7/bin/cursewords /usr/local/bin/

then when I tried to open a .puz file using the "cursewords" command I got the following:

(the command in /usr/local/bin/ that alphabetically precedes "cursewords" is "convert" which is an ImageMagick command, which I assume is why I'm getting the first part of the message)


Version: ImageMagick 7.0.5-0 Q16 x86_64 2017-03-07 http://www.imagemagick.org Copyright: © 1999-2017 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC HDRI Modules Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib Usage: import [options ...] [ file ]

Image Settings: -adjoin join images into a single multi-image file -border include window border in the output image -channel type apply option to select image channels -colorspace type alternate image colorspace -comment string annotate image with comment -compress type type of pixel compression when writing the image -define format:option define one or more image format options -density geometry horizontal and vertical density of the image -depth value image depth -descend obtain image by descending window hierarchy -display server X server to contact -dispose method layer disposal method -dither method apply error diffusion to image -delay value display the next image after pausing -encipher filename convert plain pixels to cipher pixels -endian type endianness (MSB or LSB) of the image -encoding type text encoding type -filter type use this filter when resizing an image -format "string" output formatted image characteristics -frame include window manager frame -gravity direction which direction to gravitate towards -identify identify the format and characteristics of the image -interlace type None, Line, Plane, or Partition -interpolate method pixel color interpolation method -label string assign a label to an image -limit type value Area, Disk, Map, or Memory resource limit -monitor monitor progress -page geometry size and location of an image canvas -pause seconds seconds delay between snapshots -pointsize value font point size -quality value JPEG/MIFF/PNG compression level -quiet suppress all warning messages -regard-warnings pay attention to warning messages -respect-parentheses settings remain in effect until parenthesis boundary -sampling-factor geometry horizontal and vertical sampling factor -scene value image scene number -screen select image from root window -seed value seed a new sequence of pseudo-random numbers -set property value set an image property -silent operate silently, i.e. don't ring any bells -snaps value number of screen snapshots -support factor resize support: > 1.0 is blurry, < 1.0 is sharp -synchronize synchronize image to storage device -taint declare the image as modified -transparent-color color transparent color -treedepth value color tree depth -verbose print detailed information about the image -virtual-pixel method Constant, Edge, Mirror, or Tile -window id select window with this id or name

Image Operators: -annotate geometry text annotate the image with text -colors value preferred number of colors in the image -crop geometry preferred size and location of the cropped image -encipher filename convert plain pixels to cipher pixels -geometry geometry preferred size or location of the image -help print program options -monochrome transform image to black and white -negate replace every pixel with its complementary color -repage geometry size and location of an image canvas -quantize colorspace reduce colors in this colorspace -resize geometry resize the image -rotate degrees apply Paeth rotation to the image -strip strip image of all profiles and comments -thumbnail geometry create a thumbnail of the image -transparent color make this color transparent within the image -trim trim image edges -type type image type

Miscellaneous Options: -debug events display copious debugging information -help print program options -list type print a list of supported option arguments -log format format of debugging information -version print version information

By default, 'file' is written in the MIFF image format. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output. import: delegate library support not built-in '' (X11) @ error/import.c/ImportImageCommand/1294. Version: ImageMagick 7.0.5-0 Q16 x86_64 2017-03-07 http://www.imagemagick.org Copyright: © 1999-2017 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC HDRI Modules Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib Usage: import [options ...] [ file ]

Image Settings: -adjoin join images into a single multi-image file -border include window border in the output image -channel type apply option to select image channels -colorspace type alternate image colorspace -comment string annotate image with comment -compress type type of pixel compression when writing the image -define format:option define one or more image format options -density geometry horizontal and vertical density of the image -depth value image depth -descend obtain image by descending window hierarchy -display server X server to contact -dispose method layer disposal method -dither method apply error diffusion to image -delay value display the next image after pausing -encipher filename convert plain pixels to cipher pixels -endian type endianness (MSB or LSB) of the image -encoding type text encoding type -filter type use this filter when resizing an image -format "string" output formatted image characteristics -frame include window manager frame -gravity direction which direction to gravitate towards -identify identify the format and characteristics of the image -interlace type None, Line, Plane, or Partition -interpolate method pixel color interpolation method -label string assign a label to an image -limit type value Area, Disk, Map, or Memory resource limit -monitor monitor progress -page geometry size and location of an image canvas -pause seconds seconds delay between snapshots -pointsize value font point size -quality value JPEG/MIFF/PNG compression level -quiet suppress all warning messages -regard-warnings pay attention to warning messages -respect-parentheses settings remain in effect until parenthesis boundary -sampling-factor geometry horizontal and vertical sampling factor -scene value image scene number -screen select image from root window -seed value seed a new sequence of pseudo-random numbers -set property value set an image property -silent operate silently, i.e. don't ring any bells -snaps value number of screen snapshots -support factor resize support: > 1.0 is blurry, < 1.0 is sharp -synchronize synchronize image to storage device -taint declare the image as modified -transparent-color color transparent color -treedepth value color tree depth -verbose print detailed information about the image -virtual-pixel method Constant, Edge, Mirror, or Tile -window id select window with this id or name

Image Operators: -annotate geometry text annotate the image with text -colors value preferred number of colors in the image -crop geometry preferred size and location of the cropped image -encipher filename convert plain pixels to cipher pixels -geometry geometry preferred size or location of the image -help print program options -monochrome transform image to black and white -negate replace every pixel with its complementary color -repage geometry size and location of an image canvas -quantize colorspace reduce colors in this colorspace -resize geometry resize the image -rotate degrees apply Paeth rotation to the image -strip strip image of all profiles and comments -thumbnail geometry create a thumbnail of the image -transparent color make this color transparent within the image -trim trim image edges -type type image type

Miscellaneous Options: -debug events display copious debugging information -help print program options -list type print a list of supported option arguments -log format format of debugging information -version print version information

By default, 'file' is written in the MIFF image format. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output. import: delegate library support not built-in '' (X11) @ error/import.c/ImportImageCommand/1294. from: can't read /var/mail/cursewords /usr/local/bin/cursewords: line 10: syntax error near unexpected token (' /usr/local/bin/cursewords: line 10: sys.argv[0] = re.sub(r'(-script.pyw?|.exe)?$', '', sys.argv[0])'

thisisparker commented 5 years ago

Can you check if it's working correctly in the non-PATH directory it installed in? Maybe just by running it with an absolute path, like:

/Users/FULLNAME/Library/Python/3.7/bin/cursewords --version
rchrdlln commented 5 years ago

I did try that but not with the "--version" tag. Will try again

On Thu, Mar 7, 2019, 2:51 PM Parker Higgins notifications@github.com wrote:

Can you check if it's working correctly in the non-PATH directory it installed in? Maybe just by running it with an absolute path, like:

/Users/FULLNAME/Library/Python/3.7/bin/cursewords --version

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/thisisparker/cursewords/issues/11#issuecomment-470669147, or mute the thread https://github.com/notifications/unsubscribe-auth/AFQqFTozpF_vSmtpl2fbKKQtkvqCPv6-ks5vUW3HgaJpZM4biM9r .

thisisparker commented 5 years ago

I'm going to close this issue, but feel free to re-open if you're still having problems

rchrdlln commented 5 years ago

I ran with "--version" and got basically the same error (see below):

Version: ImageMagick 7.0.5-0 Q16 x86_64 2017-03-07 http://www.imagemagick.org Copyright: © 1999-2017 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC HDRI Modules Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib Usage: import [options ...] [ file ]

By default, 'file' is written in the MIFF image format. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output. import: delegate library support not built-in '' (X11) @ error/import.c/ImportImageCommand/1294. from: can't read /var/mail/cursewords /Users/fullname/Library/Python/3.7/bin/cursewords: line 10: syntax error near unexpected token `(' /Users/fullname/Library/Python/3.7/bin/cursewords: line 10: ` sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])'
rchrdlln commented 5 years ago

I tried to upgrade pip and got a similar error, so it's not cursewords, it's probably something related to pip.

This is what I got when I tried to a workaround by updating pip with curl:

/usr/local/bin/python3: line 10: syntax error near unexpected token (' /usr/local/bin/python3: line 10: sys.argv[0] = re.sub(r'(-script.pyw?|.exe)?$', '', sys.argv[0])' 1 1659k 1 18611 0 0 17723 0 0:01:35 0:00:01 0:01:34 17741 curl: (23) Failed writing body (0 != 2759)

I think the problem has something to do with this:

https://github.com/pypa/pip/issues/5250

thisisparker commented 5 years ago

Yeah, I'm sorry! That sounds like something out of scope for here. What version of pip are you upgrading from? I know the upgrade from versions before 10 were a little rocky because of a conflict between its own installation mechanism and the one in package managers