{"action":"closed","issue":{"url":"https://api.github.com/repos/Punto0/faircoin_nrp/issues/9","repository_url":"https://api.github.com/repos/Punto0/faircoin_nrp","labels_url":"https://api.github.com/repos/Punto0/faircoin_nrp/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Punto0/faircoin_nrp/issues/9/comments","events_url":"https://api.github.com/repos/Punto0/faircoin_nrp/issues/9/events","html_url":"https://github.com/Punto0/faircoin_nrp/issues/9","id":148886971,"number":9,"title":"Problems importing from another directory","user":{"login":"bhaugen","id":117439,"avatar_url":"https://avatars.githubusercontent.com/u/117439?v=3","gravatar_id":"","url":"https://api.github.com/users/bhaugen","html_url":"https://github.com/bhaugen","followers_url":"https://api.github.com/users/bhaugen/followers","following_url":"https://api.github.com/users/bhaugen/following{/other_user}","gists_url":"https://api.github.com/users/bhaugen/gists{/gist_id}","starred_url":"https://api.github.com/users/bhaugen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhaugen/subscriptions","organizations_url":"https://api.github.com/users/bhaugen/orgs","repos_url":"https://api.github.com/users/bhaugen/repos","events_url":"https://api.github.com/users/bhaugen/events{/privacy}","received_events_url":"https://api.github.com/users/bhaugen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-16T20:19:58Z","updated_at":"2016-04-17T08:38:09Z","closed_at":"2016-04-17T08:38:09Z","body":"...which I will need to do to import from NRP.\r\n```\r\nIn [1]: import faircoin-nrp.electrum_fair_nrp\r\n  File \"<ipython-input-1-e43ef08e08ba>\", line 1\r\n    import faircoin-nrp.electrum_fair_nrp\r\n                   ^\r\nSyntaxError: invalid syntax\r\n\r\n\r\nIn [2]: efn =  __import__('faircoin-nrp.electrum_fair_nrp')\r\n---------------------------------------------------------------------------\r\nImportError                               Traceback (most recent call last)\r\n/home/bob/.virtualenvs/fcx/valuenetwork/<ipython-input-2-c70bb1cb62b4> in <module>()\r\n----> 1 efn =  __import__('faircoin-nrp.electrum_fair_nrp')\r\n\r\nImportError: No module named faircoin-nrp.electrum_fair_nrp\r\n\r\nIn [3]: efn =  __import__('faircoin-nrp/electrum_fair_nrp')\r\n---------------------------------------------------------------------------\r\nImportError                               Traceback (most recent call last)\r\n/home/bob/.virtualenvs/fcx/valuenetwork/<ipython-input-3-a4b57df5eacf> in <module>()\r\n----> 1 efn =  __import__('faircoin-nrp/electrum_fair_nrp')\r\n\r\nImportError: Import by filename is not supported.\r\n```\r\n\r\nSo I renamed the directory, replacing the dash with an underscore.\r\n\r\n```\r\nIn [1]: import faircoin_nrp.electrum_fair_nrp\r\n---------------------------------------------------------------------------\r\nImportError                               Traceback (most recent call last)\r\n/home/bob/.virtualenvs/fcx/valuenetwork/<ipython-input-1-2ee14eb56597> in <module>()\r\n----> 1 import faircoin_nrp.electrum_fair_nrp\r\n\r\nImportError: No module named faircoin_nrp.electrum_fair_nrp\r\n```\r\nadded an empty ```__init__.py``` file to the faircoin_nrp directory:\r\n\r\n```\r\nIn [1]: import faircoin_nrp.electrum_fair_nrp\r\n\r\nIn [2]: faircoin_nrp.electrum_fair_nrp.wallet\r\nOut[2]: False\r\n\r\nIn [3]: faircoin_nrp.electrum_fair_nrp.wallet_path\r\nOut[3]: '/home/bob/.electrum-fair/wallets/default_wallet'\r\n\r\nIn [4]: faircoin_nrp.electrum_fair_nrp.init()\r\n2016-04-16 15:17:15,435 DEBUG Starting electrum-fair-nrp\r\nelectrum directory /home/bob/.electrum-fair\r\nstarting daemon (PID 17819)\r\nwallet path /home/bob/.electrum-fair/wallets/default_wallet\r\n[profiler] load_transactions 0.0002\r\n\r\nIn [5]: [profiler] save_transactions 0.0080\r\n\r\nIn [5]: faircoin_nrp.electrum_fair_nrp.wallet\r\nOut[5]: <electrum_fair.wallet.NewWallet at 0x25ed4d0>\r\n```\r\n**Recap of requests:**\r\n1. rename faircoin-nrp directory to faircoin_nrp.\r\n2. add an empty ```__init__.py ```file.\r\n"}}