Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap error at MacOS #15

Closed
strongbugman opened this issue Dec 28, 2017 · 3 comments
Closed

Bootstrap error at MacOS #15

strongbugman opened this issue Dec 28, 2017 · 3 comments

Comments

@strongbugman
Copy link

I cant run the command at MacOS, there are outputs:

❯ apython
Python 3.6.3 (default, Nov 23 2017, 18:02:45)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
---
This console is running in an asyncio event loop.
It allows you to wait for coroutines using the 'await' syntax.
Try: await asyncio.sleep(1, result=3)
---
Traceback (most recent call last):
  File "/usr/local/bin/apython", line 11, in <module>
    sys.exit(run_apython())
  File "/usr/local/lib/python3.6/site-packages/aioconsole/apython.py", line 57, in run_apython
    code = run_apython_in_subprocess(args)
  File "/usr/local/lib/python3.6/site-packages/aioconsole/apython.py", line 102, in run_apython_in_subprocess
    raw = input_with_stderr_prompt(prompt) + '\n'
  File "/usr/local/lib/python3.6/site-packages/aioconsole/apython.py", line 144, in input_with_stderr_prompt
    fin = ctypes.c_void_p.in_dll(api, 'stdin')
ValueError: dlsym(RTLD_DEFAULT, stdin): symbol not found

It is my os problem?

@kelbyers
Copy link
Contributor

kelbyers commented Jan 2, 2018

Mac OS X does not provide 'stdin', 'stdout', or 'stderr' symbols in its export libraries. It turns out that the symbols are named: '__stdinp', '__stdoutp', and '__stderrp'.

I have created a PR with a fix (and tests) for this: #16

@vxgmichel
Copy link
Owner

Thanks for the report! PR #16 is merged, I'll release version 0.1.6 soon. In the meantime, you can use apython --no-readline.

@vxgmichel
Copy link
Owner

v0.1.6 is out, thank you both for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants