Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

pythonnet import site failure #559

Copy link
Copy link
@den-run-ai

Description

@den-run-ai
Issue body actions

https://stackoverflow.com/questions/46768358/packaged-python-lib-site-fails-with-pythonnet

In [1]: import site
   ...: site.abs__file__()
   ...:

In [2]: import clr

In [3]: site.abs__file__()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-3-17ed7fe71c4c> in <module>()
----> 1 site.abs__file__()

C:\Users\mcfarlal\AppData\Local\Continuum\Anaconda2\lib\site.pyc in abs__file__()
     92             continue   # don't mess with a PEP 302-supplied __file__
     93         try:
---> 94             m.__file__ = os.path.abspath(m.__file__)
     95         except (AttributeError, OSError):
     96             pass

TypeError: type does not support setting attribute

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.