Coder Social home page Coder Social logo

Comments (4)

nikolasibalic avatar nikolasibalic commented on July 29, 2024

Hi @LuMa817

Thank you for the question. It seems like you have downloaded directly current version of the master branch. This is for development only and it doesn't come prepackaged with compiled C extension.

Instead, for installation, you should download the latest release ( https://github.com/nikolasibalic/ARC-Alkali-Rydberg-Calculator/releases ). Please download .zip that corresponds to your operating system and your Python version.

Let me know if you encounter any problems. Or, if everything works, so that I can close the thread.
Nikola

from arc-alkali-rydberg-calculator.

LuMa817 avatar LuMa817 commented on July 29, 2024

Hi @nikolasibalic
I downloaded the latest release and tried it again. It seems to have the same problem.

Traceback (most recent call last):
File "<pyshell#5>", line 1, in
atom=Caesium()
File "/Users/lukema/Library/Mobile Documents/comappleCloudDocs/Research/ARC_mac_x64_python35_v1_3/arc/alkali_atom_functions.py", line 172, in init
from .arc_c_extensions import NumerovWavefunction
ModuleNotFoundError: No module named 'arc.arc_c_extensions'

I do have the file "arc_c_extensions.cpython-35m-darwin.so" in the file. But I am using Python 3.6 instead of 3.5. Will this be problem ?

from arc-alkali-rydberg-calculator.

nikolasibalic avatar nikolasibalic commented on July 29, 2024

@LuMa817
I would guess that is the problem (you have Python 3.6 and package is compiled for Python 3.5). I don't have access to Mac at the moment, so you can either:

  1. Try to compile yourself the extension. On Mac it should be easy, provided that you have Python development headers (python-dev) and C compiler. Then you can just enter with terminal the arc folder, where setupc.py is located (note that it's setupc.py not setup.py) and call python setupc.py build_ext --inplace That should build required module.

  2. Alternatively, you can try downgrading Python to 3.5

Let me know if this doesn't resolve the problem.

from arc-alkali-rydberg-calculator.

LuMa817 avatar LuMa817 commented on July 29, 2024

@nikolasibalic
it works after I re-complied the C code. Thanks very much.

from arc-alkali-rydberg-calculator.

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.