Coder Social home page Coder Social logo

Installation on WIN about cpymad HOT 12 CLOSED

sterbini avatar sterbini commented on July 29, 2024
Installation on WIN

from cpymad.

Comments (12)

coldfix avatar coldfix commented on July 29, 2024

Hi,

Is it 32 or 64 bit python?

What happens if you do python -c "import cpymad.libmadx as l; l.start()" ?

Can you get dependency walker (http://www.dependencywalker.com/) and open libmadx.pyd in the cpymad installation folder with it (see python -c "import cpymad; print(cpymad.__file__)". It should show if there are any dll dependencies missing and which ones. (collapse to topmost level and for highlighted entries).

I suspect the reason might be that msvcr100.dll is missing on your system (which I unfortunately have to link against for technical reasons at this time). The official solution would be to download MSVC redistributable package (https://social.technet.microsoft.com/Forums/windows/en-US/52f0bd37-9a08-41b6-bb43-fa01ef3ebc4a/msvcr100dll-is-missing?forum=w8itprogeneral). It might also work to only download only the dll from non-official sources, at the risk of catching a virus:)

Best, Thomas

from cpymad.

sterbini avatar sterbini commented on July 29, 2024

Hi,
It is a 64 bit python.

By running the code you suggested

python -c "import cpymad.libmadx as l; l.start()"

I obtain the same error
(ImportError: DLL load failed: The specified module could not be found.)

This is the output of the depencywalker
image

Probably more than one dependency is missing.
Cheers,
G.

from cpymad.

coldfix avatar coldfix commented on July 29, 2024

Probably more than one dependency is missing.

No. Collapse all nodes such that you can see only the top level. It should indicate only msvc100.dll and python in yellow, rest fine. Python will be found at runtime, and msvc100 has to be obtained separately.

However... What is not fine is that it shows python34.dll while you mentioned you use python3.7?

Is this from the package that was installed to your python3.7 installation?

from cpymad.

sterbini avatar sterbini commented on July 29, 2024

Hi,
image
This is the screenshot when I collapse the nodes.

For this screenshot I am using the py34 env. But the problem in py34 is very similar to py37. (sorry for the confusion).

Cheers,
G.

from cpymad.

coldfix avatar coldfix commented on July 29, 2024

Ok, then it seems fine except for missing msvcr100.dll. Can you try to obtain it and then try again?

from cpymad.

sterbini avatar sterbini commented on July 29, 2024

Hi,

I installed the Visual C++ Redistributable Packages for Visual Studio 2012 and 2015.
I did not solve the problem.
Should I target a specific year? Thanks.
G.

from cpymad.

coldfix avatar coldfix commented on July 29, 2024

The link I gave listed 2010.

from cpymad.

sterbini avatar sterbini commented on July 29, 2024

I installed the Visual C++ Redistributable Packages for Visual Studio 2010 but I still have the problem. :(
Cheers,
G.

from cpymad.

coldfix avatar coldfix commented on July 29, 2024

Does dependencywalker now find the msvcr100.dll? If not, can you search it and copy-paste it to current directory? If this is not the problem I will have to check up on this at some other time.

from cpymad.

coldfix avatar coldfix commented on July 29, 2024

Hi, I tried today on win10, anaconda python 3.7 64bit and couldn't reproduce. Just to make sure:

  • can you copy the msvcr100.dll into the current directory from where you run the python command line, and try again.
  • can you show the output of python -c "import sysconfig; print(sysconfig.get_platform())" to make sure this is really a 64bit env
  • what's the exact name of the .pyd file? should be libmadx.cp37-win_amd64.pyd

(Best try on py37 because py34 has recently reached its end-of-life and is no longer supported by many packages)

from cpymad.

coldfix avatar coldfix commented on July 29, 2024

@sterbini Is this problem still present, and if so did you try my suggestions? If not I will soon close this issue.

from cpymad.

sterbini avatar sterbini commented on July 29, 2024

Finally I used a Docker solution running Linux, so I did not continue investigating. Please close this issue.
Thanks.

from cpymad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.