It looks like you are still mixing Python 2.7 and 3.4. You should stick
with one of them, both when installing and running FEniCS. I am not
familiar with the AUR packages, so it is probably better to ask the package
maintainer.

Johannes

On Wed, Aug 26, 2015 at 2:45 AM ramki raman <[email protected]> wrote:

> Hello Jo,
>  I finally managed to install dolfin and fenics using arch linux AUR
> repository
>
> https://aur4.archlinux.org/packages/?O=0&SeB=nd&K=fenics&outdated=&SB=n&SO=a&PP=50&do_Search=Go
>
> However, now, when I try to run the demos, I get this erro (which again
> seems to be  related to python3.4 )
> - My path is set correctly:
>
> PYTHONPATH=/usr/lib/python2.7/site-packages:/usr/lib/python3.4/site-packages/
> Any suggestions. This is happening with every demos I have tried so far.
> thank you
> ramki
>
>
>
> Traceback (most recent call last):
>   File "/usr/share/dolfin/demo/documented/poisson/python/demo_poisson.py",
> line 37, in <module>
>     from dolfin import *
>   File "/usr/lib/python2.7/site-packages/dolfin/__init__.py", line 16, in
> <module>
>     from . import cpp
>   File "/usr/lib/python2.7/site-packages/dolfin/cpp/__init__.py", line 42,
> in <module>
>
>     exec("from . import %s" % module_name)
>   File "<string>", line 1, in <module>
>   File "/usr/lib/python2.7/site-packages/dolfin/cpp/common.py", line 32,
> in <module>
>     _common = swig_import_helper()
>   File "/usr/lib/python2.7/site-packages/dolfin/cpp/common.py", line 28,
> in swig_import_helper
>
>     _mod = imp.load_module('_common', fp, pathname, description)
>   File "/usr/lib/python3.4/imp.py", line 243, in load_module
>     return load_dynamic(name, filename, file)
> ImportError: dynamic module does not define init function (PyInit__common)
>
>
>
> On Tue, Aug 25, 2015 at 5:31 PM, ramki raman <[email protected]> wrote:
>
>> Hello Jo,
>> I still get the same error after checking/ensuring python 2.7 is the
>> first one in the path.
>> Below is what appears when I run the 'enc' command
>>
>> PYTHONPATH=:/usr/lib/python2.7/site-packages/
>>
>> Any other possibilities
>> Thanks
>> Ramki
>>
>>
>> On Tue, Aug 25, 2015 at 11:40 AM, ramki kalyanaraman <
>> [email protected]> wrote:
>>
>>> Thank you Jo.
>>> I will try this install again soon.
>>> Ramki
>>>
>>> On Tue, 25 Aug 2015 09:53:24 +0000
>>> Johannes Ring <[email protected]> wrote:
>>>
>>> > Yes, the problem is that HashDist does not work with Python 3. You
>>> > should make sure that Python 2.7 is first in PATH before running the
>>> > build script.
>>> >
>>> > Johannes
>>> >
>>> > On Mon, Aug 3, 2015 at 12:05 AM ramki raman <[email protected]>
>>> > wrote:
>>> >
>>> > > Hello Jo,
>>> > > Any suggestions on how I can address the "ImportError: No module
>>> > > named 'error'" when I try to use the new install script:
>>> > >
>>> > > below is the output..
>>> > > thanks
>>> > >
>>> > > ramki
>>> > >
>>> > >
>>> > > Starting build...
>>> > > Traceback (most recent call last):
>>> > >   File "../hashdist/bin/hit", line 9, in <module>
>>> > >     from hashdist.cli.main import command_line_entry_point,
>>> > > help_on_exceptions
>>> > >   File "/tmp/fenics-install.EwAt5k/hashdist/hashdist/__init__.py",
>>> > > line 1, in <module>
>>> > >     from .spec.hook_api import *
>>> > >   File
>>> > > "/tmp/fenics-install.EwAt5k/hashdist/hashdist/spec/__init__.py",
>>> > > line 1, in <module> from .builder import ProfileBuilder
>>> > >   File
>>> > > "/tmp/fenics-install.EwAt5k/hashdist/hashdist/spec/builder.py",
>>> > > line 2, in <module> from . import package
>>> > >   File
>>> > > "/tmp/fenics-install.EwAt5k/hashdist/hashdist/spec/package.py",
>>> > > line 4, in <module> from .utils import
>>> > > substitute_profile_parameters, to_env_var File
>>> > > "/tmp/fenics-install.EwAt5k/hashdist/hashdist/spec/utils.py", line
>>> > > 2, in <module> from .exceptions import ProfileError
>>> > >   File
>>> > > "/tmp/fenics-install.EwAt5k/hashdist/hashdist/spec/exceptions.py",
>>> > > line 1, in <module> from ..formats.marked_yaml import
>>> > > ValidationError File
>>> > >
>>> "/tmp/fenics-install.EwAt5k/hashdist/hashdist/formats/marked_yaml.py",
>>> > > line 17, in <module>
>>> > >     from hashdist.deps.yaml.error import Mark
>>> > >   File
>>> > > "/tmp/fenics-install.EwAt5k/hashdist/hashdist/deps/yaml/__init__.py",
>>> > > line 2, in <module>
>>> > >     from error import *
>>> > > ImportError: No module named 'error'
>>> > >
>>> > > On Thu, Jul 23, 2015 at 7:48 AM, ramki kalyanaraman
>>> > > <[email protected]> wrote:
>>> > >
>>> > >>
>>> > >> Thank you.
>>> > >> I tried this approach as well and am unable to install as I get
>>> > >> the below error.
>>> > >>
>>> > >> Starting build...
>>> > >> Traceback (most recent call last):
>>> > >>   File "../hashdist/bin/hit", line 9, in <module>
>>> > >>     from hashdist.cli.main import command_line_entry_point,
>>> > >> help_on_exceptions
>>> > >>   File "/tmp/fenics-install.EwAt5k/hashdist/hashdist/__init__.py",
>>> > >> line 1, in <module>
>>> > >>     from .spec.hook_api import *
>>> > >>   File
>>> > >> "/tmp/fenics-install.EwAt5k/hashdist/hashdist/spec/__init__.py",
>>> > >> line 1, in <module> from .builder import ProfileBuilder
>>> > >>   File
>>> > >> "/tmp/fenics-install.EwAt5k/hashdist/hashdist/spec/builder.py",
>>> > >> line 2, in <module> from . import package
>>> > >>   File
>>> > >> "/tmp/fenics-install.EwAt5k/hashdist/hashdist/spec/package.py",
>>> > >> line 4, in <module> from .utils import
>>> > >> substitute_profile_parameters, to_env_var File
>>> > >> "/tmp/fenics-install.EwAt5k/hashdist/hashdist/spec/utils.py", line
>>> > >> 2, in <module> from .exceptions import ProfileError
>>> > >>   File
>>> > >> "/tmp/fenics-install.EwAt5k/hashdist/hashdist/spec/exceptions.py",
>>> > >> line 1, in <module> from ..formats.marked_yaml import
>>> > >> ValidationError File
>>> > >>
>>> "/tmp/fenics-install.EwAt5k/hashdist/hashdist/formats/marked_yaml.py",
>>> > >> line 17, in <module>
>>> > >>     from hashdist.deps.yaml.error import Mark
>>> > >>   File
>>> > >>
>>> "/tmp/fenics-install.EwAt5k/hashdist/hashdist/deps/yaml/__init__.py",
>>> > >> line 2, in <module>
>>> > >>     from error import *
>>> > >> ImportError: No module named 'error'
>>> > >>
>>> > >> RK
>>> > >>
>>> > >>
>>> > >> On Thu, 23 Jul 2015 12:24:23 +0200
>>> > >> Johannes Neumann <[email protected]> wrote:
>>> > >>
>>> > >> > I had similar problems before but resolved them by using the
>>> > >> > brand new install script
>>> > >> > (
>>> > >>
>>> http://fenicsproject.org/download/#installation-from-source-fenics-install-sh
>>> > >> ).
>>> > >> > This will download and install all necessary software packages in
>>> > >> > your local home directory. after sourcing the generated file you
>>> > >> > should have a clean fenics install. if you need additional
>>> > >> > software, like scipy, you can add them to the platform file.
>>> > >> >
>>> > >> > Hope this helps,
>>> > >> > Jo (N.)
>>> > >> >
>>> > >> > Am 22.07.2015 um 21:26 schrieb ramki kalyanaraman:
>>> > >> > > Dear users,
>>> > >> > > I have attempted to get dolfin running on arch linux. after
>>> > >> > > unsuccessfully trying to install the fenics-git and dolfin-git
>>> > >> > > from the arch user repository I resorted to the manual
>>> > >> > > installation given at
>>> > >> > > http://fenicsproject.org/download/installation_from_source.html
>>> > >> > >
>>> > >> > >
>>> > >> > > After also unsuccessfully trying to install systemwide (can
>>> > >> > > send the details if needed later) I was able to install in a
>>> > >> > > local directory. However, when I try to run any of the demo
>>> > >> > > files, I get the below messages - is this somehow related to
>>> > >> > > python3.4 or is it something else. thanks
>>> > >> > > RK
>>> > >> > >
>>> > >> > >
>>> > >> > > /usr/bin/python3.4
>>> > >> > >
>>> ~/FENICS/share/dolfin/demo/documented/periodic/python/demo_periodic.py
>>> > >> > > Traceback (most recent call last): File
>>> > >> > >
>>> > >>
>>> "/home/rk/FENICS/share/dolfin/demo/documented/periodic/python/demo_periodic.py",
>>> > >> > > line 34, in <module> from dolfin import * File
>>> > >> > >
>>> "/home/rk/FENICS/lib/python2.7/site-packages/dolfin/__init__.py",
>>> > >> > > line 16, in <module> from . import cpp File
>>> > >> > >
>>> "/home/rk/FENICS/lib/python2.7/site-packages/dolfin/cpp/__init__.py",
>>> > >> > > line 42, in <module> exec("from . import %s" % module_name)
>>> > >> > > File "<string>", line 1, in <module> File
>>> > >> > >
>>> "/home/rk/FENICS/lib/python2.7/site-packages/dolfin/cpp/common.py",
>>> > >> > > line 32, in <module> _common = swig_import_helper() File
>>> > >> > >
>>> "/home/rk/FENICS/lib/python2.7/site-packages/dolfin/cpp/common.py",
>>> > >> > > line 28, in swig_import_helper _mod =
>>> > >> > > imp.load_module('_common', fp, pathname, description) File
>>> > >> > > "/usr/lib/python3.4/imp.py", line 243, in load_module return
>>> > >> > > load_dynamic(name, filename, file) ImportError:
>>> > >> > > libdolfin.so.1.5: cannot open shared object file: No such file
>>> > >> > > or directory
>>> > >> > >
>>> > >> > > Process finished with exit code 1
>>> > >> > > _______________________________________________
>>> > >> > > fenics-support mailing list
>>> > >> > > [email protected]
>>> > >> > > http://fenicsproject.org/mailman/listinfo/fenics-support
>>> > >> >
>>> > >>
>>> > >>
>>> > >>
>>> > >> --
>>> > >> Ramki Kalyanaraman
>>> > >> Professor
>>> > >> Materials Science and Eng. &
>>> > >> Chemical and Biomolecular Eng.
>>> > >> 419 Ferris Hall,
>>> > >> University of Tennessee
>>> > >> Knoxville, TN 37996-2200
>>> > >> ph/fax: 865-974-5539/4115
>>> > >> email: [email protected]
>>> > >> web:http://web.utk.edu/~ramki
>>> > >>
>>> > >>
>>> > > _______________________________________________
>>> > > fenics-support mailing list
>>> > > [email protected]
>>> > > http://fenicsproject.org/mailman/listinfo/fenics-support
>>> > >
>>>
>>>
>>
>
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to