Followers

Sunday, 1 October 2017

ExtractionError: Can't extract file(s) to egg cache

Source: stackoverflow.com --- Saturday, September 30, 2017
I'm developing my app on Windows with GAE, but the below error message was shown. C:\Python27\Lib\site-packages Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to an accessible directory. So I checked some post in this site and I found some articles but I could not understand it. My understanding is that I need to create cache directory with write access in home directory, but I did not understand where "home directory" is. Also in other post, I found the answer saying This approach solved my issue. I did uninstall pyyaml using pip and then installed it with easy_install -z pyyaml Which approach is correct? import webapp2 import os import jinja2 import cloudstorage import mimetypes from PIL import Image from google.appengine.ext import ndb from google.appengine.ext import blobstore from google.appengine.api import users from google.appengine.api import app_identity from google.appengine.api import images from models import Note from models import CheckListItem from models import NoteFile jinja_env = jinja2.Environment(loader=jinja2.FileSystemLoader(os.path.dirname(__file__))) images_formats = { '0':'image/png', '1':'image/jpeg', '2':'image/webp', '-1':'image/bmp', '-2':'image/gif', '-3':'image/ico', '-4':'image/tiff', } class MainHandler(webapp2.RequestHandler): def get(self): user = users.get_current_user() if use ...



from Windows http://ift.tt/2x46nM8

No comments:

Post a Comment