python - 从 .fs 文件导出数据。 Plone 人3.3.5

标签 python plone zope zodb

我刚刚收到一个任务,上面写着“看看你能用这个做什么”。 我有一个 24GB Plone 3.3.5 文件夹,其中包含一个 Data.fs 文件。 不知道该怎么办。没有相关结果。

Plone 人今年 13 岁了。什么都不起作用。无法安装在现代机器上。 Docker 仅运行 Plone 6 安装。我设法通过导入 Data.fs

docker cp Data.fs mycontainer:/plone/instance/var/filestorage/Data.fs

但从那时起 - plone 容器就不再运行了。它退出并出现错误。 我尝试安装 plone 3.3.5 - 另一个错误:

pip install Plone==3.3.5
Collecting Plone==3.3.5
  Using cached Plone-3.3.5.zip (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      error in Plone setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected end or semicolon (after version specifier)
          plone.app.contentmenu >= 1.1.6dev-r22380
                                ~~~~~~~~~~~~^
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

等等。等等等等 我受够了。 有谁知道有一个应用程序或某种合理的人类方式,作为可执行程序、ZODB 的 phpmyadmin 替代品或任何其他东西,可以导出此 .fs 文件中包含的数据?

最佳答案

这是 Plone 的旧版本。 最好的改变是使用具有较旧操作系统的虚拟机,最好是安装较旧的 Python 版本。 如果我没记错的话,你需要 Python 2.4 才能运行 Plone 3。 使用统一安装程序https://launchpad.net/plone/3.3/3.3.6要安装Plone,我想你也可以让它尝试构建正确的python版本。 它可能适用于不再安装 Python 2.4 的系统,但最好选择默认安装有 Python 2.4 的操作系统。 旧的安装文档在这里。 https://3.docs.plone.org/manage/installing/installation.html

总的来说,如果您必须使用如此旧的代码和数据库,确实会很痛苦。但这对于所有软件都是如此。

当你让它运行时。 您有一些选择:

  1. 通过 Webdav 导出一些数据
  2. 升级至 Plone 4 https://4.docs.plone.org/manage/upgrading/index.html

从 Plone 4 开始,您还可以使用 Collective.exportimport 将所有数据和设置导出为 JSON,并稍后在较新版本中导入或在其他地方使用它。

另请查看社区论坛,在这里您可以找到最多的信息和问题的最佳答案。 https://community.plone.org/

关于python - 从 .fs 文件导出数据。 Plone 人3.3.5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76370489/

相关文章:

plone - 警告 : exceptions. key 错误 : u'Undefined namespace prefix: i18. '

plone - 如何使对象/工具出现在 ZMI 左侧导航框架的 Plone 下?

python - 带有大图像的 PIL "IOError: image file truncated"

python - 计算两列的比率

python - 有没有keras方法来拆分数据?

python - 为什么 rstrip 不修改字符串列表

python - 需要帮助安装适用于 Python 的 MySQL

python - Python中所有向量组合的集合

python - 如何覆盖文档查看器图标以在 Plone 中全屏查看?

plone - 将页眉和页脚附加到 Plone 中的 pdf 插件