Git Product home page Git Product logo

Comments (10)

YutaoChen0512 avatar YutaoChen0512 commented on June 19, 2024 1

@simomarsili

from ndd.

simomarsili avatar simomarsili commented on June 19, 2024

Hi,
this is small script that collects some info on your system:
https://gist.github.com/simomarsili/dcadc9a4e8ceff9043bcc56c540479cf

Can you run it and paste here the output?
Thank you

from ndd.

YutaoChen0512 avatar YutaoChen0512 commented on June 19, 2024

Sorry, I can't access this site.
Can you send this script to my mailbox?
My mail address is [email protected]
Thank you very much for your help.
1

from ndd.

simomarsili avatar simomarsili commented on June 19, 2024

No problem. This is the script:

# -*- coding: utf-8 -*-
"""System info"""

import platform
import sys
import numpy
import subprocess


print(
    """
    platform:
    %s

    architecture:
    %s, %s

    Python:
    %s

    NumPy:
    %s

    gfortran:
    %s
    """ % (
        platform.platform(),
        platform.architecture(), sys.maxsize > 2**32,
        sys.version,
        numpy.__version__,
        subprocess.run(['gfortran', '-v'], stderr=subprocess.PIPE).stderr.decode(),
    )
)

from ndd.

YutaoChen0512 avatar YutaoChen0512 commented on June 19, 2024

OK,This is the parameter of my system.

platform:
Windows-10-10.0.17763-SP0

architecture:
('64bit', 'WindowsPE'), True

Python:
3.6.7rc1 (v3.6.7rc1:311101f7b6, Sep 26 2018, 16:33:24) [MSC v.1900 64 bit (AMD64)]

NumPy:
1.13.1

gfortran:
Using built-in specs.

COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=d:/gfoetran/gfortran/bin/../libexec/gcc/mingw32/4.10.0/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-trunk/configure --prefix=/mingw --enable-languages=c,fortran,lto --with-gmp=/home/brad/gfortran/dependencies --disable-werror --enable-threads --enable-nls --build=i586-pc-mingw32 --enable-libgomp --enable-shared --disable-win32-registry --with-dwarf2 --disable-sjlj-exceptions --enable-lto --build=mingw32 --enable-version-specific-runtime-libs : (reconfigured) ../gcc-trunk/configure --prefix=/mingw --enable-languages=c,fortran,lto --with-gmp=/home/brad/gfortran/dependencies --disable-werror --enable-threads --enable-nls --build=i586-pc-mingw32 --enable-libgomp --enable-shared --disable-win32-registry --with-dwarf2 --disable-sjlj-exceptions --enable-lto --build=mingw32 --enable-version-specific-runtime-libs
Thread model: win32
gcc version 4.10.0 20140629 (experimental) [trunk revision 212119] (GCC)

Am I lacking the conditions for running the NDD library?

from ndd.

simomarsili avatar simomarsili commented on June 19, 2024

Am I lacking the conditions for running the NDD library?

This looks like a windows-related issue (the package is not tested under windows). I think it can be solved.

  • In the package installation dir:
    C:\SSD\python3.6.7\lib\site-packages\ndd
    check if you have a .libs directory.
  • In the .libs directory, you should find a .dll file.
    Copy this file to the ndd directory (the installation dir).
  • Finally, try to import ndd (python -c "import ndd") and paste here any error message

from ndd.

YutaoChen0512 avatar YutaoChen0512 commented on June 19, 2024

Because I can't use pip to install ndd.
Ndd directory only you upload to github program, did not find .dlls directory and .dll files.
The reasons for the error are as follows:
2

ERROR: Command errored out with exit status 1: 'C:\SSD\python3.6.7\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\cyt\AppData\Local\Temp\pycharm-packaging\ndd\setup.py'"'"'; file='"'"'C:\Users\cyt\AppData\Local\Temp\pycharm-packaging\ndd\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\cyt\AppData\Local\Temp\pip-record-t8bcckrr\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

from ndd.

simomarsili avatar simomarsili commented on June 19, 2024

Please download the python wheel ndd-1.4.1-cp37-cp37m-win_amd64.whl from this repo:

https://github.com/simomarsili/ndd-wheels

(direct link to the file)

Install it using pip:

pip install ndd-1.4.1-cp37-cp37m-win_amd64.whl

the wheel contains the ndd package with compiled extensions for Windows.
This should work. Let me know.
Bye

from ndd.

YutaoChen0512 avatar YutaoChen0512 commented on June 19, 2024

Sorry, I have not been able to respond to your information in time because of some things.
I have installed the new ndd library.But still have previous problems.
The contents of python -c "import ndd" are as follows:
ndd

ModuleNotFoundError: No module named 'ndd.fnsb'

from ndd.

simomarsili avatar simomarsili commented on June 19, 2024

try to update your numpy version:
pip install -U numpy

from ndd.

Related Issues (5)

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.