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

Setting up #33

Open
bitcartel opened this issue Sep 22, 2017 · 13 comments
Open

Setting up #33

bitcartel opened this issue Sep 22, 2017 · 13 comments

Comments

@bitcartel
Copy link

@arcalinea @arielgabizon

Following the set up instructions I run into problems:

Using venv, python -V returns Python 3.5.2 which is expected.

Next step, pip install zbxcat returns:

  Could not find a version that satisfies the requirement zbxcat (from versions: )
No matching distribution found for zbxcat
@arielgabizon
Copy link
Contributor

I get the same thing. @arcalinea could it be because of moving zbxcat to zcash-hackworks?

@prestwich
Copy link
Contributor

Use pip install -e ./zbxcat to install the local project folder and keep it editable (-e) for development. Omitting the ./ has pip check package directories instead of local folders.

Also works:
cd zbxcat && pip install -e .

@arielgabizon
Copy link
Contributor

That worked!

@johanssonlc
Copy link

Above got me further but then it failed on some dependency:

`(venv) crypto-dev@alpha2:~/zcash/xcat$ cd zbxcat && pip install -e .
Obtaining file:///home/crypto-dev/zcash/xcat/zbxcat
Requirement already satisfied: python-bitcoinlib in /home/crypto-dev/zcash/xcat/venv/lib/python3.5/site-packages (from xcat==0.1)
Collecting plyvel (from xcat==0.1)
Using cached plyvel-0.9.tar.gz
Building wheels for collected packages: plyvel
Running setup.py bdist_wheel for plyvel ... error
Complete output from command /home/crypto-dev/zcash/xcat/venv/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-de4jdc59/plyvel/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpgxuhzblfpip-wheel- --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/plyvel
copying plyvel/_version.py -> build/lib.linux-x86_64-3.5/plyvel
copying plyvel/init.py -> build/lib.linux-x86_64-3.5/plyvel
running build_ext
building 'plyvel._plyvel' extension
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/plyvel
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -I/home/crypto-dev/zcash/xcat/venv/include/python3.5m -c plyvel/_plyvel.cpp -o build/temp.linux-x86_64-3.5/plyvel/_plyvel.o -Wall -g
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
plyvel/_plyvel.cpp:8:22: fatal error: pyconfig.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


Failed building wheel for plyvel
Running setup.py clean for plyvel
Failed to build plyvel
Installing collected packages: plyvel, xcat
Running setup.py install for plyvel ... error
Complete output from command /home/crypto-dev/zcash/xcat/venv/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-de4jdc59/plyvel/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-3n9do7ui-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/crypto-dev/zcash/xcat/venv/include/site/python3.5/plyvel:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/plyvel
copying plyvel/_version.py -> build/lib.linux-x86_64-3.5/plyvel
copying plyvel/init.py -> build/lib.linux-x86_64-3.5/plyvel
running build_ext
building 'plyvel._plyvel' extension
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/plyvel
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -I/home/crypto-dev/zcash/xcat/venv/include/python3.5m -c plyvel/_plyvel.cpp -o build/temp.linux-x86_64-3.5/plyvel/_plyvel.o -Wall -g
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
plyvel/_plyvel.cpp:8:22: fatal error: pyconfig.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------

Command "/home/crypto-dev/zcash/xcat/venv/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-de4jdc59/plyvel/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-3n9do7ui-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/crypto-dev/zcash/xcat/venv/include/site/python3.5/plyvel" failed with error code 1 in /tmp/pip-build-de4jdc59/plyvel/`

Any idea what the problem might be?

@prestwich
Copy link
Contributor

prestwich commented Oct 20, 2017

Do you have levelDB installed? It is not packaged with plyvel. Try sudo apt-get install libleveldb1 libleveldb-dev


Also, you can wrap terminal output with three backticks: ``` to create

code blocks.

@johanssonlc
Copy link

johanssonlc commented Oct 20, 2017 via email

@arielgabizon
Copy link
Contributor

arielgabizon commented Oct 20, 2017

@johanssonlc

Can you try according to this answer here
okfn/piati#65

image

Also maybe try putting zbxcat in the root instead of in a subdirectory?

If it doesn't work we should ask @arcalinea again.

btw @frdwrd did you manage to use the xcat code?

@prestwich
Copy link
Contributor

@johanssonlc I think that @arielgabizon is right. Try sudo apt-get install python3-dev and then installing again.

@arielgabizon Yeah, I have it set up and running with regtest daemons. I also set up a test runner and requirements.txt and implemented a bunch of unit tests.

@johanssonlc
Copy link

johanssonlc commented Oct 22, 2017 via email

@arielgabizon
Copy link
Contributor

Awesome! Can you specify exactly what did the trick so we can improve the instructions?

@arielgabizon
Copy link
Contributor

Ohh sudo apt-get install python3-dev?

@johanssonlc
Copy link

johanssonlc commented Oct 22, 2017 via email

@arielgabizon
Copy link
Contributor

@arcalinea should we add sudo apt-get install python3-dev in the beginning of the installation instructions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants