Comments (12)
Done! It needed 18:09 hours of work, not so bad.
Migration to Python 3 is completed.
from xc.
YEAH! It took much much more hours to port FreeCAD
from xc.
from xc.
I've just finished with the migration of the xc_utils package. I'll continue with XC soon. It doesn't seem too difficult.
from xc.
Hi, thank you very much for your offer.
I think we can make the code run under both Python 2 and Python 3. I've started with the modules in xc_utils, you can take a look to the last commit.
I was trying to make one of the simplest tests test_evalPy.py to run under Python3. I've not succeeded there is some problem when installing the c++ extensions; Python3 doesn't find them. Maybe you can take a look to the setup file. It puts the libraries in '/usr/local/lib/python3/dist-packages' but Python3 doesn't find them.
Regards. Luis.
from xc.
You're welcome ;)
I will look at the file later, but as I can see from your comment, there's no address as '/usr/local/lib/python3/dist-packages'
at least in Debian-based distros. In Debian minor version of python should be included, something like: '/usr/local/lib/python3.5/dist-packages'
regards.
Salman
from xc.
Hi.
It's the line; 'pth_to_libs= get_python_lib(1,0,myPrefix)' in setup.py which returns the directory for the libraries: '/usr/local/lib/python2.7/dist-packages' when executed with Python 2 and '/usr/local/lib/python3/dist-packages' when executed with Python3. I'm using Ubuntu 18.04.
from xc.
good luck luis with the move to Py3. On FreeCAD it took a huge amount of time ... but eventualle it was worth any second spent ont the move to Py3.
cheers bernd
from xc.
Thanks Bernd.
The first thing I'm trying to do is to expose XC c++ modules to Py3 (i thought that it was a trivial step but, apparently, it is not so trivial...). On the bright side I think XC is simpler than FreeCAD.
from xc.
Hi @lcpt , what is going on this migration? any effort? thanks.
from xc.
Hi Ebrahim.
We've postponed the migration of the C++ modules to Python 3 until the release of Ubuntu 20.4 in April. I think that working with a distribution that comes with Python 3 as default will make things a lot easier. In the interim we are gently migrating the Python modules.
from xc.
FreeCAD is much more complex.
from xc.
Related Issues (20)
- Error installing XC in cmake build step Ubuntu 20.04 HOT 28
- 'GDK_IS_DISPLAY (display)' failed and Windows Subsystem for Linux. HOT 9
- Gmsh error in gmsh verification tests. HOT 2
- Installation with WSL: undefined symbol: _Z23export_material_sectionv HOT 18
- show vtk results in wsl (windows subsystem for linux) HOT 9
- cc1plus: error: bad value ('tigerlake') for '-march' switch HOT 7
- Linking CXX shared library /root/build_xc/xc/lib/libXcBib.so failed HOT 3
- Can not create folder with "aux" name in windows HOT 2
- Error during build: 'assert' was not declared in this scope HOT 2
- Error installing on Ubuntu 20.04 HOT 23
- Question: Linear Element Loads HOT 12
- AISC code checking for the general ISection HOT 1
- Two method with same names in AISC Member class HOT 1
- Invalid math expression HOT 1
- Error in installing libgmsh4 after compiling FreeCAD HOT 12
- When i try to clone this directory an error is caused - aisc_shapes_database... HOT 9
- Error on installing on Ubuntu 21.04 HOT 26
- compile error: "/usr/bin/vtkParseOGLExt-7.1" does not exist HOT 1
- Compile error: ‘setTransfiniteAutomatic’ is not a member of ‘gmsh::model::mesh’ HOT 3
- undefined symbol error in importing xc HOT 8
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 xc.