Comments (8)
Hey @prasadseemakurthi, I'd like to understand the issue please? What error did you get? What Python version are you using?
Seems encoding should be fine with encoding='utf-8'
(previous issue: #3)
from 100daysofcode-with-python-course.
I receive the following error when entering the pvenv alias:
"dyld: Library not loaded: @rpath/libpython3.6m.dylib
Referenced from: /Users/orlandov/test01/venv/bin/python
Reason: image not found
ERROR: The executable /Users/orlandov/test01/venv/bin/python is not functioning
ERROR: It thinks sys.prefix is '/Users/orlandov/test01' (should be '/Users/orlandov/test01/venv')
ERROR: virtualenv is not compatible with this system or executable"
The alias setting is: alias pvenv='virtualenv -p /Users/orlandov/anaconda/bin/python venv'
As you can see, I have anaconda installed.
Could I proceed with the assignment, but just not have my Twitter API keys as part of my activate script? Just have them listed in my python code? I know its not the secure way, but I will delete them once I am done with the assignment. Unless you can see from my error message what could be the cause, and the solution.
Thanks,
Orlando Viera
from 100daysofcode-with-python-course.
Hey Orlando,
Do you also have Python natively installed as well? If so you can try to create a virtual environment with python -m venv venv
.
Using a virtual env is recommended to not clutter your global env with project specific packages (in this case tweepy
).
For the keys you could consider setting them in your .bashrc
(from the paths above I assume you are on *nix), or use configparser
, see an example here - as long as you don't commit your secret keys to version control :)
Btw let me know if you have any issues creating an app through the Twitter API obtaining keys, because it seems Twitter made this less accessible recently :(
Let me know if I can help you further to progress this lesson.
HTH
Bob
from 100daysofcode-with-python-course.
Bob,
I have Anaconda install and running python -m venv venv gives me the same error that you received in the video:
"Error: Command '['/Users/orlandov/test01/venv/bin/python', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.".
As for obtaining keys from Twitter API, there is an additional form to fill out before they grant you the information.
I will proceed with using Anaconda. I was able to install tweepy and wordcloud. I will figure out how to set my keys in an conda virtual environment. Hopefully its as easy as setting them in a virtualenv environment.
Thanks
from 100daysofcode-with-python-course.
I was able to set up my conda virtual environment variables by following the steps: https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#saving-environment-variables
from 100daysofcode-with-python-course.
Hey Orlando, glad you got that part working.
I forgot to share Martin's article about Anaconda including using its conda
command to make a virtual environment. Maybe you want to try it out: https://pybit.es/guest-anaconda-workflow.html
Did Twitter grant you app permissions? I heard others did not get a quick respond or were rejected, so just curious.
Cheers
Bob
from 100daysofcode-with-python-course.
Hey Bob,
Thanks for Martin's article.
Twitter response is around 25 to 30 seconds for the get_tweets function.
from 100daysofcode-with-python-course.
Hey @oviera5 how is it going? Anything we need to fix here?
from 100daysofcode-with-python-course.
Related Issues (20)
- urlretrieve function HOT 3
- Small detail on capturing all capitalized words HOT 1
- Possible misleading typo in 22-24 Decorators HOT 1
- video 'hello test world' HOT 10
- The subtitles for the deque and first concept videos (days 4-6) are swapped around. HOT 1
- Add section about setting things up HOT 2
- Missing README for days 04-06 HOT 3
- Days 58-60 Twitter HOT 3
- packtpub 'find_element_by_name' doesn't work HOT 1
- Pyperclip does not work correctly under Linux HOT 1
- Packt Publishing website updated HOT 4
- Python 100 days2 HOT 2
- Day 55-57 Example - write_post() HOT 3
- 100 Days of Code
- Day 55-57 results in Type Error for __init__ HOT 6
- 100days HOT 1
- day 2 error HOT 3
- Link in day 5 is broken HOT 1
- Link for the pytest fixtures article (day 12) is broken HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 100daysofcode-with-python-course.