Comments (19)
Trying again:
~/Sources/pivy> git clone https://github.com/FreeCAD/pivy.git
~/Sources/pivy> cd pivy
~/Sources/pivy/pivy> python setup.py build
running build
...
Welcome to Pivy 0.6.4!
Building Pivy has never been so much fun!
Platform...linux2
Python version...2.7.13
Checking for swig...
'/usr/bin/swig'
Checking for SWIG version...
3.0.10
calling: cmake
CMake Error at CMakeLists.txt:4 (find_package):
Could not find a package configuration file provided by "Coin" with any of
the following names:
CoinConfig.cmake
coin-config.cmake
Add the installation prefix of "Coin" to CMAKE_PREFIX_PATH or set
"Coin_DIR" to a directory containing one of the above files. If "Coin"
provides a separate development package or SDK, be sure it has been
installed.
checking for COIN via cmake
checking for SOQT via cmake
Traceback (most recent call last):
File "setup.py", line 662, in <module>
platforms=['Any']
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "setup.py", line 584, in run
self.pivy_configure()
File "setup.py", line 449, in pivy_configure
self.check_with_cmake()
File "setup.py", line 225, in check_with_cmake
if config_dict['SOQT_FOUND'] == 'false':
KeyError: 'SOQT_FOUND'
from pivy.
hmm I don't know what the problem is. If I remeber correctly I was taking another approach to create some packages for ubuntu ppa.
You can also try to build pivy with distutils:
# clone/download pivy (+extracting)
cd pivy
python setup.py build
sudo python setup.py install # if the previous step worked
The master currently doesn't support building with older coin version. You have to use the cmake-branch for coin. Also I think it's not possible to build with qt4. Maybe it's better to use 0.6.2 to try building with qt4.
Anyway, a proper solution would be to package coin and dependencies with cmake/qt5 support and afterwards build pivy.
from pivy.
Built 0.6.2 but doesn't seem to solve my issue.
No chance with newer versions
Platform...linux2
Python version...2.7.13
Checking for swig...
'/usr/bin/swig'
Checking for SWIG version...
3.0.10
Warning: Pivy has only been tested with the following SWIG versions: 1.3.31 1.3.33 1.3.35 1.3.40.
Checking for coin-config...
'/usr/bin/coin-config'
Coin version...
4.0.0a
** Warning: Pivy has only been tested with Coin versions Coin-dev 3.
Checking for Coin features...
vrml97
sound
threads
threadsafe
()
Checking for soqt-config...
'/usr/bin/soqt-config'
Checking for soqt version...
1.6.0a
Checking for soxt-config...
not found.
Checking for sogtk-config...
not found.
Checking for sowin-config...
not found.
Checking for simvoleon-config...
not found.
Preparing Inventor headers:.
=== pivy/gui/soqt_wrap.cpp for pivy.gui.soqt already exists! ===
=== pivy/coin_wrap.cpp for pivy.coin already exists! ===
running build_py
package init file 'pivy/quarter/plugins/designer/python/__init__.py' not found (or not a regular file)
file pivy/graphics/.py (for module pivy.graphics.) not found
[...]
from pivy.
have you tried to use:
python setup.py build
python setup.py install
?
from pivy.
this problem is because there is no cmake-config file for coin. This file is only installed if you install coin with cmake. Soqt shouldn't matter that much although the reported problem leads to the assumption the problem is to due soqt.
If you want to use qt4 with pivy please use the 0.6.2 release.
- donwload & extract
- python setuup.py build
- sudo python setup.py install
from pivy.
from pivy.
sry, I didn't read about your origin problem.
('[Draft.todo.commit] Unexpected error:', <type 'exceptions.SyntaxError'>, 'in ', <bound method arcTracker._removeSwitch of <DraftTrackers.arcTracker instance at 0x7f3f55280c20>>, '(', <pivy.coin.SoSwitch; proxy of <Swig Object of type 'SoSwitch *' at 0x7f3f5533b510> >, ')')
the workbench somehow hides the error reports, which is in my mind not a good solution. You can search in the code for '[Draft.todo.commit] Unexpected error:'
and do some modification to find out what the problem in your case is.
from pivy.
this problem is because there is no cmake-config file for coin. This file is only installed if you install coin with cmake. Soqt shouldn't matter that much although the reported problem leads to the assumption the problem is to due soqt.
If you want to use qt4 with pivy please use the 0.6.2 release.
* donwload & extract * python setuup.py build * sudo python setup.py install
the workaround to get this to build is to add env var , eg.
export CMAKE_PREFIX_PATH=/usr/local/lib64/cmake/Coin-4.0.0
from pivy.
CMAKE_PREFIX_PATH=/usr/local/lib64/cmake/Coin-4.0.0
So this is not a std-path cmake is looking for configs?
from pivy.
So , I'm just providing a work around to get the damned thing to compile. I'm not explaining the bug or suggesting this is a permanent fix. Hoping this info may lead to a better solution and not having to spend days screwing around just to get a compiler run.
If we are going to hand compile stuff into secondary locations, maybe some config changes are needed. At least of certain distros.
from pivy.
So , I'm just providing a work around to get the damned thing to compile.
I am only testing with conda (win/osx/linux). I know that there will be errors for distro a.b. And if we solve for distro a.b there are still errors for distro c.d. Thats why I don't want to spend any time with packaging for distros. But for sure I will include any feedback if reported. But most people seem to be interested in compiling and do not report back the problems. That's why this is not getting better. (So I guess it's up to you to make this situation better ; )
from pivy.
But most people seem to be interested in compiling and do not report back the problems. That's why this is not getting better. (So I guess it's up to you to make this situation better ; )
So should I read that as : "thanks for your feedback, this will help us improve it for others. Thank you for taking the time to report the error on your platform and the workaround you found" ?
from pivy.
Do you think this damn feedback is worth any $? (To say it in your words)
But yes a little bit of feedback is better than no feedback. And I am happy to make this library more solid.
from pivy.
I never suggested it was worth $, but if it saves others from wasting the time I've had to waste just to get the compile off the ground, that will be worth the effort of reporting. That's fundamentally how OSS works. If you are happy to improve the library we are pulling together.
from pivy.
Is this still valid? I think I have applied all patches used for the debian packages. @kkremitzki ?
from pivy.
This doesn't seem relevant to the current Debian package as far as I can tell.
from pivy.
anyway, I close this one for now. I think the debian packages should work now without any additional patches. If there are some please report them to this repo.
from pivy.
have you tried to use:
python setup.py build python setup.py install
I tried to build pivy with this commands many times, too. See https://forum.freecadweb.org/viewtopic.php?f=4&t=33262 I gave up ... It works if a deb package is created. Since this works, I just use it. Eventually I have a pivy on my github which I use fo my compile scripts ...
https://github.com/berndhahnebach/FreeCAD_bhb/releases/tag/1
and
from pivy.
There are several issues. One is the coin library which is used in an unreleased state. For conda I am maintainer of both, pivy and coin so I know which coin works with which pivy. And I have to admit that I don't care much about other distros package managers. But as I am testing Cross Plattform with conda I don't think this is a big issue.
from pivy.
Related Issues (20)
- SoGui.init(sys.argv[0]) run error HOT 6
- 'pivy._coin' has no attribute 'delete_SoGeo' HOT 7
- circular import error HOT 16
- Possible to SegFault SoPerspectiveCamera.getMatrix
- Pivy fails to build with Python 3.12 HOT 4
- Pivy failes to build with Python 3.13 HOT 4
- ImportError: cannot import name 'QActionGroup' from 'pivy.qt.QtWidgets' HOT 5
- imp module is removed in Python 3.12 HOT 2
- LINK : fatal error LNK1104: 无法打开文件“"G:\coin\coin\VS\Coin\lib\Coin4d.lib"”
- move to github actions and build for multiple python versions
- Transfer ownership of PyPi entry HOT 2
- How do you recommend projects find pivy using CMake ? (Is there a Findpivy.cmake?) HOT 4
- Recursion in SoBaseKit.__getattr__ HOT 4
- Pivy Python 3.10/3.11 compatibility? HOT 16
- unable to open file "...\Coin3D\lib\Coin4.lib" HOT 1
- Neither setup.py nor CMake build works without issues
- Could not find a package configuration file provided by "Coin" HOT 4
- macos build failure using cmake HOT 20
- SoVMRLTransform.setMatrix doesn't accept a parameter
- FreeCAD fails SIGSEGV, some pivy tests/ FAIL, one fails with SIGSEGV HOT 7
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 pivy.