Coder Social home page Coder Social logo

Comments (9)

galwiner avatar galwiner commented on July 29, 2024 1

hey!
i'm running 64 bit windows, but it was indeed a config issue.
after trying to a while, i ran vanila code from the console as you suggested. it ran fine.
i was trying to run from pycharm, and was failing.
eventually i deleted the pycharm configuration file and created a new conda environment and that fixed the issue.
thanks!

from arc-alkali-rydberg-calculator.

nikolasibalic avatar nikolasibalic commented on July 29, 2024

This might be only the problem in incorrect use of Appveyor? I will comment out for now Appveyor check (ae37bbf).

I will be able to do more checks on Windows on Friday. If anyone experiences this error under Windows, and has more information (full traceback etc), please let me know. On the machine where it was originally spotted, there was a problem with old installation of Numpy library, that was solved with conda update numpy.

from arc-alkali-rydberg-calculator.

dihm avatar dihm commented on July 29, 2024

Just to offer another datapoint on this, I just upgraded from v1.3 to v2.0.0 on pip. I can import NumerovWavefunction without error. However, I'm not sure the binary installed correctly. v1.3 had a build folder with an actual .lib file. My v2.0.0 pip installation only has the .pyd for the c_extensions.

from arc-alkali-rydberg-calculator.

nikolasibalic avatar nikolasibalic commented on July 29, 2024

@dihm Thanks for insight! If you can run this line in Python:

from arc import * ;atom=Caesium();a1,b1 = atom.radialWavefunction(0,0.5,0.5,atom.getEnergy(15, 0, 0.5)/27.211,atom.alphaC**(1/3.0),2.0*15*(15+15.0), 0.001)

without errors, everything is fine. If it does produce some errors (or quits unexpectedly Python or kills kernel), please let me know (together with Windows version).

from arc-alkali-rydberg-calculator.

dihm avatar dihm commented on July 29, 2024

The above ran without errors for me.

from arc-alkali-rydberg-calculator.

nikolasibalic avatar nikolasibalic commented on July 29, 2024

Status update: pip installation on Windows seems to work after all. The problems I saw seem not to be related to ARC package itself, but to outdated Python environment on the particular machine.

I will keep this open for a while if someone experiences related issues, until I have time to check on more different installations myself.

from arc-alkali-rydberg-calculator.

nikolasibalic avatar nikolasibalic commented on July 29, 2024

No new problems reported. Closing this for now.

from arc-alkali-rydberg-calculator.

galwiner avatar galwiner commented on July 29, 2024

hey,
i'm encountering the same issue on a windows machine.
i've been having tons of config issues though, so it may just be the mess i made...

Traceback (most recent call last): File "C:\Users\Gal\Anaconda3\envs\scientific_project1\lib\site-packages\IPython\core\interactiveshell.py", line 3265, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-3-b8684d83140b>", line 1, in <module> arc.Rubidium87() File "C:\Users\Gal\Anaconda3\envs\scientific_project1\lib\site-packages\arc\alkali_atom_functions.py", line 175, in __init__ from .arc_c_extensions import NumerovWavefunction File "C:\Users\Gal\AppData\Local\JetBrains\Toolbox\apps\PyCharm-P\ch-0\182.4505.26\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 20, in do_import module = self._system_import(name, *args, **kwargs) ImportError: No module named 'arc.arc_c_extensions'

from arc-alkali-rydberg-calculator.

nikolasibalic avatar nikolasibalic commented on July 29, 2024

Hi Gal! @galwiner

Let me know please which Windows you have (32/64), and which Python version you are using. Did you installed latest version via pip (should be 2.0.4)?

Also, are you running from some special environment (like Spyder)? If so, have you tried running vanila code, just by calling

python your_code.py

from command line?

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.