GithubHelp home page GithubHelp logo

Comments (10)

gangliao avatar gangliao commented on May 2, 2024

Hi, @ershersh

http://www.paddlepaddle.org/doc_cn/demo/quick_start/index.html
Most of python snippets in this page are to describe the details of our system how it works.
All python files in quick_start, including dataprovider_bow.py already in our script.
To make demo/quick_start runs, just typing following commands:

  1. ./preprocess.sh
  2. ./train.sh
    you can open and modify train.sh, choose different models to train data.
  3. ./predict.sh

from paddle.

stoneyang avatar stoneyang commented on May 2, 2024

@ershersh

It is an import issue of a python librarary named paddle.trainer.PyDataProvider2.
How did you build and install PaddlePaddle? If you didn't install it and python can't find a clue from the import commands in the script. As a fix, you may choose from the following alternatives:

  1. Install PaddlePaddle: after successfully executed make and install it using make install, sudo may be necessary considering your local machines or consult your system administrator to properly install it.
  2. Environment ablation: just add the directory of PaddlePaddle's python utilities before you could run any py script in PaddlePaddle, or simply copy the following line to your preprocess.sh, just before the lines that call any PaddlePaddle's py script.
export PYTHONPATH=/path/to/Paddle/python:$PYTHONPATH

P.S.: The link of PaddlePaddle's quick start in Chinese you provided in the original post is wrong and maybe you could fix it?

from paddle.

ershersh avatar ershersh commented on May 2, 2024

First i have fix the link and add the English website. ^_^
@gangliao ./preprocess.sh run ok. and next I try this:
cloud@cloud-virtual-machine:~/paddle-git/demo/quick_start$ ./train.sh
/usr/bin/../opt/paddle/bin/paddle_trainer: error while loading shared libraries: libprotobuf.so.8: cannot open shared object file: No such file or directory
it shows that error about that .so library...

@stoneyang I use vmware11+ubuntu12.04 and install paddlepaddle by deb
root@cloud-virtual-machine:/home/cloud# dpkg -i paddle-0.8.0b0-Linux-cpu.deb
Selecting previously unselected package paddle.
(正在读取数据库 ... 系统当前共安装有 147560 个文件和目录。)
正在解压缩 paddle (从 paddle-0.8.0b0-Linux-cpu.deb) ...
dpkg:依赖关系问题使得 paddle 的配置工作不能继续:
paddle 依赖于 libatlas3-base;然而:
未安装软件包 libatlas3-base。
paddle 依赖于 libgflags2;然而:
未安装软件包 libgflags2。
paddle 依赖于 libgoogle-glog0;然而:
未安装软件包 libgoogle-glog0。
paddle 依赖于 libprotobuf8;然而:
未安装软件包 libprotobuf8。
paddle 依赖于 python-numpy;然而:
未安装软件包 python-numpy。
paddle 依赖于 python-pip;然而:
未安装软件包 python-pip。
paddle 依赖于 python-pip-whl;然而:
未安装软件包 python-pip-whl。
dpkg:处理 paddle (--install)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
paddle
root@cloud-virtual-machine:/home/cloud# apt-get install -f
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
正在更正依赖关系... 完成
下列软件包将被【卸载】:
paddle
升级了 0 个软件包,新安装了 0 个软件包,要卸载 1 个软件包,有 686 个软件包未被升级。
有 1 个软件包没有被完全安装或卸载。
解压缩后将会空出 320 MB 的空间。
您希望继续执行吗?[Y/n]n
中止执行。

After command dpkg -i paddle-0.8.0b0-Linux-cpu.deb ,it shows that i still have error--some dependences not install, the guide doc tell me then apt-get install -f will continue install paddle, and install dependences, but the fact is it try to remove paddle so i choose canceled.Maybe there's something wrong here??

So I may try @stoneyang your ways to install later , see whether it can fix and update the result in time.thx all

from paddle.

lqniunjunlper avatar lqniunjunlper commented on May 2, 2024

meybe you should enter the paddle/python dir and run "python setup.py install"

from paddle.

ershersh avatar ershersh commented on May 2, 2024

@NIULQfromNJU i also try your method and did ont work
root@cloud-virtual-machine:/home/cloud/paddle-git/python# python setup.py.in install
Traceback (most recent call last):
File "setup.py.in", line 1, in
from setuptools import setup
ImportError: No module named setuptools

from paddle.

stoneyang avatar stoneyang commented on May 2, 2024

@ershersh

From your rely, you installed PaddlePaddle on your virtual machine using the shipped debian package according to the official instructions. Since you try to install CPU version of PaddlePaddle, maybe you should pay attention to the Note about the instruction set of your CPU listed at the bottom of the instructions. And make sure you have the proper access permission during installation.

As a reminder, the two solutions I provided is about building PaddlePaddle from the source code on your local machine. You can try it out if needed.

from paddle.

reyoung avatar reyoung commented on May 2, 2024

@ershersh You should use apt-get update before apt-get install -f to make apt can find dependencies.

from paddle.

reyoung avatar reyoung commented on May 2, 2024

@ershersh Then you can follow the install instructions.

from paddle.

ershersh avatar ershersh commented on May 2, 2024

@reyoung I also try your method but it comes to the same result: after"apt-get install -f",it tells me to delete paddle. Now I use my spare time to install paddle by docker
thanks all the same!

from paddle.

backyes avatar backyes commented on May 2, 2024

more than 1 months passed, so close this issue.

from paddle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.