PaddlePaddle / Paddle2ONNX

ONNX Model Exporter for PaddlePaddle
Apache License 2.0
717 stars 166 forks source link

No module named 'paddle2onnx.paddle2onnx_cpp2py_export' #1174

Closed Ilyabasharov closed 4 months ago

Ilyabasharov commented 8 months ago

Please fill in the information below so that we can solve the problem quickly, Thanks ! While compiling paddle2onnx, I cannot run it. How to solve it ?

# cmake installation
wget https://github.com/Kitware/CMake/releases/download/v3.28.1/cmake-3.28.1-Linux-x86_64.sh && \
chmod +x cmake-3.28.1-Linux-x86_64.sh && \
./cmake-3.28.1-Linux-x86_64.sh --prefix=/usr/local --exclude-subdir --skip-license && \
rm ./cmake-3.28.1-Linux-x86_64.sh && \
sudo ln -s /usr/local/bin/cmake /usr/bin/cmake

# protobuf installation
git clone https://github.com/protocolbuffers/protobuf.git
cd protobuf
git checkout v3.16.0
git submodule update --init --recursive
./autogen.sh
./configure
make -j$(nproc)
make check
make install
ldconfig

# paddle2onnx installation
git clone https://github.com/PaddlePaddle/Paddle2ONNX.git
cd Paddle2ONNX
git submodule init
git submodule update
python setup.py install
jiangjiajun commented 8 months ago

It will throw this error, if there's a directory or file named 'paddle2onnx' in your current directory

Zheng-Bicheng commented 4 months ago

Hey @Ilyabasharov, I'm sorry for the delayed response. We've updated the English version of the Paddle2ONNX compilation documentation. I hope this helps you (although you might not need Paddle2ONNX anymore).