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

ModuleNotFoundError: No module named 'vector3' #12

Closed
whmsft opened this issue May 5, 2021 · 16 comments
Closed

ModuleNotFoundError: No module named 'vector3' #12

whmsft opened this issue May 5, 2021 · 16 comments

Comments

@whmsft
Copy link

whmsft commented May 5, 2021

I am a new user to pyunity..
i installed it with
pip install pyunity

I was trying out the examples..
python -m pyunity 1
it resulted in error:
Error log:

PS C:\Users\Lenovo> python -m pyunity 1
Loaded config
Trying GLFW as a window provider
Using window provider GLFW
Traceback (most recent call last):
  File "C:\Program Files\Python38-32\lib\runpy.py", line 185, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "C:\Program Files\Python38-32\lib\runpy.py", line 144, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "C:\Program Files\Python38-32\lib\runpy.py", line 111, in _get_module_details
    __import__(pkg_name)
  File "C:\Program Files\Python38-32\lib\site_packages\pyunity\__init__.py",  line 131, in <module>
    from .audio import *
  File "audio.py", line 13, in init pyunity.audio
  File "core.py", line 1, in init pyunity.core
ModuleNotFoundError: No module named 'vector3'

I have tried whatever i can do.. but i can't fix it nor find any module with name "vector3" on the internet..

Specs (if you need):

Python Version: Python 3.8.9
OS: Windows 7 SP 1
Processor: Intel core i3 (x86)
@rayzchen
Copy link
Collaborator

rayzchen commented May 5, 2021

Ah i know why. Please download this file and put that in your working directory. Then run pip install pyunity-0.4.0-cp38-cp38-win_amd64.whl which installs the latest build of pyunity. This issue has been marked in issue #7 and has been fixed, but I havent created a new release which has it. In the meantime, clone the repo and install from there (more details at pyunity.readthedocs.io)

@whmsft
Copy link
Author

whmsft commented May 5, 2021

i think that the file you gave me is for amd processors with x64 architecture..
and i have intel 32 bit laptop..
is there a file something like: pyunity-0.4.0-cp38-cp38-win32.whl

@whmsft
Copy link
Author

whmsft commented May 5, 2021

I used the source code of this repository instead and compiled it with python setup.py install
it gave this output

PS C:\Users\Lenovo\Downloads\pyunity-master\pyunity-master> python setup.py install
running install
running bdist_egg
running egg_info
writing pyunity.egg-info\PKG-INFO
writing dependency_links to pyunity.egg-info\dependency_links.txt
writing requirements to pyunity.egg-info\requires.txt
writing top-level names to pyunity.egg-info\top_level.txt
error: package directory 'src' does not exist

I don't think everything was done fine..
so.. any .whl file for me?
or .tar.gz?

@rayzchen
Copy link
Collaborator

rayzchen commented May 5, 2021

Huh? I don’t know why that happened...

@rayzchen
Copy link
Collaborator

rayzchen commented May 5, 2021

Send the result of dir

@rayzchen
Copy link
Collaborator

rayzchen commented May 5, 2021

pull the new changes and try again

@whmsft
Copy link
Author

whmsft commented May 6, 2021

looks like everything is fine but i have another problem..

error: Microsoft Visual C++ 14.0 or greater is required. Get it with microsoft c++ build tools

I thought you can't do any help now! i just have to install that..
but i am getting irritated by just one thing..
C++ BUILD TOOLS WILL TAKE 3gb+ storage!!
i only have data pack of 2gb!

@whmsft
Copy link
Author

whmsft commented May 6, 2021

can you please build a wheel file for the package?
with name something like:
pip install pyunity-0.4.0-cp38-cp38-win32.whl

@rayzchen
Copy link
Collaborator

rayzchen commented May 6, 2021

@rayzchen
Copy link
Collaborator

rayzchen commented May 6, 2021

looks like everything is fine but i have another problem..

error: Microsoft Visual C++ 14.0 or greater is required. Get it with microsoft c++ build tools

I thought you can't do any help now! i just have to install that..
but i am getting irritated by just one thing..
C++ BUILD TOOLS WILL TAKE 3gb+ storage!!
i only have data pack of 2gb!

PyUnity uses Cython compiling to optimize, as a result you must have Microsoft C++ Build Tools. Fortunately, I try to build the package myself for anyone who doesn't have buildtools. In the future, to find relevant packages, look in the dist folder in the master branch or check in the releases branch. In total there are 16 different compiled wheels.

@whmsft
Copy link
Author

whmsft commented May 6, 2021

I successfully installed pyunity from the dist folder..
but!
there's a problem!

any time i use the import pyunity or from pyunity import *
error comes!
the error:

PS E:\Penguin> python -u "e:\penguin\my_pyunity_project.py"
Loaded config
Trying GLFW as a window provider
Using window provider GLFW
Traceback (most recent call last):
  File "e:\penguin\my_pyunity_project.py", line 9, in <module>
    from pyunity.examples.example1 import main
  File "C:\Program Files\Python38-32\lib\site-packages\pyunity\__init__.py", line 165, in <module>
    from . import loader as Loader  # lgtm[py/import-own-module]
  File "loader.py", line 10, in init pyunity.loader
  File "C:\Program Files\Python38-32\lib\site-packages\pyunity\scenes\__init__.py", line 10, in <module>
    from . import sceneManager as SceneManager
  File "sceneManager.py", line 13, in init pyunity.scenes.sceneManager
ImportError: cannot import name scenes

Looks like i am finding bugs!

@rayzchen
Copy link
Collaborator

rayzchen commented May 6, 2021

hmm ill look through it

@rayzchen
Copy link
Collaborator

rayzchen commented May 6, 2021

Found the bug, its now fixed but there is no wheel yet, ill build one asap but i cant rn

@whmsft
Copy link
Author

whmsft commented May 6, 2021

Found the bug, its now fixed but there is no wheel yet, ill build one asap but i cant rn

you build the wheel and update the pyunity repository then comment here and i will try it.

@rayzchen
Copy link
Collaborator

rayzchen commented May 6, 2021

https://github.com/rayzchen/pyunity/raw/master/dist/0.4.0/pyunity-0.4.0-cp38-cp38-win32.whl here ya go

EDIT: THIS IS BROKEN STILL DONT USE IT YET
EDIT 2: its fixed

@Hunter2809
Copy link
Collaborator

@Whirlpool-Programmer if u got a discord, then u can join -->
https://discord.gg/hbAEbBP2

This is the official server, and you would get better support here ;D

@whmsft whmsft closed this as completed May 10, 2021
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

3 participants