-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imported target "storm" includes non-existent path #12
Comments
Hi, thanks for your detailed report. I could reproduce the issue on my machine. The Storm binaries should work without problems, but building stormpy will not be successful at the moment. In the meantime, I suggest to use a different installation method. You can remove the homebrew build of Storm and manually build Storm. Building stormpy for a manual build of Storm is tested and should work without problems. Apologies for the inconvenience, |
Dear Matthias,
Thank you for your reply.
We’ll try your alternative ways. (My colleague also needs stormpy and came across the same issue as I did.)
Regards
Gavin
… On 18 Feb 2020, at 11:40, Matthias Volk ***@***.***> wrote:
Hi,
thanks for your detailed report. I could reproduce the issue on my machine.
Apparently the installation of Storm via homebrew does not export all necessary files of shipped resources. That is why for example files for the dependency l3pp cannot be found.
The Storm binaries should work without problems, but building stormpy will not be successful at the moment.
We will have a look at this issue but fixing it in CMake is not trivial and requires some work.
In the meantime, I suggest to use a different installation method. You can remove the homebrew build of Storm and manually build Storm <http://www.stormchecker.org/documentation/obtain-storm/build.html>. Building stormpy for a manual build of Storm is tested and should work without problems.
Another possibility is to use our Docker containers <http://www.stormchecker.org/documentation/obtain-storm/docker.html> which already come with preinstalled stormpy support <https://hub.docker.com/r/movesrwth/stormpy/tags>.
Apologies for the inconvenience,
Matthias
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#12?email_source=notifications&email_token=AJ2LF2C6DD2GBANGVU76S7DRDO3IBA5CNFSM4KT2W7Y2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMBPBFA#issuecomment-587395220>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJ2LF2CWRI6H3GJLWHQ3CETRDO3IBANCNFSM4KT2W7YQ>.
|
Dear Matthias,
When installing stormy, I get the following errors:
/Users/gavinrens/stormpy/src/core/core.cpp:98:31: error: no template named
'DirectEncodingParserOptions' in namespace 'storm::parser'; did you mean
'DirectEncodingParser'?
py::class_<storm::parser::DirectEncodingParserOptions>(m, "DirectEnc...
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
DirectEncodingParser
/Users/gavinrens/storm/build/include/storm-parsers/parser/DirectEncodingParser.h:16:15: note:
'DirectEncodingParser' declared here
class DirectEncodingParser {
^
/Users/gavinrens/stormpy/src/core/core.cpp:98:31: error: use of class template
'storm::parser::DirectEncodingParser' requires template arguments
py::class_<storm::parser::DirectEncodingParserOptions>(m, "DirectEnc...
^
/Users/gavinrens/storm/build/include/storm-parsers/parser/DirectEncodingParser.h:16:15: note:
template is declared here
class DirectEncodingParser {
^
/Users/gavinrens/stormpy/src/core/core.cpp:100:67: error: no member named
'DirectEncodingParserOptions' in namespace 'storm::parser'
.def_readwrite("build_choice_labels", &storm::parser::Direct...
~~~~~~~~~~~~~~~^
/Users/gavinrens/stormpy/src/core/core.cpp:109:168: error: no member named
'DirectEncodingParserOptions' in namespace 'storm::parser'
...from DRN", py::arg("file"), py::arg("options") = storm::parser::DirectEn...
~~~~~~~~~~~~~~~^
/Users/gavinrens/stormpy/src/core/core.cpp:110:207: error: no member named
'DirectEncodingParserOptions' in namespace 'storm::parser'
...from DRN", py::arg("file"), py::arg("options") = storm::parser::DirectEn...
~~~~~~~~~~~~~~~^
Any advice?
Regard
Gavin
… On 18 Feb 2020, at 11:53, Gavin Rens ***@***.***> wrote:
Dear Matthias,
Thank you for your reply.
We’ll try your alternative ways. (My colleague also needs stormpy and came across the same issue as I did.)
Regards
Gavin
> On 18 Feb 2020, at 11:40, Matthias Volk ***@***.*** ***@***.***>> wrote:
>
> Hi,
>
> thanks for your detailed report. I could reproduce the issue on my machine.
> Apparently the installation of Storm via homebrew does not export all necessary files of shipped resources. That is why for example files for the dependency l3pp cannot be found.
>
> The Storm binaries should work without problems, but building stormpy will not be successful at the moment.
> We will have a look at this issue but fixing it in CMake is not trivial and requires some work.
>
> In the meantime, I suggest to use a different installation method. You can remove the homebrew build of Storm and manually build Storm <http://www.stormchecker.org/documentation/obtain-storm/build.html>. Building stormpy for a manual build of Storm is tested and should work without problems.
> Another possibility is to use our Docker containers <http://www.stormchecker.org/documentation/obtain-storm/docker.html> which already come with preinstalled stormpy support <https://hub.docker.com/r/movesrwth/stormpy/tags>.
>
> Apologies for the inconvenience,
> Matthias
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub <#12?email_source=notifications&email_token=AJ2LF2C6DD2GBANGVU76S7DRDO3IBA5CNFSM4KT2W7Y2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMBPBFA#issuecomment-587395220>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJ2LF2CWRI6H3GJLWHQ3CETRDO3IBANCNFSM4KT2W7YQ>.
>
|
Hi Gavin, I guess you are using the master version of stormpy and release 1.4.1 of Storm. Unfortunately, these two versions are not compatible. Best, |
Good day,
I'm trying to install stormpy on my Mac with OS Catalina (10.15.2).
I first installed all the dependencies for installing storm with Home-brew as described at http://www.stormchecker.org/documentation/obtain-storm/dependencies.html.
Then I manually installed CArL as described on the same page as above.
Then I installed pycarl using PyCharm with interpreter python3.7. Running
gives
18.08
as output.
Then I installed storm as explained at http://www.stormchecker.org/documentation/obtain-storm/homebrew.html
Running
brew info stormchecker
gives
moves-rwth/storm/stormchecker: stable 1.4.1, HEAD
A modern probabilistic model checker
http://www.stormchecker.org
/usr/local/Cellar/stormchecker/1.4.1 (853 files, 64.8MB) *
Built from source on 2020-02-12 at 10:06:36
From: https://github.com/moves-rwth/homebrew-storm/blob/master/Formula/stormchecker.rb
==> Dependencies
Build: cmake ✔, automake ✔, autoconf ✔
Required: boost ✔, gmp ✔, z3 ✔, xerces-c ✔, glpk ✔, hwloc ✔, doxygen ✔, moves-rwth/misc/carl --with-thread-safe --with-cln --with-ginac ✔
==> Requirements
Required: macOS >= 10.9 ✔
==> Options
--with-cocoalib
Build with support for CoCoALib (also requires CArl to be built with support for CoCoALib).
--with-tbb
Build Storm with Intel Thread Building Blocks (TBB) support.
--HEAD
Install HEAD version
Then I did
$ pip install virtualenv
$ virtualenv -p python3 env
$ source env/bin/activate
and
git clone https://github.com/moves-rwth/stormpy.git
$ cd stormpy
Finally, I did
python3 setup.py develop
and get
running develop
running egg_info
writing lib/stormpy.egg-info/PKG-INFO
writing dependency_links to lib/stormpy.egg-info/dependency_links.txt
writing requirements to lib/stormpy.egg-info/requires.txt
writing top-level names to lib/stormpy.egg-info/top_level.txt
reading manifest file 'lib/stormpy.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'lib/stormpy.egg-info/SOURCES.txt'
running build_ext
Stormpy - Building into build/temp.macosx-10.15-x86_64-3.7
Stormpy - Using storm 1.4.1 from /usr/local/lib/cmake/storm
Stormpy - Support for DFTs found and included.
Stormpy - Support for parametric models found and included.
Stormpy - CMake args=['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/gavinrens/stormpy/lib/stormpy/', '-DPYTHON_EXECUTABLE=/Users/gavinrens/env/bin/python3', '-DCMAKE_BUILD_TYPE=Release', '-Dstorm_DIR=/usr/local/lib/cmake/storm', '-DHAVE_STORM_DFT=ON', '-DHAVE_STORM_PARS=ON']
-- Found PythonInterp: /Users/gavinrens/env/bin/python3 (found version "3.7.6")
-- Found PythonLibs: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7m.dylib
-- pybind11 v2.2.dev0
-- STORM-DIR: /usr/local/lib/cmake/storm
-- STORM-INCLUDE-DIR: /usr/local/lib/cmake/storm/../../../include/storm
-- Configuring done
CMake Error in CMakeLists.txt:
Imported target "storm" includes non-existent path
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
The path was deleted, renamed, or moved to another location.
An install or uninstall procedure did not complete successfully.
The installation package was faulty and references files it does not
provide.
... (times 21)
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
Traceback (most recent call last):
File "setup.py", line 241, in
python_requires='>=3',
File "/Users/gavinrens/env/lib/python3.7/site-packages/setuptools/init.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/gavinrens/env/lib/python3.7/site-packages/setuptools/command/develop.py", line 38, in run
self.install_for_development()
File "/Users/gavinrens/env/lib/python3.7/site-packages/setuptools/command/develop.py", line 140, in install_for_development
self.run_command('build_ext')
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 163, in run
self.build_extension(ext, cmake_args, build_args)
File "setup.py", line 197, in build_extension
subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/Users/gavinrens/stormpy', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/gavinrens/stormpy/lib/stormpy/', '-DPYTHON_EXECUTABLE=/Users/gavinrens/env/bin/python3', '-DCMAKE_BUILD_TYPE=Release', '-Dstorm_DIR=/usr/local/lib/cmake/storm', '-DHAVE_STORM_DFT=ON', '-DHAVE_STORM_PARS=ON']' returned non-zero exit status 1.
Can you perhaps see what I am doing wrong?
Regards
Gavin
The text was updated successfully, but these errors were encountered: