problem to install pdfgui

502 views
Skip to first unread message

Carmelo Prestipino

unread,
Oct 6, 2016, 12:14:30 PM10/6/16
to diffpy-users
Hi
I installed PdfGui by conda but when i click the PDFGUI icon nothing happen.
I run the script test
python -m diffpy.pdfgui.tests.rundeps
and I obtein this error


Traceback (most recent call last):
File "C:\Anaconda2\lib\runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "C:\Anaconda2\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "d:\home\cprestip\tÚlÚchargements\diffpy.pdfgui-master\diffpy\pdfgui\tests\rundeps.py", line 26, in <module>
sys.exit(not testdeps().wasSuccessful())
File "d:\home\cprestip\tÚlÚchargements\diffpy.pdfgui-master\diffpy\pdfgui\tests\__init__.py", line 74, in testdeps
exec ('from %s import testsuite as t' % mname)
File "<string>", line 1, in <module>
File "c:\anaconda2\lib\site-packages\diffpy.pdffit2-1.1-py2.7-win-amd64.egg\diffpy\pdffit2\__init__.py", line 25, in <module>
from diffpy.pdffit2.pdffit import PdfFit
File "c:\anaconda2\lib\site-packages\diffpy.pdffit2-1.1-py2.7-win-amd64.egg\diffpy\pdffit2\pdffit.py", line 25, in <module>
from diffpy.pdffit2 import pdffit2
ImportError: DLL load failed: Le module spÚcifiÚ est introuvable.


last line is in french the specified module is not found

thanks Carmelo

Pavol Juhas

unread,
Oct 6, 2016, 3:56:51 PM10/6/16
to diffpy-users
On Thu, Oct 06, 2016 at 07:58:28AM -0700, Carmelo Prestipino wrote:
...
> I run the script test
>
> python -m diffpy.pdfgui.tests.rundeps
>
> Traceback (most recent call last):
...
> File "d:\home\cprestip\tÚlÚchargements\diffpy.pdfgui-master\diffpy\pdfgui\tests\__init__.py", line 74, in testdeps


Hi Carmelo,

It seems you are using PDFgui sources from an expanded tar/zip archive
rather than from Anaconda package. If that is what you want, you need
to run

python setup.py develop

to refresh Python paths to all diffpy packages.

Another option is to uninstall your downloaded version and then
reinstall the Anaconda package:

pip uninstall diffpy.pdfgui
conda uninstall diffpy.pdfgui
conda install -c diffpy diffpy.pdfgui

If there are still troubles starting PDFgui,
try to test just the PDFfit2 engine with

python -m diffpy.pdffit2.tests.run

and let me know if it passed. Hope this helps,

Pavol

Carmelo Prestipino

unread,
Oct 7, 2016, 4:28:25 AM10/7/16
to diffpy-users
Hi Pavel
I  try both install from conda or from source. both pdf gui or pdffit2
In all the  procedure I obtain no error during istallation but the same results when i run the test script "python -m diffpy.pdffit2.tests.run":
 DLL load failed: Le module spÚcifiÚ est introuvable.  (the specified module has been not found).


if it could be help
if I try to import diffpy.pdffit2 in a ipython shell this it is the error:
c:\anaconda2\lib\site-packages\diffpy.pdffit2-1.1-py2.7-win-amd64.egg\diffpy\pdffit2\__init__.py in <module>()
     23
     24 from diffpy.pdffit2.version import __version__, __date__
---> 25 from diffpy.pdffit2.pdffit import PdfFit
     26 from diffpy.pdffit2.output import redirect_stdout
     27 from diffpy.pdffit2.pdffit2 import is_element

c:\anaconda2\lib\site-packages\diffpy.pdffit2-1.1-py2.7-win-amd64.egg\diffpy\pdffit2\pdffit.py in <module>()
     23 # crash with AttributeError when executed during imports of
     24 # parent packages.
---> 25 from diffpy.pdffit2 import pdffit2
     26 from diffpy.pdffit2 import output

Pavol Juhas

unread,
Oct 7, 2016, 1:45:57 PM10/7/16
to diffpy-users
On Fri, Oct 07, 2016 at 01:28:24AM -0700, Carmelo Prestipino wrote:
> Hi Pavel
> I try both install from conda or from source. both pdf gui or pdffit2
> In all the procedure I obtain no error during istallation but the same
> results when i run the test script "python -m diffpy.pdffit2.tests.run":
> DLL load failed: Le module spÚcifiÚ est introuvable. (the specified
> module has been not found).

