id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
Python_StringIO/775_27_0.txt |
I'm not aware running in a virtualenv. To be honest, I'm not even really sure
what that is... | |
Python_StringIO/1006_40_0.txt | {{ message }} | |
Python_StringIO/1006_250_0.txt | Author | |
Python_StringIO/1006_158_0.txt | Member | |
Python_StringIO/25046pilhowreturnstr_103_0.txt | [ 1 ](https://bytes.com/topic/python/answers/770843-parameters-image-
fromstring-function-pil) [ ](https://bytes.com/) | |
Python_StringIO/1006_321_0.txt | Copy link | |
Python_StringIO/1006_350_0.txt | * [ Terms ](https://docs.github.com/site-policy/github-terms/github-terms-of-service)
* [ Privacy ](https://docs.github.com/site-policy/privacy-policies/github-privacy-statement)
* [ Security ](https://github.com/security)
* [ Status ](https://www.githubstatus.com/)
* [ Docs ](https://docs.github.com/)
* [ Contact ](ht... | |
Python_StringIO/25046pilhowreturnstr_113_0.txt | [ 0 ](https://bytes.com/topic/computer-hardware/insights/979211-how-build-
raid-bios) [ ](https://bytes.com/) | |
Python_StringIO/775_44_0.txt |
Did you change anything? I have to re-check how this example behaves in a
Flask environment. It's still kind of strange indeed. The image file looks
o.k. as far as I can tell but we can check with other images of course. | |
Python_StringIO/1006_133_0.txt | f = StringIO( string(0) )
t = open('test.png','wb')
t.write(f.getvalue())
t.close() | |
Python_StringIO/2205_117_0.txt | **[ allexiusw ](/allexiusw) ** commented May 29, 2020 | |
Python_StringIO/25046pilhowreturnstr_49_0.txt | [ Bengt Richter ](/register/) | |
Python_StringIO/2205_65_0.txt | I tried to save an image to a StringIO object. | |
Python_StringIO/1006_191_0.txt | figured it out, it's a global vs local instance issue | |
Python_StringIO/2205_13_0.txt | * [ CI/CD & Automation ](https://github.com/solutions/ci-cd)
* [ DevOps ](https://github.com/solutions/devops)
* [ DevSecOps ](https://resources.github.com/devops/fundamentals/devsecops) | |
Python_StringIO/25046pilhowreturnstr_67_0.txt | --- | |
Python_StringIO/2205_21_0.txt | * [ Pricing ](https://github.com/pricing) | |
Python_StringIO/2205_59_0.txt | [

](/boskicthebrain) | |
Python_StringIO/25046pilhowreturnstr_33_0.txt | On Fri, 14 Nov 2003 16:45:39 +0100, "Fredrik Lundh" <fr*****@pythonware.com>
wrote: | |
Python_StringIO/2205_98_0.txt | * 👍 1 reaction | |
Python_StringIO/2205_120_0.txt | --- | |
Python_StringIO/1006_179_0.txt |
ah ok, I know exactly what's going on here (pillow.py): | |
Python_StringIO/2205_46_0.txt | New issue | |
Python_StringIO/1006_13_0.txt | * [ CI/CD & Automation ](https://github.com/solutions/ci-cd)
* [ DevOps ](https://github.com/solutions/devops)
* [ DevSecOps ](https://resources.github.com/devops/fundamentals/devsecops) | |
Python_StringIO/25046pilhowreturnstr_123_0.txt | [ General ](https://bytes.com/topic/general/insights/) | |
Python_StringIO/2205_72_0.txt | Please include code that reproduces the issue and whenever possible, an image
that demonstrates the issue. The best reproductions are self-contained scripts
with minimal dependencies. If you are using a framework such as plone, django,
or buildout, try to replicate the issue just using Pillow. | |
Python_StringIO/1006_198_0.txt | Image.register_extension("PNG", ".png")
Image.register_mime("PNG", "image/png") | |
Python_StringIO/1006_117_0.txt | [ 
](/wiredfool) | |
Python_StringIO/1006_335_0.txt | Assignees | |
Python_StringIO/25046pilhowreturnstr_147_0.txt | [ 0 ](https://bytes.com/topic/networking/answers/979239-trying-create-lan-
lan-vpn-between-two-differents-networks) [ ](https://bytes.com/) | |
Python_StringIO/1006_178_0.txt | ImportError: cannot import name PngImagePlugin | |
Python_StringIO/1006_249_0.txt | Copy link | |
Python_StringIO/1006_334_0.txt | [ Sign up for free ](/join?source=comment-repo) **to join this conversation on
GitHub** . Already have an account? [ Sign in to comment
](/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-
pillow%2FPillow%2Fissues%2F1006) | |
Python_StringIO/1006_296_0.txt | **[ beyondlex ](/beyondlex) ** commented May 16, 2018 | |
Python_StringIO/25046pilhowreturnstr_8_0.txt | [ ](https://bytes.com/) | |
Python_StringIO/2205_112_0.txt | * 👍 10 reactions
* 😄 1 reaction | |
Python_StringIO/1006_152_0.txt | Traceback (most recent call last):
File "Z:\home\tcll\sync\copy\UMC_v3.0a\data\FORMAT.py", line 780, in ugeSetImageData
W,H,img,plt = sys.modules[COMMON._ImgScripts[it]].ImportImage(it)
File "scripts\IMG.py", line 64, in ImportImage
from data.Python.pillow import Image
ImportError: cannot import name Image | |
Python_StringIO/1006_351_0.txt | You can’t perform that action at this time. | |
Python_StringIO/1006_278_0.txt | wait... that's basically the same thing I'm doing in pillow.py, but ok | |
Python_StringIO/775_102_0.txt | Oh... and by the way: The issue apparently was secretly solved in the
meantime. The original test code from July 22 2013 4:06pm runs flawlessly when
invoked through bash now. | |
Python_StringIO/775_114_0.txt |  giles | 12116 posts |
PythonAnywhere staff | July 25, 2013, 5:08 p.m. | [ permalink
](https://www.pythonanywhere.com/forums/topic/775/#id_post_5633) | |
Python_StringIO/2205_77_0.txt | All reactions | |
Python_StringIO/2205_123_0.txt | [ 
](/kannes) [ kannes ](/kannes) mentioned this issue Jul 17, 2020 | |
Python_StringIO/1006_181_0.txt |
EDIT2:
nope... same issue as before >_< | |
Python_StringIO/1006_127_0.txt | [

](/Tcll) | |
Python_StringIO/1006_44_0.txt | Additional navigation options | |
Python_StringIO/1006_257_0.txt | PIL running in x86 shouldn't matter too much... I don't even see a Win64 egg
on the downloads... heh | |
Python_StringIO/1006_58_0.txt | ## Comments | |
Python_StringIO/25046pilhowreturnstr_62_0.txt | [ 3 ](https://bytes.com/topic/python/answers/23574-using-pil-other-display-
resized-images-over-web) [ ](https://bytes.com/) | |
Python_StringIO/1006_90_0.txt | --- | |
Python_StringIO/2205_116_0.txt | ### | |
Python_StringIO/25046pilhowreturnstr_12_0.txt | Heres some code: | |
Python_StringIO/1006_180_0.txt | from PIL import * | |
Python_StringIO/775_9_0.txt |
deleted-user-64250 | 10 posts | July 21, 2013, 10:47 p.m. | [ permalink
](https://www.pythonanywhere.com/forums/topic/775/#id_post_5494) | |
Python_StringIO/775_63_0.txt | If not, it appears to be either user-dependent (perhaps we're on different
servers?) or perhaps you're running in a virtualenv? | |
Python_StringIO/25046pilhowreturnstr_140_0.txt | [ Career Advice ](https://bytes.com/topic/career/insights/) | |
Python_StringIO/1006_36_0.txt | Cancel Create saved search | |
Python_StringIO/1006_245_0.txt | --- | |
Python_StringIO/775_101_0.txt |
deleted-user-64250 | 10 posts | July 24, 2013, 9:52 p.m. | [ permalink
](https://www.pythonanywhere.com/forums/topic/775/#id_post_5608) | |
Python_StringIO/775_37_0.txt | I get this error, even before the "img.crop": | |
Python_StringIO/1006_260_0.txt | All reactions | |
Python_StringIO/25046pilhowreturnstr_102_0.txt | [ Python ](https://bytes.com/topic/python/answers/) | |
Python_StringIO/1006_89_0.txt |
Something complicated that you're doing is throwing you off, and we have no
way to debug that for you. | |
Python_StringIO/1006_47_0.txt | **Have a question about this project?** Sign up for a free GitHub account to
open an issue and contact its maintainers and the community. | |
Python_StringIO/2205_114_0.txt | [

](/allexiusw) | |
Python_StringIO/1006_298_0.txt | <html><body><img src="http://site.com/hello.jpg"/></body></html> | |
Python_StringIO/25046pilhowreturnstr_93_0.txt | [ 4 ](https://bytes.com/topic/python/answers/614870-pil-reading-bytes-image)
[ ](https://bytes.com/) | |
Python_StringIO/1006_216_0.txt | **[ wiredfool ](/wiredfool) ** commented Nov 13, 2014 | |
Python_StringIO/1006_140_0.txt | importing Pikachu_main.tex0 100% | |
Python_StringIO/1006_311_0.txt |
def get_model():
global model, graph
model = load_model('model.h5')
print(' * Model loaded!')
graph = tf.Graph() | |
Python_StringIO/775_106_0.txt | Glad it's now working for you but I've no idea why - perhaps one the PA
servers had got into a half-installed state and needed refreshing or
something. Perhaps the PA devs can shed some light... Or perhaps we'll never
know! As long as it doesn't break again, I guess all's well that ends well. | |
Python_StringIO/25046pilhowreturnstr_29_0.txt |
That's what I wanted. Perfect!
Thanx a lot!
Christoph | |
Python_StringIO/775_22_0.txt | server = xmlrpclib.ServerProxy('https://xxxxxxxx.xxxx.com/rpc/xmlrpc')
token = server.confluence1.login('xxxxx', 'xxxxxxxxx')
page = server.confluence2.getPage(token, 'xxxxx', 'Team Pics')
attachments = server.confluence1.getAttachments(token, page['id']) | |
Python_StringIO/25046pilhowreturnstr_58_0.txt | Jul 18 '05 # [ 6 ](https://bytes.com/topic/python/answers/25046-pil-how-
return-stringio-image#post94227 "permalink") | |
Python_StringIO/775_38_0.txt | 16:55 ~ $ python /tmp/piltestting.py
Traceback (most recent call last):
File "/tmp/piltestting.py", line 6, in <module>
img = Image.open(file)
File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 1980, in open
raise IOError("cannot identify image file")
IOError: cannot identify image file | |
Python_StringIO/1006_274_0.txt | Author | |
Python_StringIO/1006_71_0.txt | only one last thing I can think of here... and that's my string function >_< | |
Python_StringIO/1006_172_0.txt | so that's why I tried to import everything into pillow.py and then import from
that into my interfaces | |
Python_StringIO/2205_104_0.txt | **[ Vivek4DotNet ](/Vivek4DotNet) ** commented Jun 14, 2018 • | |
Python_StringIO/2205_142_0.txt | * [ Terms ](https://docs.github.com/site-policy/github-terms/github-terms-of-service)
* [ Privacy ](https://docs.github.com/site-policy/privacy-policies/github-privacy-statement)
* [ Security ](https://github.com/security)
* [ Status ](https://www.githubstatus.com/)
* [ Docs ](https://docs.github.com/)
* [ Contact ](ht... | |
Python_StringIO/2205_74_0.txt | image = Image.open("test.png")
stream = StringIO()
image.save(stream, 'PNG') | |
Python_StringIO/1006_275_0.txt | ### | |
Python_StringIO/775_24_0.txt | teampic = attachment['fileName'] | |
Python_StringIO/2205_138_0.txt | [ 
](/wiredfool) [

](/allexiusw) [

](/boskicthebrain) [
 . | |
Python_StringIO/2205_106_0.txt | Conclusion: the fix is as below, Thank You! [ @wiredfool
](https://github.com/wiredfool) | |
Python_StringIO/775_1_0.txt | * [ Send feedback ]()
* [ Forums ](/forums/)
* [ Help ](https://help.pythonanywhere.com/)
* [ Blog ](https://blog.pythonanywhere.com/)
* [ Pricing & signup ](/pricing/)
* [ Log in ](/login/?next=/forums/topic/775/) | |
Python_StringIO/25046pilhowreturnstr_160_0.txt | [ Advertise on Bytes: ](/about/advertise.html)
[ Post a Job ](/about/advertise.html#jobs)
[ Sponsored Posts ](/about/advertise.html#sponsoredposts)
[ Platinum & Gold Sponsors ](/about/advertise.html#platinumgold)
[ Hire Now! ](/about/advertise.html#hirenow) | |
Python_StringIO/2205_5_0.txt | * Product | |
Python_StringIO/25046pilhowreturnstr_59_0.txt | [ New Post ](/new/) | |
Python_StringIO/1006_34_0.txt | Query | |
Python_StringIO/2205_105_0.txt | edited by hugovk | |
Python_StringIO/25046pilhowreturnstr_51_0.txt | > Bengt Richter <bo**@oz.net> wrote:
> | |
Python_StringIO/1006_161_0.txt | File "Z:\home\tcll\sync\copy\UMC_v3.0a\data\Python\PIL\Image.py", line 2288, in open
% (filename if filename else fp)) | |
Python_StringIO/775_55_0.txt | from flask import Flask, request, json, Response, send_file
from functools import wraps
import requests
import urllib
from PIL import Image
import ImageDraw, ImageFont
import StringIO
from os import listdir
from os.path import isfile, join
import random
import sys, string, xmlrpclib, re | |
Python_StringIO/2205_84_0.txt | --- | |
Python_StringIO/1006_88_0.txt | from PIL import Image
import io
with open('test.png') as f:
io = io.BytesIO(f.read())
im = Image.open(io) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.