-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with installation #4
Comments
Hi There. It looks like pandoc needs to be installed on your system. If you would just like to use the module, you should be able to install it from the python packaging pypi.org using sudo pip install PyNEC |
I forgot to mention, I'm trying to install it on Windows, however |
Looking into this. Seem's you're right. |
Looks like I was using an old upload API. I've re-uploaded, but wont be able to check for a couple of hours. URL for package is now https://pypi.python.org/pypi/PyNEC/1.7.3.1 |
Now I got the following:
I could install necpp but I'd like to use PyNEC as I've read it's easier and more powerful. |
Looks like this isn't finding the source code at all. We haven't any windows machines here, but reading around, it seems like getting python packages to compile is a tricky business on windows. Solution is to build a binary wheel. I'll ask around and see if we can find one. |
Did you find anything? Is there a way I can help make it work on windows? I don't know about packaging , but maybe if you guide me in the right direction... |
I actually just tested to see if I can get it installed on Linux (Ubuntu) and got the same error, it says it can't find the file src/math_util.h Can you please verify this? Maybe it's a general error and by solving this it will work on Windows too.
|
Also, tried updating to necpp 1.7.3.2 and it also gave me an error on Ubuntu and Windows.
So, it looks like both modules necpp and PyNEC aren't working, at least for me. Can you check this please? |
I get a similar error on Mac OS X: bash-3.2$ sudo python setup.py install |
Hi guys, Thanks |
Hi guys, Check your python/os arch and Install them directly. No need to build anything. :) It is seriously required for windows. I will try to add wheels for more platforms as I will get time. Thanks |
… needs a work-around see tmolteno/necpp#51
Awesome! Worked perfectly on Windows 10 (Anaconda Python 3.6.2). Some weeks ago I could get PyNEC installed on Linux by installing pandoc and libtool and modifying some C files, and I could get it done on windows by using MinGW and MSYS. But that was so tedious. These wheels make it so much easy to install! I tested some examples and it worked fine. Thank you so much, I would like to have wheels for Python 3.5 (amd64), please let me know if you make them or tell me how to. |
I have uploaded a wheel for py35_win_amd64. Instructions on how to is on the link I have sent a pull request to @tmolteno. hopefully, it will be merge soon. More info on wheels |
Hi rounaksingh, could you check your permissions for the wheels? I can't seem to download them. Thanks! |
Could you tell me how to install a wheel. I've pretty much done everything upto now. I use Windows 7 and Python 3.6.5. It shows the same error. So I checked the link with the wheels but I don't know how to install them. If anyone could help I would appreciate it. |
I have just merged the pull request. If someone with a windows machine could try an install from PyPi using pip, I would be most grateful to hear if its working. |
I have attempted to use pip install PyNEC as well as necpp on OSX 10.6. Both installs fail with the following error code: warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found] What am I doing wrong or what am I missing here? |
I'm trying to install PyNEC on my new Windows 10 laptop in an Anaconda virtual environment and not having luck. I get the impression that Detailed notes are in this github gist As I note there, I did get PyNEC installed last year from source but I don't remember precisely how. That is also not working and I'll fill those notes in later. Is it generally working from PyPI with Windows 10 users? Great tool, by the way. Will keep trying to take detailed notes as I attempt to get it installed here. |
I upgraded
Full traceback is the same as before, but with the above message after it, I think suggesting that the re-try with |
I updated my gist with these instructions on how I was able to install PyNEC from source on Windows 10 in an Anaconda 3 virtual environment. I am going to go back through this again to see if I can do this with git bash, but I still have no idea how to get the pypi install to work. I think it might be related to the softlink issue. Will explore further, but I wanted to post this in case it's helpful for other Win10 users. A little moot, given that once you have Ubuntu installed on the Windows Subsystem for Linux you could just run PyNEC on Linux, but I prefer to have it in my Windows Anaconda installation. |
I was incorrect. My instructions in the github gist do not work. However, on my machine I'm having issues with version 1.7.3.6 on all of my available platforms. I'm getting 1.7.3.6 installs immediately with Same issue on Google Colab running Colab notebook here showing the issue. I'm pretty confused by this because I'm pretty sure I had 1.7.3.6 working on WSL and Windows Python installs but obviously I've made some kind of error. |
Just tried to install for python 3.9. Got this: possibly indicating setuptools problem ??
|
On my Windows10 machine |
yes thanks. working for me |
Have somebody tested PyNEC==1.7.3.6 - it ought to work?: |
@glenndk & others: i have just tried 1.7.3.6 (windows 10, python 3.10, "pip install pynec==1.7.3.6") and it does not work:
simply installing 1.7.3.4 works ("pip install pynec==1.7.3.4" - which un-installs 1.7.3.6). |
@tmolteno and @glenndk I was able to successfully install pynec 1.7.3.6 in a python 3.12 conda environment on my Mac (MacOS 12.7.6). I have Xcode command line tools installed and I built in the attached environment. I had to change line 6 of the Makefile.git in necpp_src to: since I'm using a libtool package installed with conda I needed to use libtoolize instead of glibtoolize. after making the environment, cloning the repository and editing Makefile.git I followed the stated build and install instructions. monopole.py, dipole.py, and impedance_plot.py all work for me. monopole realistic ground is not working for me however. see issue #30 here |
Hello, I've tried to get PyNEC installed but instructions are a bit messed up all over different links (most likely I'm a beginner with this stuff so it's complicated for me). After I read some of your instructions regarding the installation of PyNEC, this is what I did:
git clone https://github.com/tmolteno/python-necpp.git
cd python-necpp
git submodule init
git submodule update --remote
cd PyNEC
./build.sh
But I got the following error after the last instruction (
./build.sh
):~/python-necpp/necpp_src ~/python-necpp/PyNEC
libtoolize --force --copy
make: libtoolize: Command not found
Makefile.git:12: recipe for target 'all' failed
make: *** [all] Error 127
./build.sh: line 11: ./configure: No such file or directory
~/python-necpp/PyNEC
./build.sh: line 15: pandoc: command not found
Language subdirectory: python
Search paths:
./
./swig_lib/python/
/usr/share/swig3.0/python/
./swig_lib/
/usr/share/swig3.0/
Preprocessing...
Starting language-specific parse...
Processing types...
C++ analysis...
Processing nested classes...
Generating wrappers...
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying PyNEC.py -> build/lib.linux-x86_64-2.7
running build_ext
building '_PyNEC' extension
creating build/necpp_src
creating build/necpp_src/src
creating build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DBUILD_PYTHON=1 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/usr/lib/python2.7/dist-packages/numpy/core/include -I../necpp_src/src -I../necpp_src/ -I/usr/include/python2.7 -c ../necpp_src/src/matrix_algebra.cpp -o build/temp.linux-x86_64-2.7/../necpp_src/src/matrix_algebra.o -fPIC
In file included from ../necpp_src/src/math_util.h:25:0,
from ../necpp_src/src/matrix_algebra.cpp:203:
../necpp_src/src/common.h:42:20: fatal error: config.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Please, could you help me with this?
The text was updated successfully, but these errors were encountered: