Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meteor unknown packages #3

Closed
FWmaster opened this issue Feb 5, 2016 · 8 comments
Closed

Meteor unknown packages #3

FWmaster opened this issue Feb 5, 2016 · 8 comments

Comments

@FWmaster
Copy link

FWmaster commented Feb 5, 2016

Following the docs :

# cd /path/to/OHIF/Viewers/OHIFViewer/bin
# ./localhostOrthanc.sh

Starting Meteor server...
[[[[[ /path/to/OHIF/Viewers/OHIFViewer ]]]]]

=> Started proxy.
=> Started MongoDB.
=> Errors prevented startup:

   While selecting package versions:
   error: unknown package in top-level dependencies: cornerstone
   unknown package in top-level dependencies: dicomweb
   unknown package in top-level dependencies: viewerbase
   unknown package in top-level dependencies: worklist
   unknown package in top-level dependencies: hangingprotocols

=> Your application has errors. Waiting for file change.

The packages are in /path/to/OHIF/Viewers/Packages but it seems that the meteor app isn't aware of this !
What is the point ? Do I have to edit meteor config ?
I'm new to meteor, please help !

Marc

@radicalrob
Copy link
Contributor

Hi Marc,

Try starting it from one level up (/path/to/OHIF/Viewers/OHIFViewer) with the command:

# bin/localhostOrthanc.sh

Rob

@FWmaster
Copy link
Author

FWmaster commented Feb 5, 2016

Yes ! It works now... and I have an error when requesting my Orthanc wado server.
I will make some tests and maybe post a new issue for this ;)
Thank you very much !
Marc

@swederik
Copy link
Member

swederik commented Feb 5, 2016

More generally, you were not seeing the packages because there was no PACKAGES_DIR specifying them. This is done in localhostOrthanc.sh, but you could also set that environment variable in your .bashrc, for example.

Your error may be the port needing to be changed to 8042. Check the previous issue: #2

@gitbaic
Copy link

gitbaic commented Mar 22, 2016

Hi, i'm having the same issues that FWmaster had. I did radicalbob sugestion but no success.

What i'm having:
"[[[[[ C:\Users\user\Desktop\Viewers-master\OHIFViewer ]]]]]

=> Started proxy.
=> Started MongoDB.
=> Errors prevented startup:

While selecting package versions:
error: unknown package in top-level dependencies: cornerstone
unknown package in top-level dependencies: dicomweb
unknown package in top-level dependencies: viewerbase
unknown package in top-level dependencies: worklist
unknown package in top-level dependencies: hangingprotocols

=> Your application has errors. Waiting for file change."

Any suggestion it's accepted. i'm new using meteor.

Thanks

Thiago

@swederik
Copy link
Member

Your problem is that the local packages are not being detected because PACKAGE_DIRS is not set.

You can test it with something like:

PACKAGE_DIRS=../Packages meteor --settings ../config/siimDCM4CHEE.json

Then switch siimDCM4CHEE.json to your config file depending on where your data comes from (e.g. standalone Orthanc, Orthanc in Docker, ...).

@gitbaic
Copy link

gitbaic commented Mar 23, 2016

Thank you swederik. Worked fine.

Now, i have another a error:
"=> Exited with code: 8
=> Your application is crashing. Waiting for file change."

When i go to http://localhost:3000/ i get the error:
"Your app is crashing. Here's the latest log:
C:\Users\user\AppData\Local.meteor\packages\meteor-tool\1.1.10\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\fibers\future.js:245
throw(ex);
^
ReferenceError: $ is not defined
at Packages/viewerbase/lib/draggable.js:2:1
at C:\Users\user\Desktop\Viewers-master\OHIFViewer.meteor\local\build\programs\server\app\Packages\viewerbase\lib\draggable.js:110:4
at C:\Users\user\Desktop\Viewers-master\OHIFViewer.meteor\local\build\programs\server\boot.js:242:10
at Array.forEach (native)
at Function..each..forEach (C:\Users\user\AppData\Local.meteor\packages\meteor-tool\1.1.10\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\underscore\underscore.js:79:11)
at C:\Users\user\Desktop\Viewers-master\OHIFViewer.meteor\local\build\programs\server\boot.js:137:5
Exited with code: 8
Your application is crashing. Waiting for file change."

I now have another challenge to investigate.

Thiago

@swederik
Copy link
Member

That's odd. It seems that jQuery is not being initialized properly. I can't reproduce this issue on OSX, though. Maybe try:

PACKAGE_DIRS=../Packages meteor add jquery

@KrishnaPG
Copy link

Getting the same error on Windows. And doing

 set METEOR_PACKAGE_DIRS=../Packages
 meteor

seems to have found the packages

slak44 pushed a commit to Medicai-io/OHIF that referenced this issue May 27, 2021
sedghi pushed a commit that referenced this issue Jun 23, 2023
pedrokohler pushed a commit to pedrokohler/ohif-viewers that referenced this issue Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants