GithubHelp home page GithubHelp logo

Comments (14)

plash29 avatar plash29 commented on June 10, 2024

$ 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.

localhuman avatar localhuman commented on June 10, 2024

This means you haven't installed the requirements.txt or your virtual environment has not been activated.

from neo-python.

plash29 avatar plash29 commented on June 10, 2024

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.

plash29 avatar plash29 commented on June 10, 2024

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.

metachris avatar metachris commented on June 10, 2024

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.

plash29 avatar plash29 commented on June 10, 2024

Hello @metachris Thanks for replay. Ok i will use Docker

from neo-python.

metachris avatar metachris commented on June 10, 2024

👍

from neo-python.

plash29 avatar plash29 commented on June 10, 2024

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.

metachris avatar metachris commented on June 10, 2024

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.

stanleywijaya avatar stanleywijaya commented on June 10, 2024

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.

metachris avatar metachris commented on June 10, 2024

You can't import normal python modules in smart contracts.

from neo-python.

stanleywijaya avatar stanleywijaya commented on June 10, 2024

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.

metachris avatar metachris commented on June 10, 2024

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.

stanleywijaya avatar stanleywijaya commented on June 10, 2024

Thank you very much!

from neo-python.

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.