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.

Packaging is now a requirement

See original GitHub issue

Trying to package the latest version seems to complain about the packaging module

Checking binary
Traceback (most recent call last):
  File "build/rotkehlchen/rotkehlchen-script.py", line 1, in <module>
    import rotkehlchen.__main__
  File "/home/lefteris/.virtualenvs/rotkipy37/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "rotkehlchen/__main__.py", line 8, in <module>
    from rotkehlchen.server import RotkehlchenServer
  File "/home/lefteris/.virtualenvs/rotkipy37/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "rotkehlchen/server.py", line 7, in <module>
    from rotkehlchen.api.server import APIServer, RestAPI
  File "/home/lefteris/.virtualenvs/rotkipy37/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "rotkehlchen/api/server.py", line 17, in <module>
    from rotkehlchen.api.rest import RestAPI, api_response, wrap_in_fail_result
  File "/home/lefteris/.virtualenvs/rotkipy37/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "rotkehlchen/api/rest.py", line 32, in <module>
    from rotkehlchen.accounting.ledger_actions import LedgerAction
  File "/home/lefteris/.virtualenvs/rotkipy37/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "rotkehlchen/accounting/ledger_actions.py", line 6, in <module>
    from rotkehlchen.assets.asset import Asset
  File "/home/lefteris/.virtualenvs/rotkipy37/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "rotkehlchen/assets/asset.py", line 6, in <module>
    from rotkehlchen.constants.resolver import (
  File "/home/lefteris/.virtualenvs/rotkipy37/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "rotkehlchen/constants/__init__.py", line 1, in <module>
    from .misc import *  # noqa: F401, F403
  File "/home/lefteris/.virtualenvs/rotkipy37/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "rotkehlchen/constants/misc.py", line 2, in <module>
    from rotkehlchen.typing import EmptyStr, EventType
  File "/home/lefteris/.virtualenvs/rotkipy37/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "rotkehlchen/typing.py", line 7, in <module>
    from rotkehlchen.chain.substrate.typing import KusamaAddress
  File "/home/lefteris/.virtualenvs/rotkipy37/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "rotkehlchen/chain/substrate/typing.py", line 4, in <module>
    from substrateinterface import SubstrateInterface
  File "/home/lefteris/.virtualenvs/rotkipy37/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "substrateinterface/__init__.py", line 18, in <module>
  File "/home/lefteris/.virtualenvs/rotkipy37/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "substrateinterface/contracts.py", line 19, in <module>

And indeed it’s imported there and is not in the requirements

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
yabirgbcommented, Jul 23, 2021

@LefterisJP Yes forgot to reply on this thread. Yes it works now. Thank you @arjanz !

0reactions
LefterisJPcommented, Jul 23, 2021

Hey @yabirgb so this is now considered done right? You guys tested this and it works fine for rotki now, right?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Federal Packaging Regulations in the US - Qorpak
The US has a unique set of packaging regulations. Learn the national requirements for the United States.
Read more >
The drive toward sustainable packaging | McKinsey
Packaging recyclability. Large amounts of packaging produced today cannot be recycled in existing recycling systems.
Read more >
EU sets recycling, reuse targets to cut packaging waste | Reuters
Under the proposal, all 27 EU members will be required to reduce packaging waste per capita by 5% by 2030 and 15% by...
Read more >
Governor Newsom Signs Legislation Cutting Harmful Plastic ...
Governor Gavin Newsom signed SB 54, requiring all packaging in the state to be recyclable or compostable by 2032, cutting plastic packaging ...
Read more >
European Green Deal: Putting an end to wasteful packaging
The proposal on packaging and packaging waste will now be considered by the European Parliament and the Council, in the ordinary legislative ...
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