question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

This program not work correctly on linux

See original GitHub issue

Output error when execute python3 miner.py on terminal:

Traceback (most recent call last):
  File "/home/mateusfg7/Desktop/SimpleCoin/simpleCoin/miner.py", line 267, in <module>
    p2 = Process(target=node.run(), args=b)
  File "/usr/lib/python3/dist-packages/flask/app.py", line 990, in run
    run_simple(host, port, self, **options)
  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 1052, in run_simple
    inner()
  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 1005, in inner
    fd=fd,
  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 848, in make_server
    host, port, app, request_handler, passthrough_errors, ssl_context, fd=fd
  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 740, in __init__
    HTTPServer.__init__(self, server_address, handler)
  File "/usr/lib/python3.7/socketserver.py", line 452, in __init__
    self.server_bind()
  File "/usr/lib/python3.7/http/server.py", line 137, in server_bind
    socketserver.TCPServer.server_bind(self)
  File "/usr/lib/python3.7/socketserver.py", line 466, in server_bind
    self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use
Process Process-1:
Traceback (most recent call last):
  File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/home/mateusfg7/Desktop/SimpleCoin/simpleCoin/miner.py", line 112, in mine
    NODE_PENDING_TRANSACTIONS = json.loads(NODE_PENDING_TRANSACTIONS)
  File "/usr/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.7/json/decoder.py", line 340, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 5 (char 4)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cosme12commented, May 22, 2020

I though you could change port, but after testing apparently is not that simple. Will let you know if I make it work

0reactions
mateusfg7commented, May 23, 2020

ok 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Program Not opening in Linux - ubuntu - Super User
There is a good possibility that the ~/.config folder has another folder called Ovito . Delete this folder and you can open ovito...
Read more >
Troubleshooting general software problems in Linux
To troubleshoot, we need some problems, right? Unfortunately, the software is huge, and can be tons of issues to solve. Also can be...
Read more >
7 Ways to Kill Unresponsive Programs in Linux - MakeUseOf
When a Linux app becomes unresponsive and crashes, how can you kill it? Try one of these tricks to force quit a program...
Read more >
Ubuntu Software Center Not Working? Here Are the Fixes
One of the oddest fixes for the Ubuntu Software Center not working problem is simply changing the language. You can even reselect your...
Read more >
Why does a linux compiled program not work on Windows
The above "program" should compile on Windows and Linux just fine, since it is source code compatible, as there are no operating system ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found