Skip to content
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

CMake file through Demo + dynamicCode5 #72

Closed
ypsilon94 opened this issue Mar 27, 2018 · 3 comments · Fixed by #103
Closed

CMake file through Demo + dynamicCode5 #72

ypsilon94 opened this issue Mar 27, 2018 · 3 comments · Fixed by #103
Labels

Comments

@ypsilon94
Copy link

Hi everyone,
I'm trying to launch the demo provided; unfortunately, I found a CMake Error, that you'll find in the following, I tried to find the file to correct it but I didn't manage to. Could you help me?

The error:
At the step: Transactions Paying over 1000 dollars in fees
Line: %time high_fee_txes = chain.cpp.filter_tx("fee(tx) > 10000000", 0, len(chain))
Error: CMake Error at CMakeLists.txt:38 (add_subdirectory):
add_subdirectory given source "/home/ubuntu/BlockSci/libs/pybind11" which
is not an existing directory. ( <-- here the problem is quite stupid, the path is just "/home/salvatore/BlockSci/libs/pybind11" but I can't find where to correct it )

CMake Error at CMakeLists.txt:42 (pybind11_add_module):
Unknown CMake command "pybind11_add_module". ( <-- I think it will be solved after the first)

make: *** No targets specified and no makefile found. Stop.

make: *** No rule to make target 'install'. Stop.


ImportError Traceback (most recent call last)
in ()

~/BlockSci/Notebooks/blocksci/init.py in filter_tx(self, code, start, end)
225 filled_template = template.safe_substitute({"module_name":module_name, "func_def" : code})
226 makefile = self.create_makefile(module_name)
--> 227 func = self.build_function(filled_template, makefile, module_name)
228 self.saved_tx_filters[code] = func
229 return self.saved_tx_filters[code](self.chain, start, end)

~/BlockSci/Notebooks/blocksci/init.py in build_function(self, full_code, makefile, module_name)
252 out, err = process.communicate()
253 print(err.decode('utf8'))
--> 254 mod = importlib.import_module(module_name)
255 return getattr(mod, "func")

/usr/lib/python3.5/importlib/init.py in import_module(name, package)
124 break
125 level += 1
--> 126 return _bootstrap._gcd_import(name[level:], package, level)
127
128

/usr/lib/python3.5/importlib/_bootstrap.py in _gcd_import(name, package, level)

/usr/lib/python3.5/importlib/_bootstrap.py in find_and_load(name, import)

/usr/lib/python3.5/importlib/_bootstrap.py in find_and_load_unlocked(name, import)

ImportError: No module named 'dynamicCode5' ( <-- Do I have to import it? )

Thank you very much for your help!

@hkalodner hkalodner added the bug label Mar 27, 2018
@hkalodner
Copy link
Collaborator

Hey @ypsilon94,

Whoops the problem is that the path is hardcoded in BlockSci/Notebooks/blocksci/templateMakefile.

I'm working on a fix to this.

hkalodner added a commit that referenced this issue May 3, 2018
Update BlockSci to v0.5.0

Version 0.5.0 focuses mainly on improvements and cleanups in the python interface. The largest new feature is the introduction of vectorized operations which return NumPy arrays, enabling much more rapid usage of BlockSci's python interface. You can read more details about the release in the [release notes](https://citp.github.io/BlockSci/changelog.html#version-0-5-0).

Fixes #72, fixes #76, fixes #84, and fixes #98
@rihanagosh08
Copy link

CMake Error at python/openpose/CMakeLists.txt:6 (pybind11_add_module):
Unknown CMake command "pybind11_add_module"..please give the solution for this

@maltemoeser
Copy link
Member

@rihanagosh08 your problem does not seem related to BlockSci. If you have an issue related to BlockSci, please open a new issue

@citp citp locked as resolved and limited conversation to collaborators Feb 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants