question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when running bin/examine.py without the pre-trained model

See original GitHub issue

Whenever I try to run the environments such as base or hide_and_seek through the bin/examine.py hide_and_seek or base commands I receive this error:

Inferred:
	names: hide_and_seek.py
	arguments: {}


Traceback (most recent call last):
  File "bin/examine.py", line 91, in <module>
    main()
  File "/home/avi/anaconda3/envs/python3.6/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/avi/anaconda3/envs/python3.6/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/avi/anaconda3/envs/python3.6/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/avi/anaconda3/envs/python3.6/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "bin/examine.py", line 47, in main
    env_viewer=EnvViewer)
  File "/home/avi/Desktop/hideandseek/mujoco-worldgen/mujoco_worldgen/util/envs/examine_env.py", line 26, in examine_env
    return_args_remaining=True, **env_kwargs)
  File "/home/avi/Desktop/hideandseek/mujoco-worldgen/mujoco_worldgen/util/envs/flexible_load.py", line 88, in load_env
    matching = (glob(join(core_dir, envs_dir, "**", "*.py"), recursive=True) +
  File "/home/avi/anaconda3/envs/python3.6/lib/python3.6/posixpath.py", line 94, in join
    genericpath._check_arg_types('join', a, *p)
  File "/home/avi/anaconda3/envs/python3.6/lib/python3.6/genericpath.py", line 149, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'tuple'

I’m not sure how to fix it and running the environments with the pre-trained models works perfectly fine.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

2reactions
vonHartzcommented, May 5, 2020

I had the same problem and fixed it with pull request #22 .

0reactions
pavlosSkevcommented, Sep 22, 2020

I had the same error. I fixed it by running it like this:

python bin/examine.py examples/blueprint.jsonnet examples/blueprint.npz

It has something to do with the imports I think. So just be outside the “bin” folder, and run this command.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to use a pre-trained model - Stack Overflow
I am looking to pre-train a model on one dataset and train the layers on another dataset. Here is my neural network for...
Read more >
Re: No Model Available in Download pre-trained model (v2)
Hi,. The error "No module named : TensorFlow" suggests that tensorflow was not successfully installed as part of the plugin code environment ...
Read more >
Models - Hugging Face
A string, the model id of a pretrained model hosted inside a model repo on huggingface.co. Valid model ids can be located at...
Read more >
Embeddings, Transformers and Transfer Learning - spaCy
Using transformer embeddings like BERT in spaCy. ... You can also do your own language model pretraining via the spacy pretrain command.
Read more >
Transfer learning and fine-tuning | TensorFlow Core
In this tutorial, you will learn how to classify images of cats and dogs by using transfer learning from a pre-trained network. A...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found