0

These are the errors I got

I imported IronPython3.4.1 into my unity project and I have received these error does anyone know how to fix this?

I tried deleting and re importing IronPython but that didn't work and I do now know how to fix it. Has this happened to anyone else?

5
  • do you use visual scripting? Commented Nov 27, 2023 at 19:00
  • @BugFinder no i dont Commented Nov 27, 2023 at 22:09
  • then remove it :P save all the greif Commented Nov 27, 2023 at 23:08
  • i have just deleted it Commented Nov 28, 2023 at 17:47
  • now it says theres an error in ironpyton3.4.1?? Commented Nov 28, 2023 at 18:09

1 Answer 1

1

It looks like you have two versions, try fixing this by removing both from the project and then reading the correct version. References - check for the files with similar names and remove them. then re-add the correct version.

Sign up to request clarification or add additional context in comments.

11 Comments

i only have 1 version in my project, ive deleted it and it now just says that it couldnt find it so i made a new project and added an older version of ironpython and it still has said the same thing @Agent S
i guess then you can use Namespace Aliases, like using CodeDomStatement = System.CodeDom.CodeStatement; let me know if this works @Randomguy660
or you can check this [ Where does error CS0433 “Type 'X' already exists in both A.dll and B.dll ” come from?](stackoverflow.com/q/1757289/12338102) @Randomguy660 In short: This can sometimes happen when Visual Studio fails to correctly clear out cached state as part of rebuilding. Try the following steps and see if it helps: 1. Delete all bin/obj directories for your solution using File Explorer 2. Close VisualStudio and restart PC (this seems odd and unnecessary, but have found it can help) 3. Reopen VisualStudio and do a full rebuild
im sorry but i dont know what a namespace alias is becasue im very new to unity and im trying to make a game for my girlfriend which is like a treasue hunt, and i need to execute a python file, so i juts got back into unity so im sorry and i also dont know how to delete bin/obj directories, or more like where to find them, many apologise for your troubles
@Randomguy660 That is very sweet, wishing you all the best. namespace alias is just an alternative name. You can delete bin/obj from the file explorer, like how you delete a file normally. Go to the project directory and search for the bin folder. Also, visual scripting can be ignored.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.