You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python /Library/Python/2.7/site-packages/imgscii/
__init__.py __init__.pyc imgscii.py imgscii.pyc
STRIPPER:ascii tim$ python /Library/Python/2.7/site-packages/imgscii/
__init__.py __init__.pyc imgscii.py imgscii.pyc
STRIPPER:ascii tim$ python /Library/Python/2.7/site-packages/imgscii/
__init__.py __init__.pyc imgscii.py imgscii.pyc
STRIPPER:ascii tim$ python /Library/Python/2.7/site-packages/imgscii/imgscii.py
What is the name of the image?~/Desktop/berd.png
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/imgscii/imgscii.py", line 252, in<module>main()
File "/Library/Python/2.7/site-packages/imgscii/imgscii.py", line 35, in main
file_name = input("What is the name of the image?\n")
File "<string>", line 1
~/Desktop/berd.png
^
SyntaxError: invalid syntax
OK, so I need to put quotes around my image name. Not that bad, but now...
python /Library/Python/2.7/site-packages/imgscii/imgscii.py
What is the name of the image?"/Users/tim/Desktop/berd.png"
How many columns do you want your ASCII art to be?
40
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/imgscii/imgscii.py", line 252, in<module>main()
File "/Library/Python/2.7/site-packages/imgscii/imgscii.py", line 60, in main
printscii(file_name, monochrome=args.monochrome, columns=columns)
File "/Library/Python/2.7/site-packages/imgscii/imgscii.py", line 242, in printscii
image = resize_image(image, width)
File "/Library/Python/2.7/site-packages/imgscii/imgscii.py", line 98, in resize_image
return img.resize((round(new_width), round(new_height)))
File "/Library/Python/2.7/site-packages/PIL/Image.py", line 1645, in resize
return self._new(self.im.resize(size, resample))
TypeError: integer argument expected, got float
I enter an integer and it thinks it's a float? Looks like you need to do some casting... int(input).
I also tried typing int(40) and no dice.
The text was updated successfully, but these errors were encountered:
First no-no:
OK, so I need to put quotes around my image name. Not that bad, but now...
I enter an integer and it thinks it's a float? Looks like you need to do some casting...
int(input)
.I also tried typing
int(40)
and no dice.The text was updated successfully, but these errors were encountered: