Comments (14)
$ python bootstrap.py
Traceback (most recent call last):
File "bootstrap.py", line 1, in
from neo.Settings import settings
File "D:\pyt\neo\Settings.py", line 14, in
import logzero
ImportError: No module named 'logzero'
from neo-python.
This means you haven't installed the requirements.txt
or your virtual environment has not been activated.
from neo-python.
During run the command $ pip install -r requirements.txt
It give error :
c:\users\pankaj.thakur\appdata\local\programs\python\python35\include\pyconfig.h(243): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2
Please let me know where i am wrong.
from neo-python.
Hello @localhuman
This was due to Microsoft VS 14.0 now its fine but i am getting new problem
plyvel/_plyvel.cpp(359): fatal error C1083: Cannot open include file: 'leveldb/db.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2
from neo-python.
Yeah, as the docs say LevelDB is not well supported on Windows. Perhaps you can use Docker or run the code in a Linux VM?
from neo-python.
Hello @metachris Thanks for replay. Ok i will use Docker
from neo-python.
👍
from neo-python.
Hello @metachris i have install the Docker and docker working fine.
But still i am getting error.
plyvel/_plyvel.cpp(359): fatal error C1083: Cannot open include file: 'leveldb/db.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2
Please let me know how can i use docker for python-neo
from neo-python.
you're not running neo-python inside docker. perhaps easier for you would be to install VirtualBox, and setup a Ubuntu VM with Vagrant. Then you can setup and run neo-python inside the Linux VM.
from neo-python.
Sorry if i am in the wrong place, but can someone help me with this issue.
I have an error when i add this on my python code and try to build:
from neocore.Cryptography.Crypto import Crypto
BUT
from boa.interop.Neo.Runtime import CheckWitness
from boa.interop.Neo.Storage import GetContext, Put, Delete, Get
from boa.builtins import concat
Only those 3 lines, building just fine.
How can i add the module neocore in my python code?
I already installed all the requirements on neo-python, i can see the neocore folder in the venv.
Thanks!
from neo-python.
You can't import normal python modules in smart contracts.
from neo-python.
So the normal python modules can only for script outside the smart contract?
Smart contract itself can only in boa?
Thank you, (i am in learning stage now)
from neo-python.
Yes, exactly. Orient yourself on the boa examples for what you can do in smart contracts: https://github.com/CityOfZion/neo-boa/tree/master/boa_test/example
from neo-python.
Thank you very much!
from neo-python.
Related Issues (20)
- Circular map reference causes Python stack overflow
- Docker build exits with errors HOT 9
- Parser breaks when reading --tx-attr argument with spaces HOT 3
- Privatenet fails to initialize HOT 2
- neo-python can't sync with Neo 2.10.3 nodes HOT 1
- Deploy Neo Smart Contract at runtiime. HOT 5
- Wallet & np-api-server issues HOT 2
- BigInteger ToByteArray incompatible with neo-vm v3.0.0 HOT 1
- Unclaimed gas calculation incorrect HOT 6
- About NEP-5 Smart Contracts HOT 8
- docker 只有Ubuntu的吗,在centos上运行出错
- centos7下,运行np-prompt,卡顿后后,ctrl + z 退出后,再此运行np-prompt,报错 HOT 1
- 运行np-prompt后,prompt.log中报错, HOT 1
- 运行np-prompt后,没有出现NEO命令行
- Connect to node problem HOT 2
- TestNet bootstrap HOT 1
- prompt input parser parses nested lists incorrectly HOT 1
- Simple Policy Plugin HOT 6
- np-bootstrap -c configure my local sync node that haved sync and the block data is finish. HOT 1
- np-bootstrap hangs at confirm prompt HOT 1
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 neo-python.