Coder Social home page Coder Social logo

Comments (6)

coldfix avatar coldfix commented on July 29, 2024

Did you compile the package under the very same operating system as you were trying to use it on? If no: do that! On linux distribution of binaries is problemtic if they are dynamically linked. Also make sure to use the same python binary to execute the setup.py.

From what I gather on the web, it may also be possible, that your /root/Canopy/appdata/canopy-1.5.1.2730.rh5-x86_64/lib/libgfortran.so.3 does not symlink to your newest libgfortran.so. If so, try to find your newest libgfortran and create a symlink with the path above.

Let me hear if any of that solves your problem.

from cpymad.

Landau1908 avatar Landau1908 commented on July 29, 2024

Hey, Thomas

The second way works well!
I delete the old libgfortran.so.3 located in /root/Canopy/appdata/canopy-1.5.1.2730.rh5-x86_64/lib/, and create a symlink to this folder from my newest libgfortran.so.3.

But, when I run the Usage on linux terminal, the error is

"No module named cpymad.madx".

from cpymad.

coldfix avatar coldfix commented on July 29, 2024

This error means that you didn't install cpymad for the python distribution you use from your terminal.
Please make sure, you do not confuse different python executables and operating system.

You should build, install and import cpymad in exactly the same circumstances (machine, operating system, python binary).

Maybe its best to test cpymad in an isolated environment, so you don't confuse your python binaries by accident. Do that as follows:

# install virtualenv (if not installed already)
sudo pip install virtualenv

# create an isolated python environment that has access to packages installed for the system
virtualenv --system-site-packages ENV

# activate virtualenv, do this each time before using cpymad:
source ENV/bin/activate

# go to cpymad folder and then build and install:
python setup.py install

# check if it works
python -c 'import cpymad.libmadx'

from cpymad.

Landau1908 avatar Landau1908 commented on July 29, 2024

2015-04-06 19 19 48
Chinese means can't find the file or direction.

from cpymad.

coldfix avatar coldfix commented on July 29, 2024

I suggest you use some python distribution other than canopy-enthought. I had only bad experience with this and they charge for additional packages which are open source and you can have for free on any other python.

from cpymad.

Landau1908 avatar Landau1908 commented on July 29, 2024

Good suggestion!

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.