I said PATH, not PYTHONPATH. What do you get if you run "python --version"? Python 2 or 3? If it is 3, then the build script won't work since HashDist does not work with Python 3. In that case, you will have to make some changes such that when you call "python" you will get Python 2. For instance, something like the following should work:
mkdir $HOME/bin ln -s /usr/bin/python2 $HOME/bin/python export PATH=$HOME/bin:$PATH python --version If the output from the last command is python 2.7, then you should be able to run the build script. Johannes On Tue, Aug 25, 2015 at 11: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
