Finding versions of VTK and pysparce

26 views
Skip to first unread message

Gary Roach

unread,
Apr 5, 2017, 4:38:01 PM4/5/17
to sfepy-devel
Debian linux  stretch OS
Intel i5750 processor 64bit
KDE desktop
Directory structure: /root/anaconda3/lib/python3.5/site-packages/sfepy
Home Directory structure: /home/gary/Downloads

I am still trying to get a clean installation of sfepy. I am still missing vtk and pysparce libraries. I need to get components that are compatible with an amd-64, python3.x system. Any help with finding these packages and help with their installation will be sincerely appreciated.

Thank you for your responses

Gary R

Robert Cimrman

unread,
Apr 5, 2017, 6:18:33 PM4/5/17
to sfepy...@googlegroups.com
"conda install mayavi" should install VTK for you - did you try that?

I have also found a conda package of pysparse, but it seems Python 2.7 only
(https://anaconda.org/guyer/pysparse).

r.

Gary Roach

unread,
Apr 6, 2017, 3:47:59 PM4/6/17
to sfepy-devel
Thanks for your reply:

conda install mayavi produced the following:

`$ /root/anaconda3/bin/conda install mayavi`

    Traceback (most recent call last):
      File "/root/anaconda3/lib/python3.5/site-packages/conda/exceptions.py", line 479, in conda_exception_handler
        return_value = func(*args, **kwargs)
      File "/root/anaconda3/lib/python3.5/site-packages/conda/cli/main.py", line 145, in _main
        exit_code = args.func(args, p)
      File "/root/anaconda3/lib/python3.5/site-packages/conda/cli/main_install.py", line 80, in execute
        install(args, parser, 'install')
      File "/root/anaconda3/lib/python3.5/site-packages/conda/cli/install.py", line 238, in install
        prefix=prefix)
      File "/root/anaconda3/lib/python3.5/site-packages/conda/api.py", line 24, in get_index
        index = fetch_index(channel_urls, use_cache=use_cache, unknown=unknown)
      File "/root/anaconda3/lib/python3.5/site-packages/conda/fetch.py", line 300, in fetch_index
        repodatas = [(u, f.result()) for u, f in zip(urls, futures)]
      File "/root/anaconda3/lib/python3.5/site-packages/conda/fetch.py", line 300, in <listcomp>
        repodatas = [(u, f.result()) for u, f in zip(urls, futures)]
      File "/root/anaconda3/lib/python3.5/concurrent/futures/_base.py", line 398, in result
        return self.__get_result()
      File "/root/anaconda3/lib/python3.5/concurrent/futures/_base.py", line 357, in __get_result
        raise self._exception
      File "/root/anaconda3/lib/python3.5/concurrent/futures/thread.py", line 55, in run
        result = self.fn(*self.args, **self.kwargs)
      File "/root/anaconda3/lib/python3.5/site-packages/conda/fetch.py", line 75, in func
        res = f(*args, **kwargs)
      File "/root/anaconda3/lib/python3.5/site-packages/conda/fetch.py", line 117, in fetch_repodata
        timeout=(6.1, 60))
      File "/root/anaconda3/lib/python3.5/site-packages/requests/sessions.py", line 501, in get
        return self.request('GET', url, **kwargs)
      File "/root/anaconda3/lib/python3.5/site-packages/requests/sessions.py", line 488, in request
        resp = self.send(prep, **send_kwargs)
      File "/root/anaconda3/lib/python3.5/site-packages/requests/sessions.py", line 641, in send
        r.content
      File "/root/anaconda3/lib/python3.5/site-packages/requests/models.py", line 797, in content
        self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
      File "/root/anaconda3/lib/python3.5/site-packages/requests/models.py", line 730, in generate
        chunk = self.raw.read(chunk_size)
    AttributeError: 'FileNotFoundError' object has no attribute 'read'

Gary R

Robert Cimrman

unread,
Apr 7, 2017, 2:29:46 AM4/7/17
to sfepy...@googlegroups.com
Hi Gary,

What happens, if you do not use the full path to 'conda', i.e. you do just:

`$ conda install mayavi`

Or - is 'conda' on your PATH?

Anyway, this looks like a problem of your anaconda installation - try asking
there about your issue.

r.

Emanuel Woiski

unread,
Apr 7, 2017, 12:41:59 PM4/7/17
to sfepy...@googlegroups.com
Robert,
It seems there is no mayavi for Python 3.6 yet. See in https://github.com/enthought/mayavi/issues/496 (about 21 days ago) from prabhuramachandran himself.

BTW 'conda install mayavi' answers wirh:

UnsatisfiableError: The following specifications were found to be in conflict:
  - mayavi
  - python 3.6*
Use "conda info <package>" to see the dependencies for each package.
woiski

--
You received this message because you are subscribed to the Google Groups "sfepy-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sfepy-devel+unsubscribe@googlegroups.com.
To post to this group, send email to sfepy...@googlegroups.com.
Visit this group at https://groups.google.com/group/sfepy-devel.

Robert Cimrman

unread,
Apr 7, 2017, 1:24:13 PM4/7/17
to sfepy...@googlegroups.com
OK, that clarifies things. Until it is available, you can use e.g. paraview to
look at the results in the VTK format.

Thanks for the info!
r.
>> email to sfepy-devel...@googlegroups.com.

Emanuel Woiski

unread,
Apr 7, 2017, 1:46:59 PM4/7/17
to sfepy...@googlegroups.com
Just to be thorough, it seems there is a Python 3.6 mayavi, but in EDM (from Enthought)!
woiski


To post to this group, send email to sfepy...@googlegroups.com.
Visit this group at https://groups.google.com/group/sfepy-devel.

--
You received this message because you are subscribed to the Google Groups "sfepy-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sfepy-devel+unsubscribe@googlegroups.com.

Gary Roach

unread,
Apr 8, 2017, 4:32:20 PM4/8/17
to sfepy-devel
Thank you all for your help;

I found a copy of paraview  and installed it with conda.  Paraview  reads the .vtk file. The figure is the proper shape and the vertical color bar vs temperature scale is presented. The only problem is that the figure is all blue. I'm not sure whether this is a glitch in paraview or something else. Without digging into the code (I'm not that good) I won't be able to tell.

I looked at the Enthrough mayavi but couldn't figure out how to adapt it to my system. The instructions seem to be more than just a little fuzzy.

Gary R.

To post to this group, send email to sfepy...@googlegroups.com.
Visit this group at https://groups.google.com/group/sfepy-devel.


--
You received this message because you are subscribed to the Google Groups "sfepy-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sfepy-devel...@googlegroups.com.

Robert Cimrman

unread,
Apr 9, 2017, 4:58:46 PM4/9/17
to sfepy...@googlegroups.com
Hi Gary,

On 8.4.2017 22:32, Gary Roach wrote:
> Thank you all for your help;
>
> I found a copy of paraview and installed it with conda. Paraview reads
> the .vtk file. The figure is the proper shape and the vertical color bar vs
> temperature scale is presented. The only problem is that the figure is all
> blue. I'm not sure whether this is a glitch in paraview or something else.
> Without digging into the code (I'm not that good) I won't be able to tell.

Did you check that you have the right variable selected - by default, paraview
shows a single (blue) color of node_groups. Otherwise from your description I
guess it might be some graphics glitch - you can try asking on the paraview
mailing list.

> I looked at the Enthrough mayavi but couldn't figure out how to adapt it to
> my system. The instructions seem to be more than just a little fuzzy.

IMHO it is probably not very safe to mix packages from Anaconda and EDM.

r.

Reply all
Reply to author
Forward
0 new messages