Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 19 14:30

    slozier on master

    Properly revert ast.ImportFrom Remove some string handling in … Update DLR (compare)

  • Jan 18 22:00

    slozier on master

    Update zip packaging (compare)

  • Jan 18 10:13
    sopelt commented #803
  • Jan 17 18:42

    slozier on master

    Try to fix build (compare)

  • Jan 17 17:20

    slozier on master

    Don't use VS prerelease (#1304) (compare)

  • Jan 17 17:20
    slozier closed #1304
  • Jan 17 17:19
    slozier ready_for_review #1304
  • Jan 17 14:55
    slozier commented #803
  • Jan 17 14:52
    slozier labeled #805
  • Jan 17 14:52
    slozier commented #805
  • Jan 17 14:42
    GeorgeS2019 commented #936
  • Jan 17 14:42
    GeorgeS2019 commented #936
  • Jan 17 14:41
    GeorgeS2019 commented #936
  • Jan 17 14:36
    slozier commented #936
  • Jan 17 14:28
    slozier commented #1308
  • Jan 17 14:28
    slozier labeled #1308
  • Jan 17 14:26
    GeorgeS2019 commented #936
  • Jan 17 14:24
    slozier commented #936
  • Jan 17 14:19

    slozier on master

    Version 2.7.12 (#804) (compare)

  • Jan 17 14:19
    slozier closed #804
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.)
Rob Boehne
@datalogics-robb
I have a colleague telling me that IronPython won't run under dot NET Core
Is there some truth to that?
All I'm getting from him is that "it didn't work"
We're using 2.7.10 btw...
slozier
@slozier
@datalogics-robb Not aware of any issues with running under .NET Core (as long as you use the .NET Core assemblies and not the .NET Framework ones).
Rob Boehne
@datalogics-robb
What If I need to support .NET Core 3.1 and the .NET 4.0 stuff?