Comments (12)
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.
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
Probably more than one dependency is missing.
Cheers,
G.
from cpymad.
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.
Hi,
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.
Ok, then it seems fine except for missing msvcr100.dll
. Can you try to obtain it and then try again?
from cpymad.
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.
The link I gave listed 2010.
from cpymad.
I installed the Visual C++ Redistributable Packages for Visual Studio 2010 but I still have the problem. :(
Cheers,
G.
from cpymad.
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.
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 belibmadx.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.
@sterbini Is this problem still present, and if so did you try my suggestions? If not I will soon close this issue.
from cpymad.
Finally I used a Docker solution running Linux, so I did not continue investigating. Please close this issue.
Thanks.
from cpymad.
Related Issues (20)
- Differences in cpymad `table.twiss` and madx `table(twiss, X, X)` when running `use` HOT 7
- Twiss at certain positions HOT 13
- Element redefinition and twiss HOT 5
- Add support to release Linux AArch64 wheels HOT 7
- EMIT module output is displayed with "delay" HOT 2
- TWISS: no beta0 found HOT 1
- New functions
- Can't run madx instance. TypeError HOT 5
- Build error on Win10 Anaconda 2022.5 HOT 11
- What is the preferred way to retrieve the command (string) with which an Element was created? HOT 3
- libmadx error installing on M1/M2 Apple Silicon HOT 7
- Pitfalls on compiling libmadx/cpymad on Linux HOT 5
- Proposal: specialize tables HOT 8
- Wheel for M1 apple? HOT 2
- Python 3.11 Wheels HOT 4
- Error building cpymad on M1 Apple Silicon - "-march=core2" not supported HOT 5
- call does not work when double slash is present in file path HOT 2
- access default beam HOT 1
- ValueError: TypeError: write() argument must be str HOT 4
- Python 3.12 wheels HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpymad.