Giter Club home page Giter Club logo

dafy's People

Contributors

jackey-qiu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vplj

dafy's Issues

ray fail to fit CTR model in superrod

When the superrod app is launched from the launch panel of DaFy, the app works fine for just simulating model, but it fails to run the fit. This issue is gone when lauching the app from the project folder (DaFy/projects/superrod).
The error msg show that the model module couldn't be found.
File "C:\Users\qiu\AppData\Local\Programs\Python\Python37\lib\site-packages\ray\serialization.py", line 214, in _deserialize_pickle5_data
obj = pickle.loads(in_band, buffers=buffers)
ModuleNotFoundError: No module named 'model'
I cannot find a way to fix it now. So if you want to fit CTR model, you should start the app from the project folder rather than from the launch panel.

Cannot install requirements

Hi,

I cannot install the pycifrw package to use your code.
I tried with pip install pycifrw but it raises the following error:

Collecting pycifrw
  Using cached PyCifRW-4.4.3.tar.gz (1.1 MB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: pycifrw
  Building wheel for pycifrw (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [47 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.9
      creating build/lib.linux-x86_64-3.9/CifFile
      copying src/__init__.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/CifFile_module.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/yapps3_compiled_rt.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/YappsStarParser_1_1.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/YappsStarParser_1_0.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/YappsStarParser_STAR2.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/YappsStarParser_2_0.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/StarFile.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/TypeContentsParser.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/parsetab.py -> build/lib.linux-x86_64-3.9/CifFile
      creating build/lib.linux-x86_64-3.9/CifFile/drel
      copying src/drel/drel_ast_yacc.py -> build/lib.linux-x86_64-3.9/CifFile/drel
      copying src/drel/drel_runtime.py -> build/lib.linux-x86_64-3.9/CifFile/drel
      copying src/drel/drel_lex.py -> build/lib.linux-x86_64-3.9/CifFile/drel
      copying src/drel/py_from_ast.py -> build/lib.linux-x86_64-3.9/CifFile/drel
      copying src/drel/parsetab.py -> build/lib.linux-x86_64-3.9/CifFile/drel
      copying src/drel/__init__.py -> build/lib.linux-x86_64-3.9/CifFile/drel
      running build_ext
      building 'CifFile.StarScan' extension
      creating build/temp.linux-x86_64-3.9
      creating build/temp.linux-x86_64-3.9/src
      creating build/temp.linux-x86_64-3.9/src/lib
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c src/lib/lex.yy.c -o build/temp.linux-x86_64-3.9/src/lib/lex.yy.o
      star.l: In function ‘star_scanner’:
      star.l:111:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
      lex.yy.c:195:36: warning: comparison of integer expressions of different signedness: ‘int’ and ‘yy_size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      lex.yy.c:213:9: note: in expansion of macro ‘YY_LESS_LINENO’
      star.l:117:24: note: in expansion of macro ‘yyless’
      star.l:136:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
      lex.yy.c:195:36: warning: comparison of integer expressions of different signedness: ‘int’ and ‘yy_size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      lex.yy.c:213:9: note: in expansion of macro ‘YY_LESS_LINENO’
      star.l:142:24: note: in expansion of macro ‘yyless’
      At top level:
      lex.yy.c:1394:16: warning: ‘input’ defined but not used [-Wunused-function]
      lex.yy.c:1349:17: warning: ‘yyunput’ defined but not used [-Wunused-function]
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c src/lib/py_star_scan.c -o build/temp.linux-x86_64-3.9/src/lib/py_star_scan.o
      src/lib/py_star_scan.c:2:10: fatal error: Python.h: No such file or directory
          2 | #include "Python.h"
            |          ^~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pycifrw
  Running setup.py clean for pycifrw
Failed to build pycifrw
Installing collected packages: pycifrw
  Running setup.py install for pycifrw ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for pycifrw did not run successfully.
  │ exit code: 1
  ╰─> [49 lines of output]
      running install
      /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.9
      creating build/lib.linux-x86_64-3.9/CifFile
      copying src/__init__.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/CifFile_module.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/yapps3_compiled_rt.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/YappsStarParser_1_1.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/YappsStarParser_1_0.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/YappsStarParser_STAR2.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/YappsStarParser_2_0.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/StarFile.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/TypeContentsParser.py -> build/lib.linux-x86_64-3.9/CifFile
      copying src/parsetab.py -> build/lib.linux-x86_64-3.9/CifFile
      creating build/lib.linux-x86_64-3.9/CifFile/drel
      copying src/drel/drel_ast_yacc.py -> build/lib.linux-x86_64-3.9/CifFile/drel
      copying src/drel/drel_runtime.py -> build/lib.linux-x86_64-3.9/CifFile/drel
      copying src/drel/drel_lex.py -> build/lib.linux-x86_64-3.9/CifFile/drel
      copying src/drel/py_from_ast.py -> build/lib.linux-x86_64-3.9/CifFile/drel
      copying src/drel/parsetab.py -> build/lib.linux-x86_64-3.9/CifFile/drel
      copying src/drel/__init__.py -> build/lib.linux-x86_64-3.9/CifFile/drel
      running build_ext
      building 'CifFile.StarScan' extension
      creating build/temp.linux-x86_64-3.9
      creating build/temp.linux-x86_64-3.9/src
      creating build/temp.linux-x86_64-3.9/src/lib
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c src/lib/lex.yy.c -o build/temp.linux-x86_64-3.9/src/lib/lex.yy.o
      star.l: In function ‘star_scanner’:
      star.l:111:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
      lex.yy.c:195:36: warning: comparison of integer expressions of different signedness: ‘int’ and ‘yy_size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      lex.yy.c:213:9: note: in expansion of macro ‘YY_LESS_LINENO’
      star.l:117:24: note: in expansion of macro ‘yyless’
      star.l:136:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
      lex.yy.c:195:36: warning: comparison of integer expressions of different signedness: ‘int’ and ‘yy_size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      lex.yy.c:213:9: note: in expansion of macro ‘YY_LESS_LINENO’
      star.l:142:24: note: in expansion of macro ‘yyless’
      At top level:
      lex.yy.c:1394:16: warning: ‘input’ defined but not used [-Wunused-function]
      lex.yy.c:1349:17: warning: ‘yyunput’ defined but not used [-Wunused-function]
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c src/lib/py_star_scan.c -o build/temp.linux-x86_64-3.9/src/lib/py_star_scan.o
      src/lib/py_star_scan.c:2:10: fatal error: Python.h: No such file or directory
          2 | #include "Python.h"
            |          ^~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> pycifrw

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Do you have any idea on to how to fix this error ?
I am running on Debian 11, all the other requirements are OK.

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.