小编Pau*_*ito的帖子

Pycharm:如果路径包含空格,则运行管理任务将不起作用

我正在使用 python 2.7 和 django 1.5.1 运行 Pycharm 2.6.3。例如,当我尝试从 Pycharm(工具/运行 manage.py 任务)、syncdb 运行 django 的 manage.py 任务时,我得到以下信息:

bash -cl "/usr/bin/python2.7 /home/paulo/bin/pycharm-2.6.3/helpers/pycharm/django_manage.py syncdb /home/paulo/Projetos/repo2/Paulo Brito/phl"
Traceback (most recent call last):
  File "/home/paulo/bin/pycharm-2.6.3/helpers/pycharm/django_manage.py", line 21, in <module>
    run_module(manage_file, None, '__main__', True)
  File "/usr/lib/python2.7/runpy.py", line 170, in run_module
    mod_name, loader, code, fname = _get_module_details(mod_name)
  File "/usr/lib/python2.7/runpy.py", line 103, in _get_module_details
    raise ImportError("No module named %s" % mod_name)
ImportError: No module named manage

Process finished with exit code 1
Run Code Online (Sandbox Code Playgroud)

如果我在单引号之间传递项目路径的控制台上运行第一行,它运行没有问题,如下所示:

bash -cl "/usr/bin/python2.7 /home/paulo/bin/pycharm-2.6.3/helpers/pycharm/django_manage.py …
Run Code Online (Sandbox Code Playgroud)

python django pycharm

5
推荐指数
1
解决办法
2014
查看次数

Google Clould Functions部署:EROFS:只读文件系统

我正在尝试将api部署到Google Cloud Functions,并且得到以下信息:

EROFS:只读文件系统,mkdir'/ user_code / uploads'

?  functions[post]: Deployment error. Function load error: 
    Code in file index.js can't be loaded. Is there a syntax error in your code? 
    Detailed stack trace: Error: EROFS: read-only file system, mkdir '/user_code/uploads'
    at Error (native)
    at Object.fs.mkdirSync (fs.js:932:18)
    at Function.sync (/user_code/node_modules/multer/node_modules/mkdirp/index.js:71:13)
    at new DiskStorage (/user_code/node_modules/multer/storage/disk.js:21:12)
    at module.exports (/user_code/node_modules/multer/storage/disk.js:65:10)
    at new Multer (/user_code/node_modules/multer/index.js:15:20)
    at multer (/user_code/node_modules/multer/index.js:95:12)
    at Object.<anonymous> (/user_code/api/user.js:105:46)
    at Module._compile (module.js:577:32)
    at Object.Module._extensions..js (module.js:586:10)
Run Code Online (Sandbox Code Playgroud)

javascript multer google-cloud-functions

4
推荐指数
2
解决办法
2932
查看次数