Forums

Cobra 2010-10-18: Can't find Cobra.Lang after install

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Cobra 2010-10-18: Can't find Cobra.Lang after install

Postby contingencyplan » Fri Nov 26, 2010 5:31 pm

I'm using Cobra-2010-10-18 on Windows 7 Professional 64-bit. I downloaded the zip file distribution and ran `install-from-workspace` in the Source directory as instructed. The Cobra binaries and libraries are installed to C:\Cobra-0.8.0-post; Cobra.Lang is in C:\Cobra-0.8.0-post\bin\Cobra.Lang.dll . I have copied cobra.bat to C:\bin, which is the first directory on my PATH.

I have created the "Hello World" example:
Code: Select all
class HelloWorld
   def main is shared
      print "Hello World!"


When I attempt to run it from the command line:
Code: Select all
cobra test.cobra


I receive the following exception:
Code: Select all
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass
embly 'Cobra.Lang, Version=0.8.0.1, Culture=neutral, PublicKeyToken=0a4783a5c7c9
616e' or one of its dependencies. The system cannot find the file specified.
File name: 'Cobra.Lang, Version=0.8.0.1, Culture=neutral, PublicKeyToken=0a4783a
5c7c9616e'
   at CobraTestLengthUse.LengthUse.Main()


If I run the command
Code: Select all
cobra -ert:yes test.cobra


then I receive "Hello, World!" as expected.

Is there something I'm doing wrong such that the first execution attempt doesn't work? Do I need to copy Cobra.Lang.dll somewhere else additionally?

Thanks!
contingencyplan
 
Posts: 2

Re: Cobra 2010-10-18: Can't find Cobra.Lang after install

Postby Charles » Fri Nov 26, 2010 5:42 pm

This came up before during which we found the solution was to install Cobra as administrator. Please let us know if this works for you.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Cobra 2010-10-18: Can't find Cobra.Lang after install

Postby contingencyplan » Fri Nov 26, 2010 5:52 pm

Ah, okay. Saw that thread earlier, but must have missed the "run as Administrator" part. I thought I was an administrator account, but I guess not. Weird. Anyways, sorry for the duplicate, and thanks for the answer!
contingencyplan
 
Posts: 2

Re: Cobra 2010-10-18: Can't find Cobra.Lang after install

Postby todd.a » Sat Nov 27, 2010 9:44 am

contingencyplan wrote:Ah, okay. Saw that thread earlier, but must have missed the "run as Administrator" part. I thought I was an administrator account, but I guess not. Weird. Anyways, sorry for the duplicate, and thanks for the answer!

Just in case you are wondering in Win 7 (and Vista for that matter) as part of the security improvements your account might be an administrator account but you are not running with admin privileges at all times. This is why UAC will ask you to grant permission when you try to install an application. This is also good because it means it is more difficult for you to download an executable that will change files in %windir% (for e.g.). Your permissions are only elevated when explicitly (in most cases) specified, sort of like sudo on Linux.
todd.a
Site Admin
 
Posts: 81
Location: Chicago, IL


Return to Discussion

Who is online

Users browsing this forum: No registered users and 60 guests