by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 12 13:46
    injectionsuccesfully edited #638
  • Jul 11 11:19
    slozier closed #912
  • Jul 11 11:19

    slozier on master

    Enable ipytest interop.net.meth… (compare)

  • Jul 11 01:11
    jameslan opened #912
  • Jul 10 22:05
    slozier labeled #909
  • Jul 10 22:03
    slozier closed #909
  • Jul 10 22:03
    slozier labeled #909
  • Jul 10 22:03

    slozier on master

    Enable test_regressions.test_cp… (compare)

  • Jul 10 22:03
    slozier closed #911
  • Jul 10 20:15
    BCSharp opened #911
  • Jul 10 17:59
    BCSharp commented #906
  • Jul 09 12:53

    slozier on master

    Enable ipytest test_slice (#910) (compare)

  • Jul 09 12:53
    slozier closed #910
  • Jul 09 04:17
    jameslan synchronize #910
  • Jul 08 20:41
    slozier commented #909
  • Jul 08 19:53
    BCSharp commented #909
  • Jul 08 17:13
    jameslan synchronize #910
  • Jul 08 08:40
    jameslan opened #910
  • Jul 05 12:03

    slozier on master

    Enable C# tests (#896) * Enabl… (compare)

  • Jul 05 12:03
    slozier closed #896
slozier
@slozier
It's not included in the NuGet package, you'd have to download and install.
nightblade9
@nightblade9
OK, thanks
nightblade9
@nightblade9
This is interesting - I unzipped the release zip on Linux, and the directories became part of the file name
eg. ls -al gives me entries like netstandard2.0\IronPython.dll ... very strange
slozier
@slozier
nightblade9
@nightblade9
Ah, so the issue is closed but you haven't regenerated the zips - any plans to do that for the latest version?
slozier
@slozier
I hadn't planned it, but I guess I could
nightblade9
@nightblade9
That would be helpful. I just need ipy.exe and the required dependencies to make sure the tests work as you're describing, so I can rename the files by hand, but it would be nice to be able to download/run and get it to Just Work :)
slozier
@slozier
Are you running Mono or .NET Core?
nightblade9
@nightblade9
Trying to run it on .NET Core
slozier
@slozier
You can't mono run the .NET Core version of ipy.dll
since .NET Core has a different set of assemblies
nightblade9
@nightblade9
Yeah, I just realized that. dotnet ipy.dll works fine.
slozier
@slozier
There was also an issue with the Mono.Posix.NETStandard assemblies not being included
nightblade9
@nightblade9
I don't see that issue on my system. I just renamed the files by hand to un-mangle the directory names, and the REPL seems to be working.
Does all of this also work with IronPython3? I know the README said it's not supposed to be used.
slozier
@slozier
It would only pop up if you tried to do something os related which requires the DLL
Yes, same thing for IronPython 3
nightblade9
@nightblade9
How does import unittest work in test_array.py? Do I have to have it installed with Pip for Python 2 on my local system?
slozier
@slozier
unittest is part of the Python stdlib. If you downloaded the zip then the Lib is included in there
I updated the zip files in the release so hopefully that resolves the unzip issue
nightblade9
@nightblade9
looks good on my machine
How do I import IronPythonTestCase? I copied the from iptest import IronPythonTestCase, is_cli, is_posix, run_test from test_array and that module doesn't seem to exist
slozier
@slozier
iptest is in Src\IronPython\Lib
might be easier to do something other than test_array
nightblade9
@nightblade9
my bad, I thought I needed IronPythonTestCase for something
it looks like everything's working, thanks so much for all the help!
nightblade9
@nightblade9
if anyone's interested, my experiment is on GitHub: https://github.com/nightblade9/sturdy-parakeet
RecruitMain707
@RecruitMain707
Its been a while, is Ipy3 already usable?
slozier
@slozier
I wouldn't say it's ready for any kind of release, but it works for a lot of scenarios
RecruitMain707
@RecruitMain707
Thats great
towisgh
@towisgh
I have a question about the possibility of implementing my own IronPython interpreter not to break any licenses or intellectual property. I don't need any libraries, I'm only interested in the core of the language.
The use will be specialized, IronPtyhon is to serve as an intermediary between the C # application and the dynamic API but which will write simple scripts and modules (without the package tree).
This tool will not be sold or shared (it can be made public without specialized libraries), it will be used in the internal software of the company for which I am to develop it.
Do I have to meet any special conditions to be able to use the IronPython source code to build a special version of the interpreter?
IronPython has different licenses, laws and regulations are not my plot, I prefer to ask to be sure.
P.S. I use a translator, that's why it is so poorly written.
slozier
@slozier
@towisgh It sounds fine. IronPython uses the Apache 2.0 license.
towisgh
@towisgh

Good news, in the experimental implementation I use a lot of DynamicObject to support a dynamic API with properties and methods, IronPython does not use TryInvokeMember to call dynamic methods (I did this by returning the wrapper calling the method when it does not have the desired property), there is a better way for dynamic objects (unknown properties and methods during script compilation).

it looks like this in the TryGetMember method:
try
{
result = GetProperty (name);
}
catch (Exception)
{
result = new MethodCaller (this, name);
}
return result;

Nibla1997
@Nibla1997
Hello, Can someone help me to download pip in Ironpython 2.7.10?
slozier
@slozier
@Nibla1997 pip already comes with ironpython (it is installed by default with the msi). You can run it with ipy -m pip. If it has not been installed then you can run ipy -m ensurepipto install it. Note that if it was installed in Program Files then you may need administrator rights to install packages globally, otherwise you can do a user level install (with --user).
Xavier
@N3zix_twitter
Hi everyone, I am using IronPython 2.7 inside Unity and I am looking for a way to pause script execution for some time/frames but letting Unity main thread to continue. How would you do that ?
Xavier
@N3zix_twitter
For example, is there a way to create a C# coroutine like WaitForSeconds() in IronPython ?
Albin Troglauer
@Albiiin_gitlab
can i download and use paho on ironpython 2.7?
i only get mistakes when i download it..
slozier
@slozier
@N3zix_twitter I have no idea if this works (never tried using IronPython with the Unity engine), but have you tried def wait(n): yield WaitForSeconds(n)
@Albiiin_gitlab I'm not sure what paho is, what error are you getting?
Xavier
@N3zix_twitter
I found this post that helped me a lot: https://forum.unity.com/threads/re-render-gui-when-main-thread-is-busy.524384/
Indeed this is the big part of the solution, just call the wait function in a coroutine and you are good to go !
slozier
@slozier
@N3zix_twitter Great! Glad you managed to get it working.
Xavier
@N3zix_twitter
Thanks @slozier This allows to do awesome stuff in Unity like scripting animation using a python script
Albin Troglauer
@Albiiin_gitlab
how can i do a parallel task
slozier
@slozier
@Albiiin_gitlab I'm not sure, it seems like on_connect/on_message are undefined? If you try running it as a console app instead you might see the actual failure. (Assuming you're using VS2019, in the project properties uncheck Windows Application.)