Hi Carmelo,

I see - it looks like the installation of pdffit2 from sources
failed to compile the C++ extension module pdffit2.pyd (this
requires the MSVC compiler on Windows). Please try again with the
conda package in a new Anaconda environment "testenv" as follows:

conda create --name=testenv --channel=diffpy diffpy.pdffit2
activate testenv
python -m diffpy.pdffit2.tests.run

Make sure PYTHONPATH environment variable is not set.
If you still get the same error, navigate to the
anaconda2/envs/testenv/lib/site-packages/diffpy.pdffit2*egg/diffpy/pdffit2
directory and check if it contains the "pdffit2.pyd" file.

If so, can you successfully run in that directory
python -c "import pdffit2"
?

If things work well in the testenv environment, you need to
reinstall PDFfit2 in the default "root" environment.
Uninstall it first using "pip uninstall diffpy.pdffit2" and
"conda uninstall diffpy.pdffit2" and then verify that
"python -m pydoc diffpy.pdffit2" cannot find it at all.
Once purged, install PDFfit2 back using

conda install --channel=diffpy diffpy.pdffit2

Hope this will work. Best,

Pavol

Carmelo Prestipino

unread,
Oct 18, 2016, 5:19:10 AM10/18/16
to diffpy-users, pju...@bnl.gov
Hi Pavol
sorry for the lond delay.
I create the new environment and try to run the test
but the result is always the same "DLL load failed: Le module spÚcifiÚ est introuvable."



    conda create --name=testenv --channel=diffpy diffpy.pdffit2
    activate testenv
    python -m diffpy.pdffit2.tests.run

my PYTHONPATH was not defined
 

Make sure PYTHONPATH environment variable is not set.
If you still get the same error, navigate to the
anaconda2/envs/testenv/lib/site-packages/diffpy.pdffit2*egg/diffpy/pdffit2
directory and check if it contains the "pdffit2.pyd" file.

If so, can you successfully run in that directory
    python -c "import pdffit2"
?

I found the file but result is always the same "DLL load failed: Le module spÚcifiÚ est introuvable."


I order to clarifies if python was loading the correct module in the new environment
i modifie the name of the site-package folder in the default python enviroment
and change the the name of pdffit2 to pdffit2b in the testenv.
if i enter in python and type import  pdffit2b the result is
ImportError: DLL load failed: Le module spÚcifiÚ est introuvable.

any other advice??


thanks
Carmelo



Pavol Juhas

unread,
Oct 18, 2016, 11:53:33 AM10/18/16
to Carmelo Prestipino, diffpy-users
On Tue, Oct 18, 2016 at 5:19 AM, Carmelo Prestipino
<carmelo.p...@gmail.com> wrote:
> Hi Pavol
> sorry for the lond delay.
> I create the new environment and try to run the test
> but the result is always the same "DLL load failed: Le module spÚcifiÚ est
> introuvable."

Hi Carmelo,

I am not able to reproduce this. I just tested a fresh installation
of Anaconda for Python 2.7
on my Windows 7 virtual machine and PDFgui worked fine. The only
issue I noticed
was that if PDFgui was installed in a new test environment using

conda create --name=testenv --channel=diffpy diffpy.pdfgui

the desktop shortcut for PDFgui would not work. This was fixed after
installing the "menuinst" package using "conda install menuinst"
within the testenv.
I will add "menuinst" to PDFgui dependencies so this would not happen
in the future.

Perhaps the problem you see is related to this question on stack overflow:
http://stackoverflow.com/questions/33455239/conda-update-all-importerror-dll-load-failed-1-is-not-a-valid-win32-appl

It seems that anaconda installation directory has been renamed from
"Anaconda" to "Anaconda2" and the
DLL errors appear when packages assuming older name get mixed with
recent ones. The stack overflow
suggests to run "conda install anaconda" to fix that. If that does
not help, I would suggest to just start again
and redo the whole installation from scratch.

I hope this finally helps, sorry about the trouble. Best,

Pavol

--
Dr. Pavol Juhas
Computational Science Initiative
Brookhaven National Laboratory
P.O. Box 5000
Upton, NY 11973-5000

Robert Koch

unread,
Oct 25, 2016, 3:13:09 PM10/25/16
to diffpy-users, carmelo.p...@gmail.com, pju...@bnl.gov
Hi,

I actually just was able to reproduce this, or at least something similar on my machine:

