Giter Site home page Giter Site logo

Comments (19)

silopolis avatar silopolis commented on May 24, 2024 2

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.

looooo avatar looooo commented on May 24, 2024

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.

silopolis avatar silopolis commented on May 24, 2024

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.

looooo avatar looooo commented on May 24, 2024

have you tried to use:

python setup.py build
python setup.py install

?

from pivy.

looooo avatar looooo commented on May 24, 2024

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.

silopolis avatar silopolis commented on May 24, 2024

from pivy.

looooo avatar looooo commented on May 24, 2024

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.

J-Dunn avatar J-Dunn commented on May 24, 2024

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.

looooo avatar looooo commented on May 24, 2024

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.

J-Dunn avatar J-Dunn commented on May 24, 2024

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.

looooo avatar looooo commented on May 24, 2024

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.

J-Dunn avatar J-Dunn commented on May 24, 2024

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.

looooo avatar looooo commented on May 24, 2024

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.

J-Dunn avatar J-Dunn commented on May 24, 2024

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.

looooo avatar looooo commented on May 24, 2024

Is this still valid? I think I have applied all patches used for the debian packages. @kkremitzki ?

from pivy.

kkremitzki avatar kkremitzki commented on May 24, 2024

This doesn't seem relevant to the current Debian package as far as I can tell.

from pivy.

looooo avatar looooo commented on May 24, 2024

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.

berndhahnebach avatar berndhahnebach commented on May 24, 2024

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

https://github.com/berndhahnebach/FreeCAD_bhb/blob/4b63b9b7bea5a9e3d37a94931cef333988159254/compile/Linux_Debian_10_Buster_FreeCAD_018_Qt5_Py3.sh#L112-L116

from pivy.

looooo avatar looooo commented on May 24, 2024

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)

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.