pdfgui installation, Ubuntu 14.04

82 views
Skip to first unread message

Roberto de Avillez

unread,
Oct 31, 2015, 1:02:13 PM10/31/15
to diffpy-users
Hi Pavol,

I had to reinstall the OS system of my computer and after setting up all dependencies I tried to install the pdfgui. I got the following output:

avillez@Jasmim:~$ sudo easy_install diffpy.pdfgui
[sudo] password for avillez:
Sorry, try again.
[sudo] password for avillez:
Processing diffpy.pdfgui
Writing /home/avillez/diffpy.pdfgui/setup.cfg
Running setup.py -q bdist_egg --dist-dir /home/avillez/diffpy.pdfgui/egg-dist-tmp-gzXSEL
/usr/local/lib/python2.7/dist-packages/setuptools-18.4-py2.7.egg/setuptools/dist.py:285: UserWarning: Normalizing '1.1a.post13' to '1.1a0.post13'
warning: no previously-included files matching '*.py[co]' found under directory 'diffpy'
warning: no previously-included files found matching 'doc/manual/images/*.pdf'
removing '/usr/local/lib/python2.7/dist-packages/diffpy.pdfgui-1.1a0.post13-py2.7.egg' (and everything under it)
creating /usr/local/lib/python2.7/dist-packages/diffpy.pdfgui-1.1a0.post13-py2.7.egg
Extracting diffpy.pdfgui-1.1a0.post13-py2.7.egg to /usr/local/lib/python2.7/dist-packages
diffpy.pdfgui 1.1a0.post13 is already the active version in easy-install.pth
Installing pdfgui script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/diffpy.pdfgui-1.1a0.post13-py2.7.egg
Processing dependencies for diffpy.pdfgui==1.1a0.post13
Searching for diffpy.pdffit2>=1.0a0
Reading https://pypi.python.org/simple/diffpy.pdffit2/
Reading http://www.diffpy.org/
Reading http://www.diffpy.org/packages/
Reading https://googledrive.com/host/0BwRWQI5RTLvCOW9MbG9nR0JoMjQ/packages/
No local packages or download links found for diffpy.pdffit2>=1.0a0
error: Could not find suitable distribution for Requirement.parse('diffpy.pdffit2>=1.0a0')

So it was not properly installed. Anyway I tried to run pdfgui and got the following output:

avillez@Jasmim:~$ pdfgui
Traceback (most recent call last):
  File "/usr/local/bin/pdfgui", line 5, in <module>
    from pkg_resources import load_entry_point
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 3080, in <module>
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 3066, in _call_aside
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 3093, in _initialize_master_working_set
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 653, in _build_master
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 666, in _build_from_requirements
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 839, in resolve
pkg_resources.DistributionNotFound: The 'diffpy.pdffit2>=1.0_r6773' distribution was not found and is required by diffpy.pdfgui

I appreciate your help.

Regards,
Roberto de Avillez


Pavol Juhas

unread,
Nov 1, 2015, 10:34:25 PM11/1/15
to diffpy...@googlegroups.com
On Sat, Oct 31, 2015 at 10:02:12AM -0700, Roberto de Avillez wrote:
...
> I had to reinstall the OS system of my computer and after setting up all
> dependencies I tried to install the pdfgui. I got the following output:
>
> avillez@Jasmim:~$ sudo easy_install diffpy.pdfgui
...
> No local packages or download links found for diffpy.pdffit2>=1.0a0
> error: Could not find suitable distribution for
> Requirement.parse('diffpy.pdffit2>=1.0a0')

Hi Roberto,

The version scheme that was used for PDFgui components is not
compatible with (later) standards, which caused the above errors.
I have uploaded new versions of diffpy.pdfgui and diffpy.pdffit2
packages to PyPI with fixed version strings.

Please, try to run easy_install again as

sudo easy_install --upgrade diffpy.pdfgui

Hope it works, let me know if there are still problems.

Cheers,

Pavol

--
Dr. Pavol Juhas
Condensed Matter Physics and Materials Science
Department
Brookhaven National Laboratory
P.O. Box 5000
Upton, NY 11973-5000

Roberto de Avillez

unread,
Nov 2, 2015, 8:27:23 AM11/2/15
to diffpy...@googlegroups.com
Hi Pavol,

Thanks a lot. It's working. I rerun a previous sample without problems.

It did come out a lot of warnings, so I decide to copy them for you.

Cheers,
Roberto

