Comments (13)
Hi @yurivict -- Thanks for the instructions. I've managed to setup a VM with FreeBSD.
I've fixed one of the issues in pypr/cyarray#1
I am able to reproduce your error and see a few more things I can fix. I hope I should be able to fix it soon. BTW, I think the package will build fine with gcc but I would like to make sure that it works with clang also.
from pysph.
This looks like a C++ compiler setup issue from the look of it. I build on OS X with their clang (and also with gcc) but haven't tried on another system with clang.
from pysph.
@prabhuramachandran I have clang-6.0.1. What clang did you try on OS X?
clang-7.0.0 fails the same way.
from pysph.
It builds if in this file/place to remove the comparator
element from the std::sort
template parameters.
from pysph.
@yurivict -- I have this, which seems a bit meaningless Apple LLVM version 10.0.0 (clang-1000.10.44.4)
.
Do the tests pass with your modifications? The additional comparator is needed for one of the calls. Perhaps there is a better way of doing this? I will need to investigate this more closely and will do so when I get some time later this week.
from pysph.
@yurivict -- would you be willing to help with this? I am unable to reproduce the error so am not sure how best to proceed. Could you please send me the full error message? Thanks.
from pysph.
Now it breaks with this message:
pyzoltan/core/carray.cpp:44253:3: error: cannot initialize return object of type 'int' with an rvalue of type 'nullptr_t'
import_array();
^~~~~~~~~~~~~~
This file appears to be C++ generated from python.
from pysph.
carray is now in its own package called cyarray
from pypi or here https://github.com/pypr/cyarray. import_array ought to work as it is used all over the place for numpy, again, if you share the full log -- you can directly email me if you don't want to attach it here.
from pysph.
I am thinking of trying freebsd on a virtual machine, so if you can tell me the steps you followed to perform the installation on a fresh system, that would help.
from pysph.
- Download this ISO image: https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/12.0/FreeBSD-12.0-RELEASE-amd64-disc1.iso
- Create a VirtualBox VM with it.
- While installing it in VM, choose to install the ports collection
- Boot this VM up
- Download this shar: https://people.freebsd.org/~yuri/py-PySPH.shar
- Unpack it while in /usr/ports
- Go into the port: /usr/ports/science/py-PySPH
- Type 'make'
It will begin to build the port, and fail with the error above.
from pysph.
You can also execute 'pkg install python36' to install it from binary, and prevent its rebuild.
from pysph.
Thanks for fixing the issues. We mostly use clang on FreeBSD.
I will try to create a port again, once you are done.
Yuri
from pysph.
Hi @yurivict -- I've fixed the issues in pysph and compyle. If you use master of cyarray, compyle and pysph it should work on freebsd with clang. It should also work fine with openmp. Please let us know if you run into any other issues.
from pysph.
Related Issues (20)
- numpy problem np.load: ValueError: Object arrays cannot be loaded when allow_pickle=False HOT 2
- I get "OSError: [WinError 6] The handle is invalid" when trying to run pysph examples HOT 6
- Error trying to view pysph examples (windows 10, anaconda, python 3.7.4) HOT 5
- Question: Inlet / Outlet with multiple fluids HOT 2
- Facing error while running dam_break_3d HOT 1
- For 3D_DAM BREAK I was not able to get .npz file HOT 1
- Intermittent error in pysph.parallel.tests.test_parallel.MPIReduceArrayTestCase.test_parallel_reduce HOT 5
- ValueError when running elliptical_drop example HOT 1
- Wondering if this can be implemented to work with or in blender HOT 1
- Issue with using pysph view HOT 2
- Process on GPU killed after long run and/or restart HOT 5
- cull_factor is not initialized in code HOT 1
- Possible bug in TransportVelocityStep HOT 2
- cannot run gas dynamic example in GPU
- Some confusion about using pysph HOT 1
- : fatal error C1083: Cannot open include file: 'io.h': No such file or directory
- ERROR: Failed building wheel for PySph HOT 5
- how to use TVF wall boundary for solid HOT 2
- Process finished with exit code -1073741819 (0xC0000005)
- gtvf for solid problem HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysph.