Giter Site home page Giter Site logo

hourcrypto's People

Contributors

hourglss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hourcrypto's Issues

Troubles importing modules (for example: Utilities)

Testing a new feature that I implemented, the following error appears when trying to run Wallet.py:

Traceback (most recent call last):
  File "Wallet.py", line 26, in <module>
    from Utilities.Utility import get_data_from_file, gen_encryption_key
ModuleNotFoundError: No module named 'Utilities'

I noticed that running the file in a separate subfolder leads to that problem. (Importing Utilities being in the same folder that the module can be done without problem)

Of course, the solution for this is running the script in the same directory where the module is. But this can only be done in two ways:

  • Moving Wallet.py to the parent folder, where the module is. The problem is that if I must move to the parent folder all the python scripts that use the modules, I'll end up breaking the initial and clean structure of the proyect.
  • "If Mohammed doesn't go to the mountain then the mountain must go to Mohammed"... The second option is moving the module to the folder where Wallet.py is. But obviously, it won't be still accesible by other scripts that require it, and if we moved them also to the same folder we would end up in the same mess that in case one.

So... What can I do?

ImportError: No module named Block

I am getting the following:

miner\Mining\Mining.py", line 4, in
from Mining.Block import Block
ImportError: No module named Block

Any ideas?

Documentation?

How would I put this into practice? With simplecoin it was easy for there was only 2 python files however here I have no idea where even to start

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.