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

No module named 'request' (from panda import PandaRequest) #15298

Closed
nolimitech opened this issue Feb 3, 2017 · 5 comments
Closed

No module named 'request' (from panda import PandaRequest) #15298

nolimitech opened this issue Feb 3, 2017 · 5 comments

Comments

@nolimitech
Copy link

Code Sample, a copy-pastable example if possible

# Your code here
import panda as pd
Traceback:
File "/usr/local/lib/python3.4/dist-package/panda/__init__.py", line 1, in <module>
    from request import PandaRequest

Problem description

I'm working with python 3.4.2, gcc 4.9.1

I have installed everything with pip, all the requirement is good. All the version is good and up to date (my pip3.4 and setuptools, is up to date too).
I've installed Panda and Pandas. (the same)
I've tried to install request, requests (already had)

Don't really know, what to do now :)

Expected Output

I can't enter inside the module itself. I can't event know the version.

Output of pd.show_versions()

Thanks to help me

NLT

@jreback
Copy link
Contributor

jreback commented Feb 3, 2017

well you are importing panda, not sure what that is. I would say you have an actual directory named panda with only an __init__ inside.

@sinhrks
Copy link
Member

sinhrks commented Feb 3, 2017

maybe refferring to a different package.

https://pypi.python.org/pypi/panda/

@nolimitech
Copy link
Author

nolimitech commented Feb 3, 2017

I've tried the apt-get install python3-pandas and it's already installed.
My script name is hello.py, doesn't work in console and IDLE either.
I see the request.py inside the panda directory.
I've found the problem. I had to put a dot before request , model and upload_session modules importation.
from .request import.. from .model import.. from .upload_session import ..
And i've to add a dot inside the upload_session.py for
from .models import Video
Now i have a warning error 💃 but inside my home/.local
Warning (from warning module): File "/home/nlt/.local/lib/python3.4/site-packages/cffi/model.py, line 532 % self._get_c_name()) Userwarning: 'point_conversion_form_t' has no values explicitly definied; guessing that it is equivalent to 'unsigned int'
But everything is working now, only this warning.
(I think, it's working, but i can't find pd.show_versions()

I'll try another package, i think something is broken.
I've saved all the directory (in case, before modify, don't worry, haha )

Thanks

@davidyerm
Copy link

Hey, please note that you're trying to import panda instead of pandas

import panda as pd

Try to install & import "pandas".

@ecelkl
Copy link

ecelkl commented Dec 22, 2019

Hey, please note that you're trying to import panda instead of pandas

import panda as pd

Try to install & import "pandas".

Oh, these small mistakes make me lost so much time and interest! >//<

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants