Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Dave Hawes · Jun 14, 2010 at 11:30 AM · editorassetbundlecommand-line

Command line error

I am attempting to run the unity editor in batchmode from a python script in order to import and bundle assets automatically. I am running into a very early problem though. I use the command line to create a temporary project, the arguments are as follows...

['C:\Program Files (x86)\Unity\Editor\Unity.exe', '-quit', '-batchmode', '-nographics', '-createProject c:\build\GAM\Vehicles\Cars\WW\05TennisCLK\SrcAsset\unityBuilder']

It runs for a while and then aborts with the complaint that Multiple Unity Instances can't open the same project. It then identifies an older project with the same name (but different path) as being the root of the issue.

I have verified the following

1) In process explorer throughout the entire scripts execution only 1 unity process is running.

2) The old project has been deleted and no longer exists.

3) I restarted the machine in case unity had a handle to an old file of some sort.

4) I have tried both pre-creating the path for the temporary project, and ensuring that it doesn't exist, I get the same result regardless.

The part of the python script that is running is very simple, it just executes this command line and then exits.

I was wondering had anyone else experienced this message being generated, apparently erroneously and if so how did they resolve it?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by Dave Hawes · Jun 15, 2010 at 08:10 AM

Having spent some time looking at this, I have found the error was to do with how the string for the project location is passed in python to the subprocess module. Essentially you need to make sure it gets passed as a string not a list item, and that it does not have quotes around it. It seems that these specifications vary between operating systems (as this is essentially a path issue that makes sense), so for future reference I am using winXP 64.

Whilst working with this problem I also got an error about changing the working directory to apparently an identical path. This turned out to be because I had a path with mixed slash and double slash i.e. "c:\folder1\folder2\folder3\file.ext" changing the double slash to a single slash resolved this issue.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Mike 3 · Jun 15, 2010 at 09:32 AM 0
Share

You should mark this answer so the question is flagged as complete :)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Build Asset Bundle for a different target Platform 1 Answer

Running 5.6.2 via Editor Command Line leaves out VR SDK's 1 Answer

How to Disable Unloading of Assets During Bundling 0 Answers

Multiple game instances Assetbundle cache file cannot be opened due to file lock 0 Answers

Update to 5.3.4f1 executeMethod couldn't be find in Command line arguments 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges