-
Notifications
You must be signed in to change notification settings - Fork 751
Error building in Linux #571
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
Comments
Is this the same as #555 ? |
Also tried the following as referred to by @dmitriyse in #531 : python setup.py build_ext --xplat --inplace Same error. |
I need to research what the reason of mono-2 related problems. This error occurs not only in your environment. |
Let me know if you need me to try help with debugging, provide extra log, etc |
@Cronan what mono version do you have installed? and how did you install it? did you try without |
I don't have mono installed - is it still a requirement even with --xplat? |
No, it's should not be required with --xplat option. Probably we have bug. |
Setup.py contains: def _build_monoclr(self):
mono_libs = _check_output("pkg-config --libs mono-2", shell=True)
mono_cflags = _check_output("pkg-config --cflags mono-2", shell=True)
glib_libs = _check_output("pkg-config --libs glib-2.0", shell=True)
glib_cflags = _check_output("pkg-config --cflags glib-2.0", shell=True)
cflags = mono_cflags.strip() + " " + glib_cflags.strip()
libs = mono_libs.strip() + " " + glib_libs.strip() This is called here: if DEVTOOLS == "Mono" or DEVTOOLS == "dotnet":
self._build_monoclr() It's basically a call to subprocess.check_output("pkg-config --libs mono-2", shell=True) that returning 1, which I'd expect, because I don't have mono installed. Unless I'm oversimplifying ... |
Yes, some problem exists. I need to re-inspect all setup.py to fix this problem. Stay tuned, I think I will fix it until tomorrow. |
Works: >>> subprocess.check_output("pkg-config --libs glib-2.0", shell=True)
'-lglib-2.0 \n' Fails: >>> subprocess.check_output("pkg-config --libs mono-2", shell=True)
Package mono-2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `mono-2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mono-2' found
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/man/releases/python-medusa/27-1/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command 'pkg-config --libs mono-2' returned non-zero exit status 1 Both run inside my python interpreter. |
monoclr module can be build only when mono is installed. dotnet netcoreapp2.0/nPython.dll |
I finally managed to build by editing setup.py, modifying the following line in BuildExtPythonnet.build_extension:
This seems to complete the build, and I can then run using nPython: But as soon as I try other things, it crashes hard:
|
I'm also unable to run the tests:
|
I managed to get the tests working in nPython by appending pytest and py to the sys.path.
|
Oh dear Looks like it was fixed but missed the cutoff for the 2.0.0 release
Any hints where I could do this as a workaround? |
@Cronan can't you just switch your local |
@Cronan alternatively just install .NET Core 2.0.3 released few weeks ago: https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.3.md |
@denfromufa I don't have a dedicated headnode, and 2.0.3 won't be available via the standard Enterprise upgrade cycle for a few weeks, but I've got a plan to test this on Monday. |
@denfromufa OK, figured out how to change my locale, and the tests are now running.
|
Fixed with #572 |
Uh oh!
There was an error while loading. Please reload this page.
Environment
Details
Error restoring packages while trying to build from the command line in Linux
I used the following commands to create the issue:
The text was updated successfully, but these errors were encountered: