Some fixes. by matthid · Pull Request #219 · pythonnet/pythonnet
ok, tested locally and it is working! great finding and fix!
C:\Users\denis.akhiyarov>python
Python 2.7.11 |Anaconda 4.0.0 (32-bit)| (default, Mar 4 2016, 15:18:41) [MSC v.
1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import clr
>>> import testimport
>>> from testimport import relative_import
Unhandled Exception: System.ArgumentException: Name must not be empty!
at Python.Runtime.ModuleObject..ctor(String name)
at Python.Runtime.ModuleObject.GetAttribute(String name, Boolean guess)
at Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
at Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr k
w)
at Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
C:\Users\denis.akhiyarov>pip uninstall pythonnet
Uninstalling pythonnet-2.1.0:
c:\python\python27_32b\lib\site-packages\clr.pyd
c:\python\python27_32b\lib\site-packages\python.runtime.dll
c:\python\python27_32b\lib\site-packages\python.runtime.dll.config
c:\python\python27_32b\lib\site-packages\pythonnet-2.1.0.dist-info\description
.rst
c:\python\python27_32b\lib\site-packages\pythonnet-2.1.0.dist-info\installer
c:\python\python27_32b\lib\site-packages\pythonnet-2.1.0.dist-info\metadata
c:\python\python27_32b\lib\site-packages\pythonnet-2.1.0.dist-info\metadata.js
on
c:\python\python27_32b\lib\site-packages\pythonnet-2.1.0.dist-info\record
c:\python\python27_32b\lib\site-packages\pythonnet-2.1.0.dist-info\top_level.t
xt
c:\python\python27_32b\lib\site-packages\pythonnet-2.1.0.dist-info\wheel
Proceed (y/n)? y
Successfully uninstalled pythonnet-2.1.0
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.
C:\Users\denis.akhiyarov>pip install git+https://github.com/matthid/pythonnet.gi
t@myfixes
Collecting git+https://github.com/matthid/pythonnet.git@myfixes
Cloning https://github.com/matthid/pythonnet.git (to myfixes) to c:\users\deni
s~1.akh\appdata\local\temp\pip-inppy5-build
Installing collected packages: pythonnet
Running setup.py install for pythonnet ... done
Successfully installed pythonnet-2.1.0
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.
C:\Users\denis.akhiyarov>python
Python 2.7.11 |Anaconda 4.0.0 (32-bit)| (default, Mar 4 2016, 15:18:41) [MSC v.
1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import clr
>>> import testimport
>>> from testimport import relative_import
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "testimport\relative_import.py", line 4, in <module>
from . import _missing_import
File "testimport\_missing_import.py", line 1, in <module>
import this_package_should_never_exist_ever
ImportError: No module named this_package_should_never_exist_ever
>>> exit()
C:\Users\denis.akhiyarov>conda update python
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata .........
Solving package specifications: ..........
Package plan for installation in environment C:\Python\Python27_32b:
The following packages will be downloaded:
package | build
---------------------------|-----------------
python-2.7.12 | 0 22.4 MB
anaconda-custom | py27_0 13 KB
conda-4.1.9 | py27_0 242 KB
------------------------------------------------------------
Total: 22.6 MB
The following packages will be UPDATED:
anaconda: 4.0.0-np110py27_0 --> custom-py27_0
conda: 4.1.2-py27_0 --> 4.1.9-py27_0
python: 2.7.11-4 --> 2.7.12-0
Proceed ([y]/n)? y
Fetching packages ...
python-2.7.12- 100% |###############################| Time: 0:00:14 1.57 MB/s
anaconda-custo 100% |###############################| Time: 0:00:00 293.28 kB/s
conda-4.1.9-py 100% |###############################| Time: 0:00:00 691.15 kB/s
Extracting packages ...
[ COMPLETE ]|##################################################| 100%
Unlinking packages ...
[ COMPLETE ]|##################################################| 100%
Linking packages ...
[ COMPLETE ]|##################################################| 100%
C:\Users\denis.akhiyarov>python
Python 2.7.11 |Anaconda custom (32-bit)| (default, Mar 4 2016, 15:18:41) [MSC v
.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import clr
>>> import testimport
>>> from testimport import relative_import
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "testimport\relative_import.py", line 4, in <module>
from . import _missing_import
File "testimport\_missing_import.py", line 1, in <module>
import this_package_should_never_exist_ever
ImportError: No module named this_package_should_never_exist_ever
>>>