I recently downloaded and installed 64 bit Anaconda2 v4.2.0 (https://repo.continuum.io/archive/Anaconda2-4.2.0-Windows-x86_64.exe) on my 64 bit Windows 7 machine. Following this, I installed PDFgui as per the instructions on the website.  The install appears to go smoothly, however when starting PDFgui via command line, I get an error about a missing DLL, and the trace-back seems to indicate that the error is met when running "from diffpy.pdffit2 import pdffit2"

I don't have the exact error now, as I rolled back to Anaconda2 v2.4.1 and all has gone smoothly: I can open and use PDFgui. I don't know if this error was specific to my system or what, just giving you a heads up.

Cheers,
Rob

Simon Billinge

unread,
Oct 25, 2016, 5:08:03 PM10/25/16
to diffpy-users, carmelo.p...@gmail.com, pju...@bnl.gov
Thanks Rob
--
You received this message because you are subscribed to the Google Groups "diffpy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diffpy-users...@googlegroups.com.
To post to this group, send email to diffpy...@googlegroups.com.
Visit this group at https://groups.google.com/group/diffpy-users.
For more options, visit https://groups.google.com/d/optout.

Pavol Juhas

unread,
Oct 28, 2016, 3:08:25 PM10/28/16
to diffpy...@googlegroups.com, carmelo.p...@gmail.com, Robert Koch
On Tue, Oct 25, 2016 at 12:13:08PM -0700, Robert Koch wrote:
...
> I actually just was able to reproduce this, or at least something similar
> on my machine:
>
> I recently downloaded and installed 64 bit Anaconda2 v4.2.0
> (https://repo.continuum.io/archive/Anaconda2-4.2.0-Windows-x86_64.exe) on
> my 64 bit Windows 7 machine. Following this, I installed PDFgui as per the
> instructions on the website. The install appears to go smoothly, however
> when starting PDFgui via command line, I get an error about a missing DLL,
> and the trace-back seems to indicate that the error is met when running
> "from diffpy.pdffit2 import pdffit2".

Hi Rob and Carmelo,

I am still not able to reproduce this. I have tried a fresh
installation of Anaconda2-4.2.0 using a new user account on
my Windows 7 machine and there was no problem. PDFgui started
fine and all the tests passed.

If you run into that problem again, can you email me the
packages.txt file produced as follows?

conda list --export > packages.txt

This would allow me to test with exactly the same set of
Anaconda packages as on your machine.

Thank you,

Robert Koch

unread,
Oct 28, 2016, 3:14:56 PM10/28/16
to diffpy...@googlegroups.com, carmelo.p...@gmail.com, Robert Koch
Hi Pavol,

Ok, thanks for looking at it. If I see it again I'll surely provide a more thorough detailing of the issue. Sorry for the lack of that here: once I rolled back to Anaconda2 v2.4.1 and was able to use pdfgui I just pushed forward with that, I'd only seen the post afterwards and recognized the familiarity.

Rob

Carmelo Prestipino

unread,
Oct 28, 2016, 3:16:27 PM10/28/16
to Robert Koch, diffpy...@googlegroups.com
Hi 
Thanks a lot, monday I'll try to reinstall all and make some more test..
thanks again

--
Carmelo Prestipino
Sciences Chimiques de Rennes, UMR 6226
Solid State and Materials Chemistry group (CSM)
Campus de Beaulieu, Bât 10B, bureau 123
263 avenue du Général Leclerc
F-35042 RENNES
France
Tel: (+33) 22323 6531
FAX: (+33) 22323 5959

Carmelo Prestipino

unread,
Nov 8, 2016, 9:08:16 AM11/8/16
to diffpy-users, rkoc...@gmail.com, carmelo.p...@univ-rennes1.fr
Hi Pavel
I solved, I used Dependencies Walker and I remarked that in my system MSVCR100.dll and MSVCP100.dll were missing so I installed the

Redistributable Microsoft Visual C++  package and now is working

Thanks

Carmelo

Pavol Juhas

unread,
Nov 8, 2016, 12:34:54 PM11/8/16
to DiffPy users, Robert Koch, carmelo.p...@univ-rennes1.fr
On Tue, Nov 8, 2016 at 9:08 AM, Carmelo Prestipino <carmelo.p...@gmail.com> wrote:
I solved, I used Dependencies Walker and I remarked that in my system MSVCR100.dll and MSVCP100.dll were missing so I installed the


Thank you Carmelo, this really helps.  Those 2 missing DLL-s can be also installed with Anaconda using

conda install vc=10

I will update the PDFfit2 package so that Visual C runtime files are always included.
Best,

Pavol
Reply all
Reply to author
Forward
0 new messages