avillez@Jasmim:~$ sudo easy_install --upgrade diffpy.pdfgui
[sudo] password for avillez:
Processing diffpy.pdfgui
Writing /home/avillez/diffpy.pdfgui/setup.cfg
Running setup.py -q bdist_egg --dist-dir /home/avillez/diffpy.pdfgui/egg-dist-tmp-XtqTDN

/usr/local/lib/python2.7/dist-packages/setuptools-18.4-py2.7.egg/setuptools/dist.py:285: UserWarning: Normalizing '1.1a.post13' to '1.1a0.post13'
warning: no previously-included files matching '*.py[co]' found under directory 'diffpy'
warning: no previously-included files found matching 'doc/manual/images/*.pdf'
removing '/usr/local/lib/python2.7/dist-packages/diffpy.pdfgui-1.1a0.post13-py2.7.egg' (and everything under it)
creating /usr/local/lib/python2.7/dist-packages/diffpy.pdfgui-1.1a0.post13-py2.7.egg
Extracting diffpy.pdfgui-1.1a0.post13-py2.7.egg to /usr/local/lib/python2.7/dist-packages
diffpy.pdfgui 1.1a0.post13 is already the active version in easy-install.pth
Installing pdfgui script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/diffpy.pdfgui-1.1a0.post13-py2.7.egg
Processing dependencies for diffpy.pdfgui==1.1a0.post13
Searching for diffpy.pdffit2>=1.0a0
Reading https://pypi.python.org/simple/diffpy.pdffit2/
Reading http://www.diffpy.org/
Reading http://www.diffpy.org/packages/
Reading https://github.com/diffpy/diffpy.pdffit2
Reading https://googledrive.com/host/0BwRWQI5RTLvCOW9MbG9nR0JoMjQ/packages/
Best match: diffpy.pdffit2 1.1a1
Downloading https://pypi.python.org/packages/source/d/diffpy.pdffit2/diffpy.pdffit2-1.1a1.tar.gz#md5=d62e8ce88a0c1bc95684667d98c22ee6
Processing diffpy.pdffit2-1.1a1.tar.gz
Writing /tmp/easy_install-k265lD/diffpy.pdffit2-1.1a1/setup.cfg
Running diffpy.pdffit2-1.1a1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-k265lD/diffpy.pdffit2-1.1a1/egg-dist-tmp-9xGud0
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
libpdffit2/pdf.cc: In member function ‘void DataSet::determine(bool, bool, Fit&)’:
libpdffit2/pdf.cc:160:9: warning: variable ‘igaus’ set but not used [-Wunused-but-set-variable]
     int igaus, ib, ie, ig;
         ^
libpdffit2/pdf.cc:165:10: warning: variable ‘ldone’ set but not used [-Wunused-but-set-variable]
     bool ldone;
          ^
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
creating /usr/local/lib/python2.7/dist-packages/diffpy.pdffit2-1.1a1-py2.7-linux-x86_64.egg
Extracting diffpy.pdffit2-1.1a1-py2.7-linux-x86_64.egg to /usr/local/lib/python2.7/dist-packages
Removing diffpy.pdffit2 1.0-r6773-20111122 from easy-install.pth file
Adding diffpy.pdffit2 1.1a1 to easy-install.pth file
Installing pdffit2 script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/diffpy.pdffit2-1.1a1-py2.7-linux-x86_64.egg
Finished processing dependencies for diffpy.pdfgui==1.1a0.post13


--
You received this message because you are subscribed to a topic in the Google Groups "diffpy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/diffpy-users/qrwjKkgl6Bg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to diffpy-users...@googlegroups.com.
To post to this group, send email to diffpy...@googlegroups.com.
Visit this group at http://groups.google.com/group/diffpy-users.
For more options, visit https://groups.google.com/d/optout.



--

Pavol Juhas

unread,
Nov 2, 2015, 11:07:18 AM11/2/15
to diffpy...@googlegroups.com
On Mon, Nov 2, 2015 at 8:27 AM, Roberto de Avillez
<roberto...@gmail.com> wrote:
> Thanks a lot. It's working. I rerun a previous sample without problems.
>
> It did come out a lot of warnings, so I decide to copy them for you.

Hi Roberto,

I am glad the installation works now. The warnings are because the
extension build
system pre-sets compiler option, which is not meaningful for C++. The option
-Wstrict-prototypes asks compiler to warn about incomplete C
declarations and as such has no
effect on the produced binary. I don't know of a simple and robust
way of unsetting it, so
for now the easiest is to just bear with the noise.

There were also some useful warnings about unused variables which I
fixed in the code.

Thank you,
Reply all
Reply to author
Forward
0 new messages