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.

How to install this library with IronPython?

See original GitHub issue

I am trying to use this library in C# with IronPython.

I ran cmd as administrator, opened directory c:\Program Files (x86)\IronPython 2.7 and executed this lines

ipy -X:Frames -m ensurepip
ipy -X:Frames -m pip install --upgrade
pip install ccxt

But it seems like ccxt installed not globally. ipy -X:Frames -m pip install ccxt not working too.

Also i tryed to download source and execute in ccxt folder

python setup.py install

But nothing helps. When i am trying to install it through VS2015 in Python Environment i get this error.

----- Installing 'ccxt' -----
Unhandled exception:
Traceback (most recent call last):
  File "C:\Program Files (x86)\IronPython 2.7\Lib\runpy.py", line 182, in run_module
  File "C:\Program Files (x86)\IronPython 2.7\Lib\runpy.py", line 111, in _get_module_details
  File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pip\__init__.py", line 21, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pip\_vendor\requests\__init__.py", line 62, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pip\_vendor\requests\packages\__init__.py", line 27, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pip\_vendor\requests\packages\urllib3\__init__.py", line 8, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py", line 34, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pip\_vendor\requests\packages\urllib3\packages\six.py", line 701, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pip\_vendor\requests\packages\urllib3\packages\six.py", line 692, in exec_
AttributeError: 'module' object has no attribute '_getframe'
----- Failed to install 'ccxt' -----

And this testing project not working

import sys
sys.path.append(r'C:\Program Files (x86)\IronPython 2.7\Lib')
import ccxt
print(ccxt.exchanges)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
munrocketcommented, Oct 11, 2017

Two versions of the python in one OS are always trying to confuse you. I wonder how i launched 3.6 project in 2.7 enviroment without error.

It seems that right installation for IronPython 2.7 is execute this lines in ccxt folder

"c:\Program Files (x86)\IronPython 2.7\ipy.exe" -X:Frames setup.py build
"c:\Program Files (x86)\IronPython 2.7\ipy.exe" -X:Frames setup.py build_py
"c:\Program Files (x86)\IronPython 2.7\ipy.exe" -X:Frames setup.py install

And than use it with source like this

import sys
sys.path.append(r'C:\Program Files (x86)\IronPython 2.7\Lib')

import ccxt
print(ccxt.exchanges)
2reactions
wahyubram82commented, Mar 13, 2019

i do this: ipy -X:Frames -m ensurepip ipy -X:Frames -m pip install ccxt

works perfectly…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing Python Modules — IronPython 2.7.2b1 documentation
The basic idea is that you supply a base directory for the installation, and the install command picks a set of directories (called...
Read more >
Pip in IronPython 2.7.5
Installing pip is done with a backport of the ensurepip module: ipy -X:Frames -m ensurepip. Note that –X:Frames is always required when ...
Read more >
Installing IronPython modules for Grasshopper - TOI-Pedia
Installing IronPython modules for Grasshopper ; Open the properties tab of the .whl file Explorer in Windows » RMB on .whl file »...
Read more >
How to install IronPython? - David Tavarez
Installing IronPython in Linux · Install Mono. $ sudo apt install mono-devel · Install Numerics. $ sudo apt install libmono-system-numerics4.0-cil.
Read more >
Pip install for IronPython - Scripting - McNeel Forum
Hello, Is it possible to install new Python module to use with the Rhino Python script interface? I'd like to use the CSV...
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