CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [pythonFlu] pythonFlu installation error in Ubuntu 10.10 (https://www.cfd-online.com/Forums/openfoam-community-contributions/87176-pythonflu-installation-error-ubuntu-10-10-a.html)

dhasthagheer April 13, 2011 05:48

pythonFlu installation error in Ubuntu 10.10
 
Hi there,

I am getting following error while installing pythonFlu (pythonflu171_8.0-1_maverick_i386.deb)


dhastha@Dhastha:~$ sudo dpkg --install pythonflu171_8.0-1_maverick_i386.deb
(Reading database ... 188750 files and directories currently installed.)
Unpacking pythonflu171 (from pythonflu171_8.0-1_maverick_i386.deb) ...
dpkg-deb (subprocess): short read on buffer copy for failed to write to pipe in copy
dpkg-deb: subprocess paste returned error exit status 2
dpkg: error processing pythonflu171_8.0-1_maverick_i386.deb (--install):
short read on buffer copy for backend dpkg-deb during `./usr/local/lib/python2.6/dist-packages/Foam/transportModels/_transportModels_.so'
Errors were encountered while processing:
pythonflu171_8.0-1_maverick_i386.deb

alexey2petrov May 11, 2011 15:12

Quote:

Originally Posted by dhasthagheer (Post 303404)
I am getting following error while installing pythonFlu (pythonflu171_8.0-1_maverick_i386.deb)

Hi Dhasthagheer,

I have just bumped on your post by accident. What for to wait so long for someone's answer if there is an official pythonFlu bug tracker?

About the question, have you checked whether the "pythonflu171_8.0-1_maverick_i386.deb" package you downloaded is whole or broken?
Run md5sum Linux utility to verify that it is equal to "d62a707aec5449826a6a0c37ac21a7fd".

Best regards,
Alexey

dhasthagheer May 11, 2011 22:14

You are right. The package which I downloaded was broken. I downloaded again fresh pythonflu1.7 and installed successfully

phuchuynh June 7, 2011 22:20

HI !
I am new to OpenFoam.
I need check the my PC : 32bit or 64bit and so I have a "pythonflu" package conformable .
I checked whether the "pythonflu171_8.1-Elvis-1_maverick_i386.deb" package I downloaded.
However, it appeared error.
Plz, can you help me !
thanks ! :)

dhasthagheer June 7, 2011 22:45

Hi phuchuynh

If you want to check your PC is 32 bit or 64 bit, you just type the following command in terminal

Code:

lscpu
It will display all the information of your CPU.

I have some question for you.

What Ubuntu version your are using?
What are the error your are getting?

Please post the error here

phuchuynh June 7, 2011 23:24

Quote:

Originally Posted by dhasthagheer (Post 310961)
Hi phuchuynh

If you want to check your PC is 32 bit or 64 bit, you just type the following command in terminal

Code:

lscpu
It will display all the information of your CPU.

Please post the error here

I commanded in terminal " lscpu"

Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
CPU(s): 2
.

I am using Ubuntu version 10.10. I downloaded packages
"pythonflu171_8.1-Elvis-1_maverick_amd64.deb" and "pythonflu171_8.1-Elvis-1_maverick_i386.deb" .So, I will install package ?
Code:

root@phuc:~# dpkg --install pythonflu171_8.1-Elvis-1_maverick_amd64.deb
(Reading database ... 326011 files and directories currently installed.)
Preparing to replace pythonflu171 8.1-Elvis-1 (using pythonflu171_8.1-Elvis-1_maverick_amd64.deb) ...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named Foam
dpkg: warning: old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named Foam
dpkg: error processing pythonflu171_8.1-Elvis-1_maverick_amd64.deb (--install):
 subprocess new pre-removal script returned error exit status 1
running install
running bdist_egg
running egg_info
writing Foam.egg-info/PKG-INFO
writing top-level names to Foam.egg-info/top_level.txt
writing dependency_links to Foam.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'Foam.egg-info/SOURCES.txt'
writing manifest file 'Foam.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
warning: install_lib: 'build/lib.linux-x86_64-2.6' does not exist -- no Python modules to install
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying Foam.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying Foam.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying Foam.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying Foam.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/Foam-0.0.0-py2.6.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing Foam-0.0.0-py2.6.egg
removing '/usr/local/lib/python2.6/dist-packages/Foam-0.0.0-py2.6.egg' (and everything under it)
creating /usr/local/lib/python2.6/dist-packages/Foam-0.0.0-py2.6.egg
Extracting Foam-0.0.0-py2.6.egg to /usr/local/lib/python2.6/dist-packages
Foam 0.0.0 is already the active version in easy-install.pth

Installed /usr/local/lib/python2.6/dist-packages/Foam-0.0.0-py2.6.egg
Processing dependencies for Foam==0.0.0
Finished processing dependencies for Foam==0.0.0
Errors were encountered while processing:
 pythonflu171_8.1-Elvis-1_maverick_amd64.deb

.

Sorry, because It is long


Thanks !

alexey2petrov June 8, 2011 09:36

Hi Phuchuynh,
Quote:

Originally Posted by phuchuynh (Post 310964)
Code:

root@phuc:~# dpkg --install pythonflu171_8.1-Elvis-1_maverick_amd64.deb
(Reading database ... 326011 files and directories currently installed.)
Preparing to replace pythonflu171 8.1-Elvis-1 (using pythonflu171_8.1-Elvis-1_maverick_amd64.deb) ...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named Foam
dpkg: warning: old pre-removal script returned error exit status 1


I have tried to reproduce your case.
I guess you have run the installation procedure for pythonFlu package more then once.
I confirm, that this is a bug in pythonFlu installation and we are going to fix it in next release (in about one month).
For now, we suggest the following workaround.
  1. Remove the broken pythonFlu installation
    sudo mkdir /usr/local/lib/python2.6/dist-packages/Foam
    sudo touch /usr/local/lib/python2.6/dist-packages/Foam/__init__.py
    sudo dpkg -r pythonflu171
  2. Install pythonFlu once again
    sudo dpkg -i <your path to>/pythonflu171_8.1-Elvis-1_maverick_amd64.deb
  3. Check that pythonFlu was successfully installed
    python -c "from Foam import finiteVolume; print finiteVolume"
  4. Do not forget to install pythonFlu based solvers (http://pythonflu.wikidot.com/solvers) you want, for example
    sudo easy_install icoFlux

Hope this will help,
Alexey

phuchuynh June 9, 2011 03:42

Hi alexey2petrov !
That is great ! :D
thanks for your help !

Best regards

francois June 9, 2011 07:03

Same problem with natty and same workaround.
You just have to change python2.6 with python2.7 in the procedure above

Thanks for the tip :)


All times are GMT -4. The time now is 03:16.