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.

Unable to start using pip install

See original GitHub issue

I’ve followed the instructions for installation but I am unable to run the program due to this error:

➜  bot marketmaker XBTUSD
Traceback (most recent call last):
  File "/Users/dimitri/.pyenv/versions/3.5.0/bin/marketmaker", line 9, in <module>
    load_entry_point('bitmex-market-maker==1.3', 'console_scripts', 'marketmaker')()
  File "/Users/dimitri/.pyenv/versions/3.5.0/lib/python3.5/site-packages/market_maker/", line 21, in run
    from market_maker import market_maker
  File "/Users/dimitri/.pyenv/versions/3.5.0/lib/python3.5/site-packages/market_maker/", line 11, in <module>
    from market_maker import bitmex
  File "/Users/dimitri/.pyenv/versions/3.5.0/lib/python3.5/site-packages/market_maker/", line 12, in <module>
    from import BitMEXWebsocket
  File "/Users/dimitri/.pyenv/versions/3.5.0/lib/python3.5/site-packages/market_maker/ws/", line 10, in <module>
    from market_maker.settings import settings
  File "/Users/dimitri/.pyenv/versions/3.5.0/lib/python3.5/site-packages/market_maker/", line 25, in <module>
    userSettings = import_path(os.path.join('.', 'settings'))
  File "/Users/dimitri/.pyenv/versions/3.5.0/lib/python3.5/site-packages/market_maker/", line 19, in import_path
    module = importlib.import_module(filename, path)
  File "/Users/dimitri/.pyenv/versions/3.5.0/lib/python3.5/importlib/", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 981, in _gcd_import
  File "<frozen importlib._bootstrap>", line 931, in _sanity_check
SystemError: Parent module '.' not loaded, cannot perform relative import

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14

github_iconTop GitHub Comments

ryanfoxcommented, Apr 17, 2018

The README has step by step instructions:

fabrixpocommented, Apr 17, 2018

Followed exactly these instructions but seems to miss some important thing. Uninstalled and reinstalled a lot of times, with and without venv. Always same (stupid) error…

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't use pip (Windows)
Run the command python from a command prompt with admin privileges (possibly not needed, but just to make sure).
Read more >
How to Install Pip on Windows
Open up the Control Panel and navigate to System and Security -> System; Click on the Advanced system settings link on the left...
Read more >
How to Fix 'Pip' is Not Recognized as an Internal or ...
Fix 1: Ensure 'Pip' is Added to Your PATH Variable · Fix 2: Add Pip to the PATH Environment Variable · Fix 3:...
Read more >
How to install modules with PIP (and fix it when it fails)
Assuming that, the first thing to do is to check if the module exists. The main way to do this is to go...
Read more >
Fix: 'pip' is not recognized as an internal or external ...
Method 2: Adding PIP to the PATH environment variable using the Windows GUI · Press Windows key + R to open up a...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found